How do you refer to Menus from other forms?
Posted
#1
(In Topic #1279)
Regular

Posted
Guru

sergioabreu said
How to access the menus from out of the main form?
Right, that's not so easy as they are different to normal controls.
There are options..
If your menu's are made by code and not in the IDE and they have a global object pointer you can simple make it Public
Then outside the form you can access the pointer.
Code (gambas)
Otherwise you have to use the Window.Menus array property.
/comp/gb.qt4/window/menus - Gambas Documentation
All the forms visible and non-visible top level menus and then their children are accessible from there.
Posted
Regular

1 guest and 0 members have just viewed this.


