Page 1 of 1

Touchscreen interface

Posted: Tue Jan 07, 2025 9:15 am
by Silvio.Falconi
I created a test dialog using these measurements

local nHt := Int( ScreenHeight() + 100 )
local nWd := Int( ScreenWidth() )

but does this work for all resolutions?

that is, if I run the test on a 10" laptop do I have the same configuration?

in this dialog i have a lot of btnbmp controls, how should i create the btnbmp buttons depending on the screen resolution, so that i can display them equally at the same coordinates obviously the buttons will appear smaller in 10' than in a normal pc?

Has anyone created a similar test?


I make a test with but I not Know if it go right

local nSizeWBtn := Int( ScreenWidth() ) /20
local nSizeHBtn := Int( ScreenHeight() + 100 ) /10

@ 148, 320 BTNBMP abtnCat[1] ;
RESOURCE "GRID_DWN_REC";
SIZE nSizeWBtn,nSizeHBtn PIXEL FLAT NOROUND GDIP OF oDlg ;
ACTION NIL when ltest