Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inactive pictures in menubar
Message
De
16/12/2003 03:04:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Inactive pictures in menubar
Divers
Thread ID:
00859404
Message ID:
00859404
Vues:
59
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform