PC SOFT

WINDEV的在线文档

  • Content of a Static control
  • Equivalence
  • Caption associated with a window or with a page
  • Caption associated with a Static control, an Edit control, a Combo box, a List box or a Listview
  • Caption associated with a table column
  • Caption of a Check Box or Radio Button control
  • Caption of a Check Box column in a Treeview Table control
  • Caption associated with an Image control
  • Caption associated with a button
  • Caption of a Tab control
  • Differences between WinDev and WinDev Mobile: Managing the menu options
  • Limits
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

In a database, ..标签 is used to:
  • Find out the caption associated with an item of a data file.
    Note: The item was created in the data model editor or by programming.
  • Find out the caption associated with a data file.
    Note: The data file may have been created in the data model editor or by programming.
  • Find out and modify the caption of a connection. The connection can correspond to:
In a report, ..标签 is used to find out or modify the text:
  • of a Static control.
  • of a Link control.
  • 17版本和更高版本
    of a Chart control.
    17新版本
    of a Chart control.
    of a Chart control.
In a window or in a page, ..标签 is used to:
  • Find out and modify the caption of a control found in a window or in a page.
  • Find out and modify the caption of a menu option.
  • Find out and modify the title of a window or page.
Reminder: The initial caption of a control, window, page or menu option is defined in the editor during the object description.

18版本和更高版本
WinDevWindows Store apps This property is now available in Windows Store Apps mode.
18新版本
WinDevWindows Store apps This property is now available in Windows Store Apps mode.
WinDevWindows Store apps This property is now available in Windows Store Apps mode.
例子
WinDevWindows Store apps用户代码(MCU)
// Find out the caption associated with the Customer.Title item
ResCaptionCustomer.Title..标签

// Modify the text in the "STC_IntroControl" Static control
STC_IntroControl..标签="Dear Sir"+Customer.Name
// Equivalent to: STC_IntroControl..Caption = "Dear Sir [%Customer.Name%]"

WinDevWindows Store apps用户代码(MCU)
// Change the caption of the button
如果WIN_Window1..已修改=,那么
BTN_Add..标签="Save"
否则
BTN_Add..标签="Close"
结束

语法
WinDevWindows Store apps用户代码(MCU)

Finding out the caption associated with an item 隐藏详细信息

 <Result> = <File Name>.<Item Name>..标签
<Result>: Integer
Caption of the item.
<File Name>: Character string (with or without quotes)
Logical name of the data file used.
<Item Name>: Character string (with or without quotes)
Name of the item used.

Finding out the text of the caption associated with an element 隐藏详细信息

<Result> = <Element Name>..标签
<Result>: Character string
Text displayed in the specified element.
<Element Name>: Character string (with or without quotes)
Name of the element to use.

Modifying the text of the caption associated with an element 隐藏详细信息

<Element Name>..标签 = <New Text>
<Element Name>: Character string (with or without quotes)
Name of the element to use.
<New Text>: Character string
New text displayed in the specified element.

注意

Content of a Static control

To retrieve the value of a control or the value of an item in a Static control:
  • In the report editor: insert [%<Control Name>%] or [%<Item Name>%] into the caption of the control.
  • In programming: two syntaxes are available with ..标签:
    • use [%<Control Name>%] or [%<Item Name>%] in the string corresponding to the caption. For example:
      STC_IntroControl..标签="Dear Sir [%Customer.Name%]"
    • use the name of the control or the name of the item in the caption. For example:
      STC_IntroControl..标签="Dear Sir"+Customer.Name

Equivalence

..标签 is equivalent to ..值.

To retrieve the text of a Static control, the following syntaxes are equivalent:

ResCaption = <Name of Static Control>..标签

ResCaption = <Name of Static Control>..值

ResCaption = <Name of Static Control>

To modify the text displayed in a Static control, the following syntaxes are equivalent:
<Name of Static Control>..标签 = <New Text>

<Name of Static Control>..值 = <New Text>

<Name of Static Control> = <New Text>

WinDevWindows Store apps用户代码(MCU)

Caption associated with a window or with a page

The caption associated with a window or with a page corresponds to the title of the window or to the title of the page. This title is returned by ..标题.

WinDevWindows Store apps用户代码(MCU)

Caption associated with a Static control, an Edit control, a Combo box, a List box or a Listview

The caption of a control corresponds to the text of the caption.

For a Static control, this text is returned by ..值.

WinDev用户代码(MCU)

Caption associated with a table column

The caption of a table column corresponds to the title of the column and it is returned by ..标题.

WinDevWindows Store apps用户代码(MCU)

Caption of a Check Box or Radio Button control

..标签 is used to find out and modify:
  • the caption of the Check Box or Radio Button control,
  • the caption of an option found in the Check Box or Radio Button control.
To modify the caption of an option found in a Check box or Radio Button control:

<Control Name>[<Subscript>]..标签 = <New Caption>

For example:
RADIO_RadioButton2】..标签="Option #2"

To modify the caption associated with a Check box or Radio Button control:

<Control Name>..标签 = <New Caption>

For example:

RADIO_RadioButton..标签="Age of participants"

To retrieve the caption of an option:

<Control>[Subscript]..标签

WinDev用户代码(MCU)

Caption of a Check Box column in a Treeview Table control

..标签 applied to a Check Box column found in a TreeView Table control is used to find out and modify the caption displayed beside the check box.

WinDevWindows Store apps用户代码(MCU)

Caption associated with an Image control

..标签 returns or replaces the current image by the image whose name is passed in parameter.

..标签 is equivalent to a direct assignment of the control with the name of the image (Control = Image_Name).

The Image control includes a caption: therefore, ..标签 is used to modify this caption. If the new caption does not correspond to a valid image, the caption of the Image control is modified.

WinDevWindows Store apps用户代码(MCU)

Caption associated with a button

..标签 can have two actions:
  • replace the image of the button (the name passed in parameter corresponds to an image file),
  • return or replace the caption associated with the button (the text passed in parameter does not correspond to an image file).
For example:

// Modify the image of a graphic button
BTN_Button1..标签="Help.BMP"

// Modify the caption of a text button
BTN_Button1..标签="New caption"

Note: If the specified control contains the & character, the letter that follows the & character is considered as being the shortcut of the control.

20版本和更高版本
WinDev Note: The caption of a Button control can be in RTF or not ("RTF" checked in the "General" tab of the control description).
  • The caption may contain RTF tags when it is retrieved. To get the caption without the RTF tags, use RTF转换到文本. For example:
    MyCaption字符串型
    MyCaptionRTF转换到文本BTN_Button..标签)
  • In modification, the text associated with the caption of the control can be a RTF text or not. The Button control will adapt automatically.
20新版本
WinDev Note: The caption of a Button control can be in RTF or not ("RTF" checked in the "General" tab of the control description).
  • The caption may contain RTF tags when it is retrieved. To get the caption without the RTF tags, use RTF转换到文本. For example:
    MyCaption字符串型
    MyCaptionRTF转换到文本BTN_Button..标签)
  • In modification, the text associated with the caption of the control can be a RTF text or not. The Button control will adapt automatically.
WinDev Note: The caption of a Button control can be in RTF or not ("RTF" checked in the "General" tab of the control description).
  • The caption may contain RTF tags when it is retrieved. To get the caption without the RTF tags, use RTF转换到文本. For example:
    MyCaption字符串型
    MyCaptionRTF转换到文本BTN_Button..标签)
  • In modification, the text associated with the caption of the control can be a RTF text or not. The Button control will adapt automatically.

WinDev用户代码(MCU)

Caption of a Tab control

The caption of a Tab control corresponds to the text of the button that is used to select the tab pane.

WinDev

Differences between WinDev and WinDev Mobile: Managing the menu options

Standard WinDev: The menu options (in main menus or in popup menus) can be managed by the Menuxxx functions and by the corresponding properties.

WinDev Mobile: To optimize the size of the WinDev framework installed on the Pocket PC, the menu options can only be managed by the properties.

The equivalence table is as follows:

Available functions
in WinDev
Equivalent properties
菜单去除标记
菜单是否标记
菜单标记
选择
菜单状态报表
菜单不可见可见
菜单取消选择选项报表
菜单选择选项报表
菜单标签标签

Limits

WinDev In a report, ..标签 only applies to the "Static" controls and to the "Link" controls.

WinDev In a window, ..标签 cannot be used on the following types of controls:
  • Spin
  • Scrollbar