Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to hide a bar?
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00900956
Message ID:
00900968
Views:
23
Hi Dawa,

I would recomend that you download GenMenuX utility from http://www.aksel.com/genmenux/default.htm. After that in Menu Designer you can put following expression in the Bar 2 comment field
*:IF NOT ConditionToHide
and it will generate code to hide that bar based on specified condition.

>Hi, all,
>
>I have created a menu with the menu designer and I would like to hide a bar based on the user preference. The .mpr file looks this:
>
>SET SYSMENU TO
>SET SYSMENU AUTOMATIC
>
>DEFINE PAD _1890tuwa5 OF _MSYSMENU PROMPT "\<Reports" COLOR SCHEME 3 ;
>	KEY ALT+R, ""
>ON PAD _1890tuwa5 OF _MSYSMENU ACTIVATE POPUP reports
>
>DEFINE POPUP reports MARGIN RELATIVE SHADOW COLOR SCHEME 4
>DEFINE BAR 1 OF reports PROMPT "Report1"
>DEFINE BAR 2 OF reports PROMPT "Report2"
>ON SELECTION BAR 1 OF reports report form report1.frx
>ON SELECTION BAR 2 OF reports report form report1.frx
>
>
>How do hide bar 2 at run time?
>
>Any help will be appreciated.
>
>TIA,
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform