Re: Recreating the Blank Form

From: Mark Nelson [MS] (marknel_at_online.microsoft.com)
Date: 08/21/04


Date: Fri, 20 Aug 2004 22:56:11 -0700

Actually the connection points have nothing to do with the behavior of the
header. They are there so that you can glue toolbars into the form shape.

The header has custom formulas to control its height and its placement
relative to the top of the frame. They are not complicated, but you do have
to use the Shape*** window to set these up. The Height of the header is a
fixed value instead of a value dependent on the height of the overall frame.
The position of the header is determine by subtracting a fixed amount from
the height of the frame.

-- 
Mark Nelson
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jeff Johnson" <prime99ca@example.com> wrote in message
news:OxBEktvhEHA.4092@TK2MSFTNGP10.phx.gbl...
> The "Blank Form" shape that ships with the "Windows and Dialogs" stencil
in
> VS 2003 behaves differently than normal shapes in that the window header
> does not scale vertically when the overall window scales. I'd like to
> recreate this behavior but am having a tough time.
>
> It looks to me like there are 4 connection points that glue the header and
> the body of the window to the box frame. Beyond that I'm not sure how it
> goes together. Once I group a header shape with vertical height protected
to
> another shape, the height of the header still scales with the scaling of
the
> group.
>
> I've tried ungrouping the sample window but VS tells me that shape
> protection or layer properties prevent the command from completing.
>
> If anyone can tell me how to glue a grouped element to another element and
> retain its protection properties I'd really appreciate it.
>
> Thanks!
>
> Jeff
>
>