Different sizes of dialog
Posted: 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
Is there a fivewin method (no display 3.0) to recreate the dialogs at the same size if I use different monitors and computers?
- 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?