Page 1 of 1
Resizeable DataDialog or modal DataWindow in VO dialect
Posted: Wed Jan 08, 2025 7:49 am
by jacekm23
Hi,
do you know the way to make resizeable DataDialog or modal DataWindow in VO dialect. I used old Resize library in my VO applications, but maybe it is possible to do it without this library in X# VO dialect.
Jacek
Re: Resizeable DataDialog or modal DataWindow in VO dialect
Posted: Wed Jan 08, 2025 7:48 pm
by ic2
Hello Jacek,
This will work for a DataDialog; put this in the Postinit
Code: Select all
METHOD MakeResizeable() CLASS MyDataDialog
//#s To Allow resize NG 29-6-2006 Meinhard Schnoor 14-2-2018
SELF:DDImp:SetStyle(WS_SYSMENU,FALSE)
SELF:DDImp:SetStyle(WS_THICKFRAME,TRUE)
RETURN NIL
ACCESS DDImp() CLASS MyDataDialog
//#s To allow resize NG 29-6-2006 Meinhard Schnoor 14-2-2018
RETURN GetObjectByHandle( SELF:handle() )
But it won't show you the dotted triangle in which you click the mouse to resize. And no Close buttons. I have added 2 icons, 1 with an 'S" on it in Wingdings2,14 (a cross) resulting in SELF:EndWindow().
And another one in the lower right corner (I've chosen a '8' Wingdings2,14 (a circle with a dot in the middle). Only thing which happens when the user clicks on it is an InfoBox with the message:
Enlarge the window by clicking in the corner and as the diagonal arrow appears, drag the window bigger
That seems to work for users.
Dick