Touchscreen interface

Post Reply
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Touchscreen interface

Post 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply