ok so just set the filemenu(parent item) invisible and then call the
same menu with filemenu.popup.

All menus are contained by the form parent... just they are visible or not.


2017-06-18 16:52 GMT+02:00 Leon Davis <leondavi...@gmail.com>:
> I have created a form with containing a component I designed. When the
> program is started the menu is created: MenuItem = new Menu(FormMain) as
> "FileMenu" and is displayed as a text menu of the form. There is also a
> context menu that is created for when the user right clicks on the control:
> MenuItem = new Menu(Control) as "PopupMenu". One of the options I want to
> present is to the user is to move the "FileMenu" to the "PopupMenu" so that
> the "FileMenu" is no longer displayed on the form but on the "PopupMenu".
>
> On Sun, Jun 18, 2017 at 4:48 AM, Charlie <char...@cogier.com> wrote:
>
>> Can you supply more detail and an example of what you are trying to do?
>>
>>
>>
>> -----
>> Check out www.gambas.one
>> --
>> View this message in context: http://gambas.8142.n7.nabble.
>> com/reparent-menu-item-tp59386p59397.html
>> Sent from the gambas-user mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to