Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Putting a check mark on the left of an menu selection?
Message
De
16/12/1997 09:45:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00066028
Message ID:
00066203
Vues:
33
>>>>I would like to put a check mark on the left of a menu
>>>>selection off the main menu in my program.
>>>>I would like to do this when that menu selection has
>>>>focus. If the menu option is checked, I want to do something.
>>>>any ideas?
>>>
>>>Check the help file for SET MARK OF...BAR. When the user clicks the menu item, issue the command to do whatever you're trying to accomplish. I'd use a global system variable and in the code check it's value. The code to do this might look something like:
>>>
>>>gOwhatever.IsMarked = NOT gOwhatever.IsMarked.
>>>IF gOwhatever.IsMarked
>>> * Do what's necessary for .T.
>>>ELSE
>>> * Do what's necessary for .F.
>>>ENDIF
>>>
>>>hth,
>>>
>>>George
>>Hi George and thanks for your answer. I did check the help, but
>>in vfp50, I do not know where to put the code since there
>>is not a ckick event in the menu options. When the user clicks
>>a menu option, should I just run a program and that program will
>>do whatever??
>
>In the above code you could add:
>
>SET MARK OF BAR nMenuItemNumber OF MenuName TO gOwhatever.IsMarked
>
>after the IF/ELSE/ENDIF statement block. The issue:
>
>SHOW MENU ALL
>
>to update.
>
>hth,
>
>George

Hi George and thanks for the code. Sorry I did not get back to you
yesterday. Would you happen to have a small vfp50 menu sample? I seem to
be really slow today trying to figure this SET MARK OF BAR stuff out. :)))
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform