WINDEV Concepts

Part 1: Main concepts 45 6.1 Anchoring a control in the editor To anchor a control: 1. Select the controls you want to anchor. 2. Define the control anchoring options: • in the "UI" tab of the control description window ("Description" in the context menu). • via "Anchor" in the context menu of the control (right click). 3.  In the window that appears, select the type of anchors to be applied. The most common options are represented by different icons: No anchors : The control does not change when the window is resized. No anchoring option is selected. Width : The control stretches to the right when the window is enlarged. Set the "width" anchor rate to define how much a control stretches relative to the window. Right : The control moves to the right when the window is enlarged. Set the "right" anchor rate to define how much the control moves. Horizontally centered : The control remains centered horizontally regardless of the width of the window. Height : The control stretches downward when the window is vertically enlarged. Set the "height" anchor rate to define how much a control stretches relative to the window. Width and height : The control stretches to the right and downward when the window is enlarged. Set the "width" and "height" anchor rates to define how much a control stretches relative to the window. Height and right : The control stretches downward and moves to the right when the window is enlarged. Set the "right" anchor rate to define how much the control moves. Set the "height" anchor rate to define how much a control stretches relative to the window. Vertical distribution : This option is available only when multiple controls are selected. The selected controls stretch downward and are distributed proportionally when the window is enlarged vertically. Bottom : The control moves down when the window is enlarged downward. Set the "bottom" anchor rate to define how much the control moves. Width and bottom : The control stretches to the right and moves downward when the window is enlarged. Set the "bottom" anchor rate to define how much the control moves. Set the "width" anchor rate to define how much a control stretches relative to the window. Right and bottom : The control moves to the right and down when the window is enlarged. Set the "bottom" and "right" anchor rates to define how much the control moves. Horizontally centered at bottom : The control remains centered horizontally regardless of the width of the window. However, the control is anchored to the bottom and moves down when the window is enlarged. Set the "bottom" anchor rate to define how much the control moves. Vertically centered : The control remains centered vertically regardless of the height of the window. Horizontal distribution : This option is available only when multiple controls are selected. The selected controls stretch to the right and are distributed horizontally when the window is enlarged.

RkJQdWJsaXNoZXIy NDQ0OA==