Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing a real DPI-aware VFP application
Message
From
09/02/2021 01:03:10
 
 
To
08/02/2021 08:41:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01678100
Message ID:
01678142
Views:
86
>A question that remains is that the attributes of menu bars are not (normally) defined as object properties. Fortunately, using an OOP based menu will help to minimize the effort of handling this specific case.

The menu was relatively easy to fix for us. Since this is a very old codebase, it used the menu generator to build the menu. So I changed the menubuilder (genmenu) so that it would macrosubstitute all FONT references in the MPR file:

In the genmenu code:
   \\ PROMPT "<<m.prompt>>" FONT m.gcMenuFont, &gcMenuFontsize
That results in the following MPR file:
DEFINE BAR 25 OF analysen PROMPT "\<Kosten" FONT m.gcMenuFont, &gcMenuFontsize ;
	SKIP FOR ! m.erwFlag 
That is not the most elegant way, but efficient.
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform