[Gambas-user] how to build a menu

Hans-Martin Bundeshund bundeshund at ...467...
Thu Jun 24 21:29:53 CEST 2004


Am Donnerstag, 24. Juni 2004 21:22 schrieb Hans-Martin Bundeshund:
> Am Mittwoch, 23. Juni 2004 21:36 schrieb Michael Bergmann:
> > On Mittwoch, 23. Juni 2004 20:40 Hans-Martin Bundeshund wrote:
> > > Look at my attachment. Its a little example I wrote for you. I hope, it
> > > will make some things clearer.
> >
> > This made it bright and clear - thank you, Martin!
>
> Add this lines below and you have a popup-menu by left-clicking the textbox
> with menu1. Have fun!
> Tip: Look at the source of the gambas-IDE, It is a bible for me ;>)  you
> can easily open it... with gambas!
>
>
>
>
> PUBLIC SUB TextBox1_Menu()
>
>   Menu1.visible=TRUE
>   Menu1.Popup
>   Menu1.visible=FALSE
>
> END
>
upps.. delete the 'Menu1.visible=TRUE'
and the 'Menu1.visible=FALSE' lines. They are from a 'hidden'-dummy menu I 
created that is not shown at the menubar on top. This 'dummy'-menu is set to 
visible=false by default and only popedup by left-clicking...




More information about the User mailing list