Resizeable DataDialog or modal DataWindow in VO dialect

This forum is meant for questions and discussions about the X# language and tools
Post Reply
jacekm23
Posts: 18
Joined: Tue Sep 29, 2015 8:45 am
Location: Poland

Resizeable DataDialog or modal DataWindow in VO dialect

Post 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
ic2
Posts: 1866
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Re: Resizeable DataDialog or modal DataWindow in VO dialect

Post 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
Post Reply