PC SOFT

WINDEV的在线文档

  • Overview
  • Creating a "HideShow" control
  • To create a "HideShow" control in a window
  • Characteristics of a HideShow control
  • HideShow control found in a window
  • Programming a HideShow control
  • Expanding/Collapsing a HideShow control
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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
The HideShow 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 included controls. The collapse/expand operation of the control can be done:
  • by clicking the title of the control,
  • by programming.
WinDev This type of control can be used in Windows 98 and later.

Creating a "HideShow" control

To create a "HideShow" control:
  1. In the window editor or in the page editor, click(or select "Insert .. Control .. HideShow control").
  2. Click the position where the control must be created in the window or in the page. The control appears in creation mode.
    • WinDev In a window, the created HideShow control automatically contains a default control: this control is the button used to "Expand/Collapse" the HideShow control. This control contains the necessary WLanguage code. You can customize it by associating it with a specific image.
  3. Drop on the HideShow control the different controls that must appear/disappear when it is used.
To display the characteristics of the control, select "Description" from the popup menu of the control.
WinDev

To create a "HideShow" control in a window

To create a "HideShow" control in a window:
  1. On the "创建" pane, in the "容器" group, expand "选项卡和关联" and select "HideShow control".
  2. Click the position where the control must be created in the window. The control appears in creation mode.
    The created HideShow control automatically contains a control: this control is the button used to "Expand/Collapse" the HideShow control. This control contains the necessary WLanguage code. You can customize this control by associating it with a specific image.
  3. Drop on the HideShow control the different controls that must appear/disappear when it is used.
To display the characteristics of the control, select "Description" from the popup menu of the control.

Characteristics of a HideShow control
WinDev

HideShow control found in a window

  • When the HideShow control is in edit in the window editor, it can be handled like when it is in execution. The popup menu of the control enables you to expand/collapse it upon request ("Collapse/Expand the HideShow control").
  • In the description of the HideShow control, the "General" tab is used to specify:
    • Whether an animation must be performed when handling a HideShow control.
    • Whether the size of the window must be adapted when handling the control. Indeed, when the HideShow control is expanded, the controls located below the HideShow 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 HideShow control.

Programming a HideShow control

Expanding/Collapsing a HideShow control

To collapse a HideShow control, use the following syntax:

<Name of HideShow Control> = False

To expand a HideShow control, use the following syntax:

<Name of HideShow Control> = True