Zitat von José Mejuto <[email protected]>:
Hello Lazarus-List,
I'm trying to understand the widgetset know-how. I'm able to
understand, more or less, the usual TButton, TEdit, TMemo, etc, in
other words the TWinControl descendants. Now I'm trying to deal with
TLabel, but it is not a TWinControl, so I'm lost how it gets draw in
the form :-?
Must I override something in TControl ? I only wish to get some
indication that it is in the form, as my code reach the DrawText
procedure for TLabel and I'm not completly sure if I'm not properly
drawing or not properly answering some LCL requests to perform the
draw.
So in other words, how the LCL handles the TLabel as it is not a
platform widget (I know that there is a TWSCustomLabel).
TLabel is a TCustomLabel is a TGraphicControl is a TControl.
TGraphicControl catches LM_PAINT messages, which are sent by its
parent TWinControl. The parent TWinControl has a Handle/Widget.
Mattias
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus