注册 登录
编程论坛 Delphi论坛

[求助]StaticText控件?

fuliping 发布于 2007-03-15 14:57, 2958 次点击
弱弱滴问一句:
StaticText控件与Label控件有什么区别?我觉得它们都是用来体现显示文本功能的。有什么不同吗?
那么Statustext控件哪?
顺便问一下:Statustext控件在哪里哟?俺怎么木有看到啊?
5 回复
#2
sgliuxiu2007-03-15 20:07

这里是delphi帮助里面的摘录:

TStaticText is a windowed control that displays text on a form.

Unit

StdCtrls

Description

The TStaticText component functions like TLabel, except that it descends from TWinControl and therefore has a window handle. Use TStaticText instead of TLabel when the components accelerator key must belong to a windowed controls----for example, on an ActiveX property page.

Use this component: When you want users to do this:
TLabel Display text on a nonwindowed control.
TStaticText Display text on a windowed control.

You place a label on a form when you need to identify or annotate another component such as an edit box or when you want to include text on a form. The standard label component, TLabel, is a non-windowed control (widget-based control in CLX applications), so it cannot receive focus; when you need a label with a window handle, use TStaticText instead.

#3
sgliuxiu2007-03-15 20:09

该文本在additionnal里面,象个A的那个

#4
边城路人2007-03-15 21:05
是啊
楼主用的是哪个版本呢?
#5
fuliping2007-03-15 21:31
我用的是Delphi6。
那么sgliuxiu,你回答我的是不是“Statustext控件在哪里”这个问题?
在Delphi6中,“该文本在additionnal里面,象个A的那个”是StaticText控件,
是不是因为版本的问题,StaticText控件和Statustext控件是不是同一个?
#6
sgliuxiu2007-03-15 22:55

sorry,StaticText 在additional里面 ,我用的是delphi7,应该是一样的位置.

statustext是rp里面的属性吧,它不是控件.

1