PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • To create a "Drawer" control in a window
  • Characteristics of a Drawer control
  • Drawer control found in a window
  • Programming a Drawer control
  • Expanding/Collapsing a Drawer control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Warning
From version 24, the hideshow control is now named the "Drawer control".
Overview
The Drawer control can contain other controls and it is intended to facilitate the formatting of the GUIs. It can be expanded in order to display (or not) the integrated controls. The collapse/expand operation of control can be done:
  • by clicking the control title,
  • by programming.
Drawer control
WINDEV

To create a "Drawer" control in a window

To create a "Drawer" control in a window:
  1. On the "Creation" pane, in the "Containers" group, expand "Tab and associated" and select "Drawer control".
  2. Click the position where the control will be created in the window. The control appears in creation mode.
    The created Drawer control automatically contains a control: this control is the button used to "Expand/Collapse" the Drawer control. This control contains the necessary WLanguage code. You have the ability to customize this control by associating it with a specific image.
  3. Drop on the Drawer control the different controls that must appear/disappear when it is used.
To display the control characteristics, select "Description" from the popup menu of control.
Characteristics of a Drawer control
WINDEV

Drawer control found in a window

  • When the Drawer control is in edit in the window editor, it can be handled like when it is in execution. The popup menu of the control allows you to expand/collapse it upon request ("Collapse/Expand the Drawer control" option).
  • In the description of the Drawer control, the "General" tab is used to specify:
    • Whether an animation must be performed when handling a Drawer control.
    • Whether the window size must be adapted when using the control. Indeed, when the Drawer control is expanded, the controls found below the Drawer control are automatically moved to the bottom. This option is used to automatically enlarge the window to the bottom in order to see the controls found below the Drawer control.
Programming a Drawer control

Expanding/Collapsing a Drawer control

To collapse a Drawer control, use the following syntax:
<Name of Drawer control> = False
To expand a Drawer control, use the following syntax:
<Name of Drawer control> = True
Related Examples:
The HideShow control Unit examples (WEBDEV): The HideShow control
[ + ] This example explains how to use the HideShow control of WEBDEV.
The HideShow control (static sidebar) Unit examples (WEBDEV): The HideShow control (static sidebar)
[ + ] This training example explains how to use the "HideShow" control of WEBDEV. This HideShow control is associated with a cell for relative positioning in order to have a more interactive behavior.
DHTML sidebar Unit examples (WEBDEV): DHTML sidebar
[ + ] This example explains how to create a DHTML menu with WEBDEV.
This example allows you to:
- Create a DHML menu
- Add a menu entry
- Add a menu option
The HideShow control Unit examples (WINDEV): The HideShow control
[ + ] Using the HideShow control.
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment