Autor Beitrag
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 15.12.03 11:53 
Hallo!

Ich habe eine [edit:] TListView-Komponente, deren ViewStyle vsReport ist.
Nun möchte ich auf den Headern, also den Überschriften der Spalten etwas zeichnen. (Zum Beispiel Pfeile für die aktuelle Sortierrichtung.)

Wie geht das, das heißt wie bekomme ich Zugriff auf ein Canvas-Objekt, das die Header-Fläche repräsentiert?

Danke schon mal,
S.J.


Zuletzt bearbeitet von jaenicke am Di 23.12.03 12:24, insgesamt 4-mal bearbeitet
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Mo 15.12.03 16:32 
Hi,

die Standart TTreeView-Komponente hat bei dir eine Eigenschaft ViewStyle? Bei mir nicht. Ist das eine Fremd-Komponente oder meinst du die TListView?

MFG

- Ernesto -
jaenicke Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 17.12.03 14:15 
Titel: Sorry
Hallo nochmal!

Ja, die meinte ich, Sorry :oops: !

Also, wie ist das bei einer TListView-Komponente mit dem Zeichnen auf dem Header?

Ciao,
S.J.
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Mi 17.12.03 14:48 
Hallo,

ich hab mal vor dem gleichen Problem gestanden und bin beim Delphi-pool fündig geworden www.lmc-mediaagentur.de/dpool.htm (mußt du mal suchen)

oder du guggst dann mal hier:

www.delphi-groups.de...readid=14481;start=0

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
jaenicke Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 23.12.03 12:24 
Titel: Das war es
Hallo!

Alles klar, das funktioniert, nur eins steht dort nicht, dehalb schreibe ich es hier, falls andere dort auch nachsehen:

Die Funktion ListView_GetHeader steht in der CommCtrl Unit!

Danke nochmal,
Ciao,
S.J.