[lazarus] Win32 bug: tcontrol's painting themselves intgroupboxes

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Aug 31 12:54:18 EDT 2003


On Sun, 31 Aug 2003 16:58:18 +0200
Micha Nelissen <M.Nelissen at student.tue.nl> wrote:

> 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.

Right.
An additional problem is, that the gtk paints before and the win32 paint
during message handling and they both uses different DC origins. There are
plenty of possibilities, where the origin can be moved to fix this. I will
also look into this ...


Mattias







More information about the Lazarus mailing list