Felipe Monteiro de Carvalho wrote:
On 11/28/06, Marc Weustink <[EMAIL PROTECTED]> wrote:
A statictext is a TWinControl descendant, it has a handle and can be
focussed. If it can be focussed, it can have a tabstop and thus a
taborder (maybe to focus a bound focuscontrol)
Why would anyone want to focus a Label?
From the delphi help (I wondered myself also)
+ 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 component’s accelerator
+ key must belong to a windowed control—for example, on an ActiveX
+ property page.
Plus, statictext uses native controls. I need to check, but I would be
surprised if Gtk or Qt allows it´s standard caption control to be
focused. publising this properties might cause cross-platform issues.
Not publising it causes delphi incompatebilities.
Why someone would prefer to use a statictext instead of a TLabel, I
don't know.
TStaticText uses native controls. So it´s easier to be implemented.
That not the reason they are in delphi I guess.
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives