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:
00900966
Views:
16
Here are two examples for when you are defining it strictly in code:
DEFINE BAR 10 OF shortcut PROMPT "P\<honeTree" ;
	SKIP FOR !FILE(cs_phonetree)

DEFINE BAR 6 OF ar PROMPT "Receive Amt Financed" ;
	SKIP FOR !FILE(cs_ar) OR !level33
In the menu designer, click on the options button beside the prompt and enter your condition in the Skip For: field such as:

!m.active OR xinsprof = "BATCH PROCESSING" OR mDaysLeft < 0 OR demoversion

is an example of one of ours.

>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,
>
>Dawa
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform