- Jun 6, 2020
- 11,559
- 4,422
It seems the MainForm.WindowHeight variable report incorrect values when Windows is set to zoom the display.
For instance, I have a UI application with a window height of 600. I have a pane of height 100 which I locate at the bottom of the window.
To locate the pane correctly at the bottom of the window I have to apply a fudge factor of 48dip as shown in the example below when the display zoom is set to 100 but if I zoom to 125%, the fudge factor must now be 40dip.
I would like not to have to fudge the fudge factor, unless there is a way to capture the zoom setting.
In the example below, the pane is moved when clicking the button because AppStart needs to complete before WindowHeight makes sense.
B4X:
For instance, I have a UI application with a window height of 600. I have a pane of height 100 which I locate at the bottom of the window.
To locate the pane correctly at the bottom of the window I have to apply a fudge factor of 48dip as shown in the example below when the display zoom is set to 100 but if I zoom to 125%, the fudge factor must now be 40dip.
I would like not to have to fudge the fudge factor, unless there is a way to capture the zoom setting.
In the example below, the pane is moved when clicking the button because AppStart needs to complete before WindowHeight makes sense.
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید