PC SOFT

WINDEV的在线文档

  • Overview of the Static control
  • Control in a window, in a page (static or dynamic) or in a report
  • Creating a Static control
  • Create a Static control in a window or in a report
  • Create a Static control in RTF format in a window
  • Transforming a "Static" control into an "RTF" control (report editor)
  • Handling a Static control
  • Typing the text of the Static control
  • Modifying a Static control in the report editor
  • Content of a Static control (report editor)
  • Notes
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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 of the Static control

Control in a window, in a page (static or dynamic) or in a report

A Static control is a control used to display a static text. The content of the control cannot be entered by the user.

To give effects to the displayed text, you have the ability to use:

  • WinDev The control's style, by configuring the "Shadow" setting.
  • WinDev The "RTF" type to display a text in RTF format.
  • WinDev A specific animation (scroll or blink).
15版本和更高版本
WinDev Note: The static controls found in a window can also be configured with a display mask to automatically format the value that is assigned to them.
15新版本
WinDev Note: The static controls found in a window can also be configured with a display mask to automatically format the value that is assigned to them.
WinDev Note: The static controls found in a window can also be configured with a display mask to automatically format the value that is assigned to them.

16版本和更高版本
WinDevLinux This type of control is now available for the WinDev applications in Linux.
16新版本
WinDevLinux This type of control is now available for the WinDev applications in Linux.
WinDevLinux This type of control is now available for the WinDev applications in Linux.
18版本和更高版本
WinDevWindows Store apps This type of control is now available for the applications in Windows Store apps mode.
18新版本
WinDevWindows Store apps This type of control is now available for the applications in Windows Store apps mode.
WinDevWindows Store apps This type of control is now available for the applications in Windows Store apps mode.

Creating a Static control
WinDevWindows Store apps

Create a Static control in a window or in a report

To create a Static control in a window or in a report:
  1. In the window editor, click. You also have the ability to select:
    • "Insert .. Control .. Static" in the window editor.
    • "Insert .. New control .. Static" in the report editor.
    On the "创建" pane, in the "常用控件" group, click.
  2. Click the position where the control must be created in the window or in the report. The control appears in creation mode.
To display the characteristics of the control, select "Description" from the popup menu of the control. You can now type the text displayed in the control.

Notes:

  • Windows Store apps The reports are not available.
  • 19版本和更高版本
    WinDev Multiline edit controls support the ellipse: if the text is too long to fit in its static control, the end of the text is represented by three points. Support for the ellipse is defined in the "Details tab of the Static control.
    19新版本
    WinDev Multiline edit controls support the ellipse: if the text is too long to fit in its static control, the end of the text is represented by three points. Support for the ellipse is defined in the "Details tab of the Static control.
    WinDev Multiline edit controls support the ellipse: if the text is too long to fit in its static control, the end of the text is represented by three points. Support for the ellipse is defined in the "Details tab of the Static control.

WinDev

Create a Static control in RTF format in a window

To create a Static control in RTF format in a window:
  1. In the window editor, click(or select "Insert .. Control .. Static").On the "创建" pane, in the "常用控件" group, click.
  2. Display the description window of the control ("Description" from the popup menu).
  3. In the "Details" tab, select "Text with formatting (RTF)".
  4. In the "General" tab, enter the text of the static in RTF format: a specific toolbar is automatically displayed, allowing you to format the text.
Notes:
  • A RTF static control can also be created via a cut/paste operation of a RTF text in the window.
  • To use a static control in RTF format, the "RICHED20.DLL" file must be found on the current computer. In most cases, the "RICHED20.DLL" file is found in the system directory of Windows.
  • 16版本和更高版本
    You also have the ability to use ..管理RTF to modify the RTF type of a Static control by programming.
    16新版本
    You also have the ability to use ..管理RTF to modify the RTF type of a Static control by programming.
    You also have the ability to use ..管理RTF to modify the RTF type of a Static control by programming.

WinDev

Transforming a "Static" control into an "RTF" control (report editor)

To display text in RTF format in a "Static" control, check "RTF format" in the "Details" tab of the control description.

The "Static" control becomes an "RTF" control. All the characteristics of the "Static" control are kept. See RTF control for more details.

Handling a Static control

Typing the text of the Static control

To type the text of the Static control:
  1. Click the Static control in the editor. The input cursor is displayed.
  2. Type the text of the Static control.
WinDev For the HTML or RTF static controls, each element can be formatted via a toolbar.

WinDev

Modifying a Static control in the report editor

Two methods are available:
  • Method 1:
    1. Select the control. The selection handles appear around the control.
    2. Click the control again. The mouse cursor turns into an edit cursor.
    3. Type the new caption of the control.
    4. Modify (if necessary) the formatting via the formatting toolbar.
    5. As soon as a click is performed outside the control, the control switches back to read-only.
  • Method 2:
    1. Select the control.
    2. Display the description window of the control ("Description" from the popup menu).
    3. Type the new caption in each language supported by the control.
    4. Modify (if necessary) the formatting in the "Style" tab.

WinDev

Content of a Static control (report editor)

  • The character string displayed in the Static control can contain the value of an item printed in the report. To insert the value of a report item or control into the text, enter the name of the item or control between the [% and %] characters.
    For example, the caption of the control can correspond to:
    The [%SupplierName%] supplier sells the [%ProductName%] product at [%PriceIOT%] .
    The SupplierName, ProductName and PriceIOT items will be replaced by their value during the execution of the report.
  • This caption can be entered over several lines. In this case, the control must be a multi-line control and its size must be large enough.
    Note: If an orientation angle is applied to a multi-line control, the automatic CR characters are ignored. Only the manual CR characters are taken into account.
Reminder : The "Auto-sizable" option is used to automatically increase the size of the control according to its content.

Notes
  • The content of a Static control can be entered in the editor or defined by programming.
  • A Static control can be linked to an item of a data file. In this case, the control is used to view the content of the items found in the data file.
  • 15版本和更高版本
    WinDev In the windows, the Static controls include a display mask in order to automatically format the data assigned to them. This mask can be modified by programming via ..输入掩码.
    15新版本
    WinDev In the windows, the Static controls include a display mask in order to automatically format the data assigned to them. This mask can be modified by programming via ..输入掩码.
    WinDev In the windows, the Static controls include a display mask in order to automatically format the data assigned to them. This mask can be modified by programming via ..输入掩码.