About “dcl_Form_Resize”

Started by hicoffee, March 02, 2008, 02:50:56 AM

Previous topic - Next topic

hicoffee

“dcl_Form_Resize” can’t be used in Dockable Form, why?

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

hicoffee

#2
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 ......