Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu
Message
From
12/02/2001 17:14:13
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Menu
Miscellaneous
Thread ID:
00474794
Message ID:
00475101
Views:
50
>>>>Not yet available in VFP6. But in VFP7, yes.
>>>>>how to put icons in menu
>>>>>
>>>>>
>>>>>thanks
>>>>>Mohammed
>>>
>>>Go to www.vfug.org (don't worry it's free). The January newsletter has a tip about how to do this in VFP 6 using WinAPI calls.
>>
>>Larry, any tips on how to put both the picture AND a hotkey in the menu? I seem to be able to get one or the other, but not both.
>
>After experimenting with the code tip, I've come to the conclusion that I can't use it. Oh well. :-(
>
>The ModifyMenu function call messes up the VFP menu item. By default VFP creates menu items that are drawn by VFP and not the Windows default handler. I am guessing there is special code in the VFP Windows message processing function that when a DrawMenuBar message comes through, it knows exactly what to do.
>
>The ModifyMenu function in this example, changes the OWNERDRAWN attribute to a STRING attribute. In order to do this correctly, you first have to have the original text so you can rewrite it. The sample doesn't do it. And I haven't found a way of retrieving this data with OWNERDRAWN menu items. I tried GetMenuItemInfo/SetMenuItemInfo with no luck.
>
>You can use Prmbar() to get the text of the menu item in VFP but that doesn't give the hot key and that doesn't tell you whether you have an underlined character because of using a \<.

Thanks, Larry. I thought it was just me leaving out something trivial.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform