PC SOFT

WINDEV的在线文档

  • Overview
  • Principle
  • The principle for scrolling internal windows is straightforward
  • Implementation
  • Browsing internal windows: Programmed browse
  • Browsing internal windows: automatic browse on a data file or query
  • Advanced programming
  • WLanguage functions for handling the internal windows
  • Processes run when scrolling the internal windows
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview
In Windows applications, all the operations are performed via the mouse or the keyboard. Touch screens also allows operations to be performed using your hands directly.

In the applications for mobile devices, several features are available via finger movements.

The internal windows propose a scroll by swipe:

  • 19版本和更高版本
    WinDevWindows In the Windows applications: scrolling through the windows is performed via the mouse.
    19新版本
    WinDevWindows In the Windows applications: scrolling through the windows is performed via the mouse.
    WinDevWindows In the Windows applications: scrolling through the windows is performed via the mouse.

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.
  • By programming, a list of internal windows is associated with the "Internal window" control.
  • At run time, the different internal windows of the list will be displayed when the user moves his fingers (or mouse) to scroll through the window.

You also have the ability to create a scroll of internal windows based on a data file or on a query. In this case, the principle is as follows:

  • An internal window is created. The controls of this window are associated with a data file or with 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 run time, the file (or the query) will be browsed and displayed in the internal windows when the user moves his fingers (or the mouse) to scroll the window.

Implementation

Browsing internal windows: Programmed browse

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" control in your window: on the "创建" pane, in the "容器" group, click "内部窗口".
  3. Display the description window of the "Internal window" control. In the "GUI" tab:
    • Check "Allow the change of content by swipe".
    • Specify the size of the cache. The size of the cache corresponds to the number of internal windows that will be stored in memory (3 by default). The smaller this number is, the smaller the memory consumption will be. On the contrary, the windows will be loaded more frequently.
  4. By programming, build the list of internal windows that will be displayed in the "Internal window" control. To do so, use 内部窗口列表添加 as many times as necessary.
Notes:
  • The windows must be added in the requested browse order.
  • The parameters that must be passed to the added internal windows can be specified in 内部窗口列表添加.
  • The same internal window can be added several times with different parameters.

Browsing internal windows: automatic browse on 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" control in your window: on the "创建" pane, in the "容器" group, click "内部窗口".
  3. Display the description window of the "Internal window" control.
    • In the "General" tab, associate the internal window that was just created with the "Internal window" control.
    • In the "GUI" tab:
      • Check "Allow the change of content by swipe".
      • Specify the size of the cache. The size of the cache corresponds to the number of internal windows that will be stored in memory (3 by default). The smaller this number is, the smaller the memory consumption will be. On the contrary, the windows will be loaded more frequently.
    • In the "Content" tab:
      • Select the mode for filling the internal window: "File/Query".
      • Select the source used: file, query or embedded query.
      • Select the search item.

Advanced programming

WLanguage functions for handling the internal windows

Several WLanguage functions can be used to manage the browses of internal windows:
10版本和更高版本
改变窗口源
10新版本
改变窗口源
改变窗口源
Dynamically changes the window displayed in an Internal Window control.

Case of scrolling internal windows: Modifies the window currently displayed. This modification is saved in the list of internal windows to scroll.

18版本和更高版本
内部窗口列表显示
内部窗口列表显示
Refreshes the display of an "Internal window" control with automatic browse on a data file or query.
18版本和更高版本
内部窗口列表添加
内部窗口列表添加
Adds a new internal window to the list of internal windows browsed by an Internal Window control.
19版本和更高版本
内部窗口列表插入
内部窗口列表插入
Inserts a new internal window in the list of internal windows used by an Internal Window control.
18版本和更高版本
内部窗口列表数目
内部窗口列表数目
返回当前存在于携带内部窗口场内部窗口列表内的窗口数量。
18版本和更高版本
内部窗口列表位置
内部窗口列表位置
Displays the internal window corresponding to the specified position or returns the position of the internal window currently displayed.
18版本和更高版本
内部窗口列表上一个
内部窗口列表上一个
在被一个内部窗口控件遍历的内部窗口列表中显示上一个内部窗口。
18版本和更高版本
内部窗口列表下一个
内部窗口列表下一个
在被一个内部窗口控件遍历的内部窗口列表中显示下一个内部窗口。
18版本和更高版本
内部窗口列表删除
内部窗口列表删除
Deletes an internal window found in the list of internal windows browsed by an Internal Window control.
18版本和更高版本
内部窗口列表删除全部
内部窗口列表删除全部
Deletes all the internal windows from the list of internal windows browsed by an Internal Window control.

Notes:

Processes run when scrolling the internal windows

When implementing the scroll of internal windows, you have the ability to configure the size of the cache, 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 size of the cache are loaded. The following processes are run for each one:
    • Declaring the global variables of the internal window
    • Initializing the controls found in the internal window
    • Initializing the internal window
    • After loading the internal window.
  • The following processes are run when the user changes the content of the internal window by swipe:
    • Selection by swipe.
    • Loading the next internal window (the processes run are the ones of the above paragraph).
    • Unloading one of the internal windows (according to the size of the cache). In this case, the "Before unloading the internal window" process and the "Closing" process are run.
Notes: