OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: hicoffee on March 02, 2008, 02:50:56 AM

Title: About “dcl_Form_Resize”
Post by: hicoffee on March 02, 2008, 02:50:56 AM
“dcl_Form_Resize” can’t be used in Dockable Form, why?
Title: Re: About “dcl_Form_Resize”
Post by: owenwengerd on March 02, 2008, 08:42:24 AM
In some scenarios, a dockable form cannot be safely resized, so resizing is disabled altogether while it is docked. In the future, it may be possible to resize dockable forms when it is safe to do so.

Resizing is tricky because there is no API for resizing. The MFC framework expects that dockable forms (and palettes) are always resized by changing the size of the control bar that contains them, but OpenDCL works from the bottom up, where resizing a form should resize the containing control bar. Unfortunately, this cannot be safely done, even by hacking it, because a control bar could contain multiple children that all need to be resized.
Title: Re: About “dcl_Form_Resize”
Post by: hicoffee on March 02, 2008, 07:42:16 PM
I see, thanks!!! But
how can I put a dockable form in the center of screen in order to resize form?
Use Method but not manual operation ......