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 Ventana interna
  • Overview
  • Principle
  • The principle for scrolling internal windows is straightforward
  • Implementation
  • Internal window path: Programmed path
  • Internal window browsing: automated browsing of a data file or query
  • Advanced programming
  • WLanguage functions for handling internal windows
  • Events run when scrolling the internal windows
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
In Windows applications, all operations are performed with the mouse or keyboard. Touch screens also allows performing certain operations directly with the fingertips.
In applications for mobile devices, several features are available via finger movements.
The internal windows propose a scroll by swipe:
  • AndroidiPhone/iPad In Android and iPhone/iPad applications, windows are dequeued by a simple manual sweep.
  • Windows In Windows applications, windows are dequeued using the mouse.
Android Use conditions:
To scroll the internal windows in Android, the "Android Support Library V4" extension is required on the development computer, when generating the Android application. The setup procedure of this extension is available at the following address:
http://developer.android.com/tools/extras/support-library.html#Downloading
Principle

The principle for scrolling internal windows is straightforward

  • An "Internal window" control is created in the editor. This "Internal window" control supports the swipe.
  • Through programming, a list of internal windows is associated with the "Internal window" control.
  • At runtime, the different internal windows of the list will be displayed when the user modifies the displayed element (via touch, mouse or specific buttons).
It is also possible to create a dequeue of internal windows based on a data file or a query. In this case, the principle is as follows:
  • An internal window is created. The fields in this window are associated with a data file or a query..
  • An "Internal window" control is created in the editor. This "Internal window" control supports the swipe and it is associated with the data file or with the query of the internal window.
  • At runtime, the data file (or the query) will be browsed and displayed in the internal window when the user modifies the displayed element (via touch, mouse or specific buttons).
Implementation

Internal window path: Programmed path

To implement a browse of internal windows:
  1. Create the internal windows that will be displayed during the browse. These internal windows can accept parameters during their opening if necessary.
  2. Create an "Internal window" field in your window: under the "Creación" pane, in the "Contenedores" group, click on "Ventana interna"..
  3. Display the description window of "Internal window" control. In the "UI" tab:
    • Check "Allow the change of content by swipe".
    • Specify:
      • the cache size. The size of the cache corresponds to the number of internal windows that will be stored in memory (3 by default).
        The cache cannot be used to load windows in advance. Windows are actually loaded when IWListPosition is used or when a window goes before or after the current window.
        The smaller this number is, the smaller the memory consumption will be. On the contrary, the windows will be loaded more frequently.
      • scan orientation: vertical or horizontal.
      • the animation to perform during the swipe (if necessary). Click "Configure the animation".
        The "Style" tab of the control appears positioned on the "Control animation" element. You can select the desired animation and configure its parameters via the "Parameters" button.
        If the option "Defined by the project" is selected, the animation performed will be the one configured in the project options. For more details, see Control animations.
  4. Through programming, build the list of internal windows that will be displayed in the "Internal window" control. To do so, use IWListAdd as many times as necessary.
Remarks:
  • The windows must be added in the desired browse order.
  • The parameters that must be passed to the added internal windows can be specified in IWListAdd.
  • The same internal window can be added several times with different parameters.

Internal window browsing: automated browsing of a data file or query

To implement a browse of internal windows based on a data file or on a query:
  1. Create the internal window that must display the different records. The controls of this internal window must be linked to the items of the file or query being read.
  2. Create an "Internal window" field in your window: under the "Creación" pane, in the "Contenedores" group, click on "Ventana interna"..
  3. Display the description window of "Internal window" control.
    • On the "General" tab, associate the internal window that was just created with the "Internal window" control.
    • In the "UI" tab:
      • Check "Allow the change of content by swipe".
    • Specify:
      • the cache size. The size of the cache corresponds to the number of internal windows that will be stored in memory (3 by default).
        The cache cannot be used to load windows in advance.
        The smaller this number is, the smaller the memory consumption will be. On the contrary, the windows will be loaded more frequently.
      • scan orientation: vertical or horizontal.
      • the animation to perform during the swipe (if necessary). Click "Configure the animation".
        The "Style" tab of the control appears positioned on the "Control animation" element. You can select the desired animation and configure its parameters via the "Parameters" button.
        If the option "Defined by the project" is selected, the animation performed will be the one configured in the project options. For more details, see Control animations.
      • Check (if necessary) "Position on the current record when opening the internal window". This option is used to automatically position the data of the internal window on the current record. This option is taken into account only if the change of content is performed by swipe and if the content corresponds to a data source (file, query, etc.).
    • In the "Content" tab:
      • Select the mode for filling the internal window: "File/Query".
      • Select the source used: file, query or integrated query.
      • Select the search item.
Advanced programming

WLanguage functions for handling internal windows

Several WLanguage functions are available to manage internal window paths:
ChangeSourceWindowDynamically changes the window displayed in an Internal Window control.
Case of internal window dequeues: Modifies the currently displayed window. This modification is saved in the list of internal windows to scroll.
IWListAddAdds a new internal window to the list of internal windows browsed by an Internal Window control.
IWListCountRetorna el número de ventanas internas que se encuentran actualmente en la lista de ventanas internas buscadas en un control Ventana Interna.
IWListDeleteDeletes an internal window found in the list of internal windows browsed by an Internal Window control.
IWListDeleteAllDeletes all the internal windows from the list of internal windows browsed by an Internal Window control.
IWListDisplayRefreshes an "Internal window" control with automatic iteration on a data file or query.
IWListInsertInserts a new internal window in the list of internal windows used by an Internal Window control.
IWListNextMuestra la siguiente ventana interna de la lista de ventanas internas exploradas por un control Ventana interna.
IWListPositionMuestra la ventana interna correspondiente a la posición especificada (en la lista de ventanas internas exploradas por un control Ventana interna) o devuelve la posición de la ventana interna mostrada actualmente (en la lista de ventanas internas exploradas por un control Ventana interna).
IWListPreviousMuestra la ventana interna anterior en la lista de ventanas internas exploradas por un control Ventana interna.
Remarks:
  • During an automatic iteration performed on a data file or on a query, ChangeSourceWindow, IWListAdd, IWListInsert, IWListDelete, IWListDeleteAll cannot be used.
  • ChangeSourceWindow is used to modify the window currently displayed. This modification is saved in the list of internal windows to scroll.
  • Only the controls found in the internal window currently displayed can be accessed programmatically. For example, the following code is used to change the caption of the button found in the internal window currently displayed:
    MyInternalWindowControl.BTN_Button = "New caption"
  • The SwipeEnabled property is used to enable or disable the browse of internal windows with the finger. This allows you to temporarily disable the swipe in order to perform a specific operation.
  • The VerticalSwipe property gets and sets the swipe gesture orientation.

Events run when scrolling the internal windows

When implementing the scroll of internal windows, you have the ability to configure the cache size, which means the number of internal windows loaded in memory.
When running a window used to scroll a list of internal windows:
  • The internal windows found in the list and corresponding to the number specified in the cache size are loaded. The following events are run for each one:
    • Global declarations of the internal window
    • Initializing the controls found in the internal window
    • Initializing the internal window
    • After loading the internal window.
  • When the user changes the contents of the internal window with a swipe gesture, the following events are run:
    • Selection by swipe.
    • Loading the next internal window (the events run are those of the above paragraph).
    • Unloading one of the internal windows (according to the cache size). In this case, the events "Before unloading the internal window" and "Closing" are run.
Remarks:
Versión mínima requerida
  • Versión 18
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 15/11/2024

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