Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the pull down menu appearance
Message
 
To
20/10/2005 22:46:05
Hong Yew
People Quest
Malaysia
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01060958
Message ID:
01060984
Views:
10
Hi,

>I would appreciate if you could advise how I can change the default white background color of the pulldown menu. BTW, is there no way I can change the font size of the pad locally without changing any Windows setting?

You cannot do this with the standard menu, because VFP lets Windows control its appearance. There are several work arounds, though:

- You can use a menu ActiveX control. There are various available. That's probably the quickest solution, but you might run into compatibility issues if you have multiple top-level forms or need to access the menu from a modal form.

- There's a product called CommandBars that implement office like menus in VFP (http://www.arg.kirov.ru/products/cmdbars/). It looks like they use a combination of API calls and VFP forms. That means, you should be able to customize the appearance to a certain degree.

- Simulate your own menu in VFP. Basically, you need a toolbar with labels on it. In the click event open a borderless form and position it beneath the toolbar.

- Use the API to create your own menu. With VFP 9's BINDEVENT() capabilities you should be able to use most of the API features to draw your own menu.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform