[lazarus] Win32 bug: tcontrol's painting themselves in tgroupboxes
Micha Nelissen
M.Nelissen at student.tue.nl
Sun Aug 31 10:58:03 EDT 2003
Hi,
The problem is the following: if a tcontrol paints itself to it's parent
DC, and the parent's clientrect is different than the origin, the
tcontrol's will paint themselves to the wrong position, namely the
parent.topleft, not the topleft of the clientrect. This happens with
TColorButton's in TGroupboxes for example. How do we solve this?
FYI: Delphi has not solved this, a control at position (0,0) in a
tgroupbox is painted on top of the caption, while we want it in the
clientrect.
Regards,
Micha.
More information about the Lazarus
mailing list