How to define varios icons for each row in DBTreeView on loading from varios tables

10 views
Skip to first unread message

Ulrich Schaupp

unread,
Apr 1, 2025, 4:09:51 AMApr 1
to Rosi Delphi Components
Hello Tomas,

the icons or bitmaps are defined to each record with filename.
In DataItemsDef I can only define RecordImageIndex but not the filename with directora to load the image.
Is there another way to get the right image to DataItem?

Best regards
Uli

Tomas Rosinsky

unread,
Apr 1, 2025, 4:44:13 PMApr 1
to Rosi Delphi Components
Hi Uli,

my rDBTreeView can show icons just from assigned Images component (TCustomImageList).
It would be quite slow to load image from disk for each record everytime where items is drawn.

So probably only possible solution is firstly load all images to  TCustomImageList and then use correct index for each node.
Or you can use custom drawing of node and then load image from disk and draw it directly.
See example in RAD pages:

I hope it helps
Tomas

Dne úterý 1. dubna 2025 v 10:09:51 UTC+2 uživatel Ulrich Schaupp napsal:
Reply all
Reply to author
Forward
0 new messages