| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > Code Templates >====== ResizeSetStrategy ====== | [[tplcodeprocesstransactionframecheckpoint.htm|{{btn_prev_n.gif|Previous page}}]][[templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[tplcodeselecttoolbartarget.htm|{{btn_next_n.gif|Next page}}]] | | || The ResizeSetStrategy template lets you override the default resize strategy for a particular control. It is designed exclusively for the **Set resize strategy** embed point for a specific control. See [[tplextensionwindowresize.htm|WindowResize extension template]] for more information on the default resize strategies. Insert the code template at the **Set resize strategy** embed point for the control for which to set the resize strategy, then complete the following prompts. | **Horizontal Resize Strategy** | Specify how the control's width is determined when the end user resizes the window. Choose from: | | **Lock Width** | The control's design time width does not change. | | **Constant Right Border** | Locks right edge, moves left. | | **Vertical Resize Strategy** | Specify how the control's height is determined when the end user resizes the window. Choose from: | | **Lock Height** | The control's design time height does not change. | | **Constant Bottom Border** | Locks bottom edge, moves top. | | **Horizontal Positional Strategy** | Specify how the control's horizontal position is determined when the end user resizes the window. Choose from: | | **Lock Position** | The control's left edge maintains a fixed distance (the design time distance) from parent's left edge. | | **Fix Right** | The control's right edge maintains a proportional distance from parent's right edge. | | **Fix Left** | The control's left edge maintains a proportional distance from parent's left edge. | | **Fix Center** | The control's center maintains a proportional distance from parent's center. | | **Fix Nearest** | Applies Fix Right or Fix Left, whichever is appropriate. | | **Vertical Positional Strategy** | Specify how the control's vertical position is determined when the end user resizes the window. Choose from: | | **Lock Position** | The control's top edge maintains a fixed distance (the design time distance) from parent's top edge. | | **Fix Bottom** | The control's bottom edge maintains a proportional distance from parent's bottom edge. | | **Fix Top** | The control's top edge maintains a proportional distance from parent's top edge. | | **Fix Center** | The control's center maintains a proportional distance from parent's center. | | **Fix Nearest** | Applies Fix Top or Fix Bottom, whichever is appropriate. |