If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Recreating the Blank Form
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 |
#2
|
|||
|
|||
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 Shapesheet 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" wrote in message ... 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 |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blank Form When Parameter Query Set | Dexter Crawford | General Discussion | 1 | August 2nd, 2004 05:27 AM |
copying a form | Jim VanGordon | Using Forms | 3 | July 30th, 2004 03:14 AM |
auto entry into second table after update | Tony | New Users | 13 | July 9th, 2004 10:42 PM |