FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Touchscreen interface
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Touchscreen interface
Posted: Tue Jan 07, 2025 09:15 AM

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 March-April 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

Continue the discussion