[Gambas-user] Keeping a menu open?

Bruce Steers bsteers4 at gmail.com
Sat Jan 15 20:55:19 CET 2022


On Sat, 15 Jan 2022 at 19:52, Bruce Steers <bsteers4 at gmail.com> wrote:

> I do not have time to try myself but have you tried Stop Event in the
> _Hide event?
> something along the lines of this...
>
>
>
> *Private bDoNotHide as Boolean*
>
> *Public Sub MyMenu_Show()*
>
>
> *  bDoNotHide = True*
>
> *End*
>
> *Public Sub MyMenu_Hide()*
>
>
> *  If bDoNotHide Then  Stop Event*
>
> *End*
>
> *Public Sub MyMenu_Click()*
>
>
> *  If Last.Name = "mnuCloseMenu" Then bDoNotHide = False*
>
> *End*
>
> Something like that
>

Sorry that last method should probably be for a separate close menu item
*Public Sub MyCloseMenuItem_Click()*


* bDoNotHide = False*

*End*

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220115/d284121c/attachment.htm>


More information about the User mailing list