OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: andrew on December 08, 2009, 01:34:37 PM

Title: how do resize buttons with the modeless dialogs
Post by: andrew on December 08, 2009, 01:34:37 PM
can someone guide me on this one?
ive tried the auto size and allow resizing but
none of those are working.
also i dont see those functions in the samples
can anyone offer some help?

thanks
Title: Re: how do resize buttons with the modeless dialogs
Post by: BazzaCAD on December 08, 2009, 01:43:48 PM
do you mean you want the buttons to resize as the form gets resized?
Title: Re: how do resize buttons with the modeless dialogs
Post by: andrew on December 09, 2009, 05:45:28 AM
Quote from: BazzaCAD on December 08, 2009, 01:43:48 PM
do you mean you want the buttons to resize as the form gets resized?

yes sir
Title: Re: how do resize buttons with the modeless dialogs
Post by: Kerry on December 09, 2009, 06:52:53 AM

EVENT Function Name c:Untitled_Form1_OnSize
Syntax   (defun c:Untitled_Form1_OnSize (NewWidth [as Long] NewHeight [as Long] /))
Return Type Ignored
Applies To Control Bar, File Dialog, Modal Dialog, Modeless Dialog, Options Tab, Palette

This event is triggered when the dialog is being resized. NewWidth and NewHeight contain the new width and height.

also, did you know that you can fix the distance of a control edge from its container ?
have a look at the Control Property Wizard=>geometry.

without further info regarding your GUI design we can't help much.

Title: Re: how do resize buttons with the modeless dialogs
Post by: andrew on December 09, 2009, 10:04:38 AM
Quote from: Kerry Brown on December 09, 2009, 06:52:53 AM

EVENT Function Name c:Untitled_Form1_OnSize
Syntax   (defun c:Untitled_Form1_OnSize (NewWidth [as Long] NewHeight [as Long] /))
Return Type Ignored
Applies To Control Bar, File Dialog, Modal Dialog, Modeless Dialog, Options Tab, Palette

This event is triggered when the dialog is being resized. NewWidth and NewHeight contain the new width and height.

also, did you know that you can fix the distance of a control edge from its container ?
have a look at the Control Property Wizard=>geometry.

without further info regarding your GUI design we can't help much.




Kerry,
thanks for the reply.
the sample im using as reference doesnt have that event checked off
the sample im referring to is the "listbox" that comes with the editor



edit: the control property wizard is what i was after

thanks