[Lazarus] TreeView does not draw tiself

Damien Gerard milipili at shikami.org
Tue Feb 26 10:41:31 CET 2008


Le Feb 26, 2008 à 10:17 AM, Mattias Gaertner a écrit :

> 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, you are my hero ! :)

Indeed a 'EndUpdate' was missing.


--
Damien Gerard
milipili at shikami.org

Le temps n'a pas d'importance. Seul le code est important
    -- (f00ty)








More information about the Lazarus mailing list