Petr Schreiber
01-09-2008, 02:47
Hi Eros,
I found inconsistency between docs and manifested behaviour.
Docs say DIALOG SET MINSIZE "Set the dialog minimum width and height client area.".
But I suspect it is not client area, but complete window size.
Consider following code:
USES "UI"
DIM hDlg AS DWORD
DIALOG NEW 0, "Minsizer",1,1, 10, 10, _
%WS_POPUP Or %WS_VISIBLE Or _
%WS_CLIPCHILDREN Or %WS_CAPTION OR _
%WS_SYSMENU Or %WS_MINIMIZEBOX or %WS_THICKFRAME, 0 To hDlg
dialog set client hDlg, 400,300 ' <-- with this I can get it smaller ( should not be possible )
'dialog set size hDlg, 400,300 ' <-- with this I cannot :D
dialog set minsize hDlg, 400,300
DIALOG SHOW MODal hDlg, call DlgProc
DIALOG End hDlg
callback function DlgProc() as long
end function
If MINSIZE would be client related, the window could not be made a bit smaller ... but it can be.
Petr
P.S. I think this is the earliest / latest time I ever posted bug description, time to prepare small celebration :D
I found inconsistency between docs and manifested behaviour.
Docs say DIALOG SET MINSIZE "Set the dialog minimum width and height client area.".
But I suspect it is not client area, but complete window size.
Consider following code:
USES "UI"
DIM hDlg AS DWORD
DIALOG NEW 0, "Minsizer",1,1, 10, 10, _
%WS_POPUP Or %WS_VISIBLE Or _
%WS_CLIPCHILDREN Or %WS_CAPTION OR _
%WS_SYSMENU Or %WS_MINIMIZEBOX or %WS_THICKFRAME, 0 To hDlg
dialog set client hDlg, 400,300 ' <-- with this I can get it smaller ( should not be possible )
'dialog set size hDlg, 400,300 ' <-- with this I cannot :D
dialog set minsize hDlg, 400,300
DIALOG SHOW MODal hDlg, call DlgProc
DIALOG End hDlg
callback function DlgProc() as long
end function
If MINSIZE would be client related, the window could not be made a bit smaller ... but it can be.
Petr
P.S. I think this is the earliest / latest time I ever posted bug description, time to prepare small celebration :D