[Lazarus] VirtualTreeView on Mac

Eugen Bolz info at eugen-bolz.de
Fri Nov 12 20:13:52 CET 2010


Am 11.11.10 01:18, schrieb dmitry boyarintsev:
> On Wed, Nov 10, 2010 at 12:40 AM, Eugen Bolz<info at eugen-bolz.de>  wrote:
>> It seems that everything is painted in Paint; , it didn't helped to
>> Invalidate it from Outside nor to Invalidate on LMPAINT - Message
>>
>> Any other Suggestions? :(
> Could you check mantis for the bug report? If i remember correctly,
> there's a report about it.
>
> thanks,
> Dmitry
The WMPAINT-Procedure / LMPAINT-Message don't sends a "PaintRect" in its 
Message on Mac, so the Rect, what VST should paint again is everytime 
Rect(0,0,0,0) -> Nothing is painted.

Thats why it add in procedure TBaseVirtualTree.Paint:
{$IFDEF Darwin}
    FUpdateRect := ClientRect;
{$ENDIF}

Now its painted at least also on Darwin :)

Best Regards
Eugen





More information about the Lazarus mailing list