ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Window
  • Overview
  • How to?
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
A pinned control remains visible even if the user moves the scrollbar of the container to display a non-visible area. For example, if a Button control is pinned to the bottom right of a window, it will remain at the bottom right even if the user scrolls through the window.
If the container is not scrollable, standard anchors apply to the control.
Several types of containers support pinned controls:
  • Maximized windows with automatic scrollbar.
  • Internal window controls with automatic scrollbar.
  • Supercontrols.
If a pinned control is in another type of container, only the standard anchors are applied.
How to?
To define a pinned control (a Button control, for example):
  1. Position the control in the window. The control should be at the desired position, regardless of the size of the container.
    For example, place the Button control at the bottom right of the window in edit mode if you want this button to be displayed at that position.
  2. Anchor the control.
    In our example, the control is anchored completely to the right and bottom of the window.
  3. Pin the control:
    • Open the control description window.
    • In the "UI" tabs, click on the "Parallax / Pinned: None" button..
    • In the window that appears, select "Pinned control". The "Hide control while scrolling" option keeps the control pinned, but hides it while the user scrolls.
    • Confirm, then validate the control description window.
At runtime, the height of the window is greater than the height of the screen. The window is scrollable, and the pinned button is visible at the bottom right, as if it had been anchored to the screen and not to the window. The button remains at the same position as the window is scrolled.
Note: Unlike standard anchoring, where container dimensions never go below those defined in editing, with a Pinned control, the anchoring reference frame is most of the time smaller than the container in which the field is located.. This can lead to overlapping controls or to a control being hidden (outside the container) if its anchors are not adapted to its initial position.
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help