WINDEV Concepts

46 Part 1: Main concepts Vertically centered to right : The control remains centered vertically regardless of the height of the window. However, the control is anchored to the right and moves right when the window is enlarged. Set the "right" anchor rate to define how much the control moves. Centered : The control remains centered vertically and horizontally regardless of the size of the window. 4. Define (if necessary) the different anchor rates. 5. Validate. If the "Anchor" option is enabled (on the "Display" tab, in the "Show (all controls)" group), the anchor signs are automatically displayed in the control (red arrows). 6.2 Example of control anchors The following example shows how controls are anchored in a window. Initial window: Enlarged window: To obtain this result : 1. Select the [<-] and [->] Button controls: center these controls vertically and horizontally ( ). 2. Select the two List Box controls: anchor these controls to the right, horizontally and vertically (check the "right", "width" and "height" options). 3. Select the three Button controls: these controls must stretch to the right proportionally ( ). Remark: The anchors of the controls can be set programmatically using different WLanguage properties.

RkJQdWJsaXNoZXIy NDQ0OA==