Subject: | Re: Automatically resize forms and all their controls based on
| Date: | 26 May 2020 23:52:10 -0400
| From: | "Kevin Zawicki" <numberjack@wi.rr.com>
| Newsgroups: | pnews.paradox-development
|
to add
>
Its not just the screen resolution you have to worry about, you may also
need to consider the DPI as well and then apply a scaling factor.
<
and that the user may change on the fly...
Also, ZOOM will magnify, but what some users mean is "more real estate".
If a tableframe has x many rows and they get a nigger monitor / resolution,
etc, they may want more than x rows.
So you have to consider magnification is not more space.
modridirkac <jure.zorko@gmail.com> wrote:
>I use "built in" method.
>It works on most computers. On some it does not work as I would like it
to.
>
>So I use a global variable, which can be set on app level.
>
>
>in "var" of form:
> doZoom logical
>
>in "init" method:
> ...
> doZoom = true/false - read from INI or something
> ...
> doDefault
> ...
>
>
>in "setFocus" method of the form:
> ...
> doDefault
> if doZoom then
> menuAction(MenuPropertiesZoomBestFit)
> else
> menuAction(MenuPropertiesZoom100)
> endIf
> ...
>
>
>Jure
|