Forum > Carbon

TListView: onCustomDraw item, canvas.brush.color not working

(1/3) > >>

Hansaplast:
The onCustomDrawItem does not seem to work properly under the Carbon widgetset.
I think this post refers to the same problem.

I noticed a few resolved and close bug reports for other widget sets, and some work around tips for those widgetsets as well, but I simply cannot get it to work under Carbon.

I'm trying to accomplish alternating row colors in a TListView (see also this article).

Does anyone know how to get this done?
Or should I post a bug?

cpalx:
Post a bug. Listview is not a fully implmented component

Hansaplast:
I just noticed that the onCustomDrawItem or onAdvancedCustomDraw simply never fire ...?

Do I need to set a property to have this fire?

Phil:
You are setting a property when you double-click or click button in Object Inspector event.

If you just typed in the event handler, then select it for the appropriate event in Object Inspector.

Thanks.

-Phil

Hansaplast:
I double clicked the event to create the event handler.
That procedure does not get fired ever ...!?

I have also been looking for such a property (like Style for a TListBox -> lbOwnerDrawFixed), but didn't find anything like that for a TListView  :o

Navigation

[0] Message Index

[#] Next page

Go to full version