AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Cajón de navegación
  • Overview
  • Creating a "Drawer" control in a window
  • Creating a "Drawer" control in a page
  • Characteristics of Drawer controls
  • Drawer control found in a window
  • Drawer control found in a page
  • Programming a Drawer control
  • Expanding/Collapsing a Drawer control
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
The Drawer control can contain other controls and it is intended to make UI design easier. 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,
  • through programming.
Drawer control
WINDEV

Creating a "Drawer" control in a window

To create a "Drawer" control in a window:
  1. On the "Creación" tab, in the "Contenedores" group, expand "Pestaña y asociados" and select "Drawer control".
  2. Click at the desired location to create the control. The control appears in the editor.
    The Drawer control created automatically contains a default field: this field is the button used to "Wind/Unwind" the drawer.. 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 view the characteristics of the control, select "Description" in the context menu.
WEBDEV - Código ServidorPHPAjax

Creating a "Drawer" control in a page

To create a "Drawer" control in a page:
  1. On the "Creación" tab, in the "Contenedores" group, click "Cajón de navegación ".
  2. Click where you want to create the control in the page. The control appears in the editor.
    The Drawer control created is empty: the upper zone (whose size can be adjusted using the sizing handle) receives clicks and causes the lower zone to roll up or down.
  3. Drop on the Drawer control the different controls that must appear/disappear when it is used.
To view the characteristics of the control, select "Description" in the context menu.
Characteristics of Drawer controls
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 context 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 - Código ServidorWEBDEV - Código Navegador

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 event (or 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. For more details, see Cell 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
Versión mínima requerida
  • Versión 11
Esta página también está disponible para…
Comentarios
Drawer Control not working properly
Make sure the drawer control is wider than the contents you are moving below the drawer control.
Glenn
30 04 2021

Última modificación: 30/09/2024

Señalar un error o enviar una sugerencia | Ayuda local