PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Creating a "Drawer" control
  • To create a "Drawer" control in a window
  • Creating a "Drawer" control in a page
  • Characteristics of a Drawer control
  • Drawer control found in a window
  • Drawer control found in a page:
  • 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.
WINDEV This type of control can be used in Windows 98 and later.
Drawer control

Creating a "Drawer" control

To create a "Drawer" control:
  1. In the window or page editor, click Drawer (or select "Insert .. Control .. Drawer control").
  2. Click the position where the control will be created in the window or page. The control appears in creation mode.
    • WINDEV In a window, the created Drawer control automatically contains a default control: this control is the button used to "Expand/Collapse" the Drawer control. This control contains the necessary WLanguage code. You can customize it by associating it with a specific image.
    • WEBDEV - Server code In a page, the created Drawer control is empty: the upper section (whose size can be adapted via the sizing handle) receives the clicks and triggers the collapse/expand operation of lower section.
  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.
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.
WEBDEV - Server codePHPAjax

Creating a "Drawer" control in a page

To create a "Drawer" control in a page:
  1. On the "Creation" pane, in the "Containers" group, click "Drawer".
  2. Click the position where the control will be created in the page. The control appears in creation mode.
    The created Drawer control is empty: the upper section (whose size can be adapted via the sizing handle) receives the clicks and triggers the collapse/expand operation of lower section.
  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.
WEBDEV - Server codeWEBDEV - Browser code

Drawer control found in a page:

  • When the Drawer control is in edit mode in the page editor, it always appears in its maximum size.
  • The operations for collapsing/expanding the control always come with an animation if they are performed:
    • in browser code.
    • in server code in an AJAX process.
  • When the Drawer control is collapsed, the controls located below it do not automatically move up except if they are positioned (as well as the Drawer control) in a cell that uses the relative positioning of controls. See Cell control for more details.
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