selection

The place for threads about version 1.x of TimoSoft ExplorerTreeView.
Post Reply
SailorCM
Cadet
Posts: 6
Joined: 04 Nov 2004, 12:48

selection

Post by SailorCM »

GERMAN:

Die Möglichkeit das Rechteck der Auswahl (aktiv und inaktiv) zu beeinflussen. In meinem gesamten Programm habe ich Selektionen mit einem Farbverlauf.. nur in der leider nicht in diesem Control :/

ENGLISH:

The possibility to modify the selection-rectangle (active and inactive).
In my program, all controls have an gradient-selrect.. but not in this :/
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Post by TiKu »

GERMAN:

Das sollte über Custom Draw möglich sein. Dazu ist es nötig, das Control zu subclassen und WM_NOTIFY/NM_CUSTOMDRAW zu behandeln. Man muss dann die Markierung und leider auch den Item-Text selbst malen.
Sollte ich am Wochenende irgendwie Zeit finden, werde ich mal versuchen, ein kleines Beispielprojekt auf die Beine zu stellen.

ENGLISH:

This should be possible using Custom Draw. You'll need to subclass the control and handle WM_NOTIFY/NM_CUSTOMDRAW. Then, you'll need to draw the selection and the item text yourself.
If there's any time, I'll try to create a small sample project this weekend.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Post by TiKu »

GERMAN:

Das versprochene Beispiel befindet sich im Anhang. Es ist nicht perfekt, aber es zeigt wie es geht.

ENGLISH:

I've attached the promised sample. It's not perfect, but demonstrates how to do it.
Attachments
GradientSelection.zip
Gradient item selections using custom draw.
(12.26 KiB) Downloaded 580 times
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Post Reply