Page 1 of 1
Menu bar in a dialog box?
Posted: Mon Feb 19, 2018 3:54 pm
by roland65
Hi,
I couldn't find the answer to the following question: in basic, is there a way to add a menu bar widget (with submenus, text and icons) to a dialog box?
Thanks,
RB
Re: Menu bar in a dialog box?
Posted: Mon Feb 19, 2018 4:16 pm
by JeJe
If the answer is no... then I've attached an abandoned textpad project where I mimic a menubar using labels and popup menus. Its not finished or perfect - you can't move out of one popup menu into another as you can with menubar menus - but it looks similar to a menubar. Messy incomplete code - just an option if you can't get a proper menubar.
Re: Menu bar in a dialog box?
Posted: Tue Feb 20, 2018 9:42 am
by roland65
Thanks Jeje, interesting example...
I'll study your code to see if I can adapt it for my purpose.
Have a nice day,
RB
Re: Menu bar in a dialog box?
Posted: Tue Feb 20, 2018 10:20 am
by JeJe
Re: Menu bar in a dialog box?
Posted: Tue Feb 20, 2018 11:39 am
by JeJe
Here's a tidied version of my menubar mimmick, with all the unnecessary code removed.
Doing that I noticed there was a half-baked attempt in the first upload to create a menubar using setMenuBar. Creating a proper menubar would be better if it can be done.
Re: Menu bar in a dialog box?
Posted: Tue Feb 20, 2018 2:47 pm
by roland65
Thanks for all this stuff. I'll study all of these carefully...