Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing a real DPI-aware VFP application
Message
From
06/02/2021 10:29:01
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
06/02/2021 08:21:56
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01678100
Message ID:
01678122
Views:
61
>Correct,
>
>In a huge existing application implementing DPI awareness is no joke. Its possible, but indeed you'll have to take care of a lot of things.
>However some things go reasonbly automatic. Increasing or decreasing fontsize on a grid will cascade down to the column, header and control level automatically.
>
>Walter,

But not column width, if spaced fine, and I'm not sure about rowheight. Inserted stuff in containers? Lot's of things to consider.
Also Fontsize might better be scaled in Integers, so width / height of the container must scale according to space needed (depending on the number of objects per direction) If objects are intersecting, for example in different columns, it changes. Correct height of an editbox is tricky w/o DPI, because if the gaps it needs, this is all odd.

Again, one would need to parse the stuff in a orientation given (what must not be left to right, it could be left to right, dynamic, right to left, the very same container)
So how to figure out what goes on? It could operate on RESIZE, MOVED, SPLITTER movement, ANCHOR ....
It could be limited by MIN* and MAX* values, possibly something user dynamic.
There is a lot math involved on how to resize a button if you change it's fontsize. Again, it does not scale very well between fontsize and width / height
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform