PC SOFT

WINDEV的在线文档

  • Overview
  • Initializing a Static control
  • Retrieving the value of a Static control
  • Properties specific to the management of a static 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本地访问

Handling a Static control by programming

Overview
WinDev, WinDev Mobile and WebDev allow you to handle a Static control by programming. To do so, use the variable of the Static control in the code.

The variable of the Static control corresponds to the name of the static . A Static control always is a Text control.

Initializing a Static control
To initialize a Static control, all you have to do is assign the variable of the Static control.

For example:

// Assign the last and first names read in CUSTOMER file to a Static control
STC_MyStaticCustomer.LastName+"  "+Customer.FirstName

Retrieving the value of a Static control
To retrieve the content of a Static control:
  • perform a simple assignment. For example:
    CurrentStaticContentSTC_STATIC1
  • use the Static control directly. For example:
    信息STC_STATIC1
  • use ..值 or ..标签.

Properties specific to the management of a static control
The following properties are used to manage the characteristics of a Static control by programming.
动画Used to find out the current status of the animation in a Static control and to start/stop an animation in an animated Static control.
初始动画Used to find out the initial status of the animation in a Static control.
省略号Used to find out and modify the management mode of the ellipse in a Static control.
标签Used to find out and modify the caption of the control.
管理RTFUsed to find out and modify the RTF characteristic (Rich Text Format) of a Static control.

To find out the entire list of WLanguage properties that can be used with a Static control, see Properties associated with a Static control.