Autor Beitrag
Timbo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 166



BeitragVerfasst: So 06.08.06 00:01 
Hallo,

habe unter:
Header -> Options -> hoShowSortGlyph auf true.

Wird aber nicht angezeigt.

Muss ich das Glyph noch laden, oder irgendwie setzen?
Hab nichts gefunden.

Vielen Dank.
Timbo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 166



BeitragVerfasst: Mo 07.08.06 00:07 
Oh man,

hab es gefunden...

so gehts:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
procedure TFRedirectVSTree.VSTreeHeaderClick(Sender: TVTHeader;
  Column: TColumnIndex; Button: TMouseButton; Shift: TShiftState; X,
  Y: Integer);
var i: Integer;
begin
  with Sender, Treeview do begin
    for i:=0 to Columns.Count-1 do
      Columns[i].Color := $FFFFFF;
    Columns[Column].Color := $F7F7F7;

    // diese Zeile ist der Knackpunkt, das ist wohl eine Art Rückmeldung
    SortColumn:= Column;

    if SortDirection=sdAscending then
      SortDirection:=sdDescending
    else
      SortDirection:=sdAscending;
    SortTree(Column,Sender.SortDirection,True);
  end;
end;