Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inactive pictures in menubar
Message
From
16/12/2003 03:04:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Inactive pictures in menubar
Miscellaneous
Thread ID:
00859404
Message ID:
00859404
Views:
58
Hello,

i've tried to display 2 pictures (one for enabled and one for disabled state)in a menubar like this

DEFINE PAD some_pad OF _MSYSMENU PROMPT 'MyPrompt' KEY ALT+M, ''
ON PAD some_pad OF _MSYSMENU ACTIVATE POPUP some_popup

DEFINE POPUP some_popup MARGIN RELATIVE SHADOW
DEFINE BAR 1 OF some_popup PROMPT 'DoSomething' ;
SKIP FOR someCondition ;
PICTURE IIF(!SKPBAR('some_popup',1),'enabled.bmp','disabled.bmp')

but this doesn't work ..
it seems that the PICTURE clause only accepts direct references to a file and not any kind of expression, can someone affirm this?!


Regards

Christian
Next
Reply
Map
View

Click here to load this message in the networking platform