Difference between revisions of "Reference: MSEgui/TLabel"
From Free Pascal wiki
Jump to navigationJump to searchMichaelEbner (talk | contribs) |
MichaelEbner (talk | contribs) |
||
Line 77: | Line 77: | ||
[[Image:msegui_label_options.png]] | [[Image:msegui_label_options.png]] | ||
+ | |||
+ | |||
+ | ====TextFlags==== | ||
+ | |||
+ | With TextFlags you can specify things like alignment or rotation. See the following image and the image at [[Reference:_MSEgui/TFrame#Caption|CaptionTextFlags]] | ||
+ | |||
+ | <syntaxhighlight> | ||
+ | textflagty = (tf_xcentered, tf_right, tf_xjustify, tf_ycentered, tf_bottom, | ||
+ | tf_rotate90, tf_rotate180, | ||
+ | tf_clipi, tf_clipo, | ||
+ | tf_grayed, tf_wordbreak, tf_softhyphen, | ||
+ | tf_noselect, tf_underlineselect, | ||
+ | tf_ellipseleft, tf_ellipseright, | ||
+ | tf_tabtospace, tf_showtabs, | ||
+ | tf_force); | ||
+ | textflagsty = set of textflagty; | ||
+ | |||
+ | property TextFlags: textflagsty default defaultlabeltextflags; | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | [[Image:msegui_label_textflags.png]] | ||
===Methods=== | ===Methods=== |
Revision as of 12:31, 22 January 2016
TLabel
work in progres
TLabel shows some Text on the form.
Reference
Hierarchy
- TObject
- TPersistent
- TComponent
- TMseComponent
- TActComponent
- TWidget
- TActionWidget
- TActionPublishedWidgetNwr
- TPublishedWidgetNwr
- TPublishedWidget
- TCustomLabel
- TLabel
Properties
inherited from TWidget
Caption
The Caption is the text the label displays.
{$ifdef mse_unicodestring}
msestring = unicodestring;
{$else}
msestring = widestring;
{$endif}
property caption: msestring;
Options
With the option lao_nogray you can prevent a label to be shown grayed if itself or a parent widget is disabled.
labeloptionty = (lao_nogray,lao_nounderline);
labeloptionsty = set of labeloptionty;
property Options: labeloptionsty default [];
If you use a & char in a caption, the following char gets underlined. To prevent this use lao_nounderline:
TextFlags
With TextFlags you can specify things like alignment or rotation. See the following image and the image at CaptionTextFlags
textflagty = (tf_xcentered, tf_right, tf_xjustify, tf_ycentered, tf_bottom,
tf_rotate90, tf_rotate180,
tf_clipi, tf_clipo,
tf_grayed, tf_wordbreak, tf_softhyphen,
tf_noselect, tf_underlineselect,
tf_ellipseleft, tf_ellipseright,
tf_tabtospace, tf_showtabs,
tf_force);
textflagsty = set of textflagty;
property TextFlags: textflagsty default defaultlabeltextflags;
Methods
Events
inherited from TWidget
known issues
issues of the class
issues of this documentation
Feel free to add your points here.