Different sizes of dialog

Different sizes of dialog

Postby Silvio.Falconi » Wed Mar 13, 2024 9:24 am

I would like to have the same resolution as my dialogs if I use a normal computer with 1280X1024 resolution (Win10) or if I use a tablet (10' tab type) with 1280X800 resolution (Win10) because every time I have to recompile my applications, I use to create my dialog these commands

Code: Select all  Expand view
#include 'fivewin.ch'
#include 'constant.ch'

   local  nBottom   := 43  // medie
   local  nRight    := 125.4    //Medie
   local  nWd       := Max( nRight * DLG_CHARPIX_W, 180 )
   local  nHt       := nBottom * DLG_CHARPIX_H

      DEFINE DIALOG oDlg SIZE nWd, nHt PIXEL TRUEPIXEL;
       FONT oFont   COLOR CLR_BLACK, CLR_WHITE  ;
       STYLE nOR( DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, ;
                  WS_MINIMIZEBOX)   ICON oIcon


Is there a fivewin method (no display 3.0) to recreate the dialogs at the same size if I use different monitors and computers?
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
User avatar
Silvio.Falconi
 
Posts: 6768
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests