[Lazarus] TreeView does not draw tiself

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Feb 26 10:17:42 CET 2008


On Tue, 26 Feb 2008 09:21:44 +0100
Damien Gerard <milipili at shikami.org> wrote:

> 
> Le Feb 26, 2008 à 8:43 AM, Damien Gerard a écrit :
> 
> >
> > Hi !
> >
> > Since a few revision, I have a TTreeView which does not redraw
> > itself. As you can see in the screenshot, it is not for all TreeView
> > components. The left one works correctly but the one in the middle
> > never works. However you can still click on it, no problem.
> >
> > http://ftn.shikami.org/misc/Lazarus/Cliché%202008-02-26%2008-34-32.jpg
> >
> 
> The link was broken and has been renammed :
> http://ftn.shikami.org/misc/Lazarus/CSnapshot%202008-02-26%2008-34-32.jpg
> 
> 
> > There is the same behavior with Win32/GTK2 under Windows and Linux
> > (OS X I don't know).
> >
> > Do someone has a clue where the bug comes from ?

... and check that your TreeView.BeginUpdate/EndUpdate are balanced.
For example: If you move another window above the TreeView and it does
not paint, then you probably forgot an EndUpdate.


Mattias




More information about the Lazarus mailing list