Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-11

VirtualTreeView on Mac

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Eugen Bolz

Hey :),

is it possible to get VirtualTreeView-New "running" on Mac?

I tried it myself, but the TreeView is just empty, even if I add some Nodes, nothing is gonna painted on it

Best Regards
Eugen

Reply by email

dmitry boyarintsev
to Eugen Bolz
Eugen Bolz wrote
I tried it myself, but the TreeView is just empty, even if I add some Nodes, nothing is gonna painted on it

Try invalidate the tree. I'm not sure about the TreeView implementation details, but drawing on a control canvas is allowed only inside OnPaint event. But It's more likely unimplemented API for Carbon.

thanks,
Dmitry

Reply by email

Eugen Bolz
to dmitry boyarintsev
dmitry boyarintsev wrote 11 lines
On Tue, Nov 9, 2010 at 4:25 PM, Eugen Bolz wrote: > I tried it myself, but the TreeView is just empty, even if I add some Nodes, > nothing is gonna painted on it Try invalidate the tree. I'm not sure about the TreeView implementation details, but drawing on a control canvas is allowed only inside OnPaint event. But It's more likely unimplemented API for Carbon. thanks, Dmitry

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? :(

Best Regards
Eugen

Reply by email

dmitry boyarintsev
to Eugen Bolz
Eugen Bolz 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

Reply by email

Eugen Bolz
to dmitry boyarintsev
dmitry boyarintsev wrote 10 lines
On Wed, Nov 10, 2010 at 12:40 AM, Eugen Bolz 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

Reply by email