05-27-2016, 06:08 PM
Sorry for this very simple question, but for the life of me I can not find what the culprit is (probably me)...
I have this default dialog (File >> New >> New Dialog >> Smart Dialog)
The only thing I changed was the size to 800x600
0 "" 0x90C80AC8 0x0 0 0 800 600 "Dialog"
But when I run this dialog I get a whopping W=1206 and H=1003 dialog !?
I tested this in a clean portable version QM: 2.4.3.8
I looked if there was an special unit setting in the dialog creation window, but could not find any.
In previous version of QM the size in dd decleration => 0 "" 0x... would be exactly when running the dialog.
I have no clue what I overlooked.
Function t
I have this default dialog (File >> New >> New Dialog >> Smart Dialog)
The only thing I changed was the size to 800x600
0 "" 0x90C80AC8 0x0 0 0 800 600 "Dialog"
But when I run this dialog I get a whopping W=1206 and H=1003 dialog !?
I tested this in a clean portable version QM: 2.4.3.8
I looked if there was an special unit setting in the dialog creation window, but could not find any.
In previous version of QM the size in dd decleration => 0 "" 0x... would be exactly when running the dialog.
I have no clue what I overlooked.
Function t
[img]https://dl.dropboxusercontent.com/u/85973479/qm/dlgsize.jpg[/img]
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 800 600 "Dialog"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040308 "*" "" "" ""
if(!ShowDialog(dd &sub.DlgProc 0)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
![[Image: dlgsize.jpg]](https://dl.dropboxusercontent.com/u/85973479/qm/dlgsize.jpg)