Autor Beitrag
mohfa
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Fr 29.04.05 19:48 
sorry to write in english
i want to developpe a new treeview componant ( inherited from TTreeview ) so i want to be able to inverse the Treeview canvas with all its nodes and other things ( an RTL treeview )
right-to-left (RTL) layout for the tree :
for the first time i used this option to inverse the Original treeview :
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
// the componant name  is Faimo 

private
FRightToLeftReading:Boolean; 
FSortType: TSortType;
procedure SetAbout(const Value: string);
procedure SetRightToLeftReading( b:Boolean); 
Public
property RightToLeftReading:Boolean read FRightToLeftReading write SetRightToLeftReading default false;
////
procedure Tfaimo.SetRightToLeftReading( b:Boolean);
var
oldParam: LongInt;
begin
if FRightToLeftReading=b then
oldParam := GetWindowLong(handle, GWL_EXSTYLE);
SetWindowLong(handle, GWL_EXSTYLE, oldParam or $400000 or WS_EX_RIGHT);
end;
///
end.


but i made some problems in design Time when we move the control over the Form , and the tooltips no more appear .
could any one help me in :

01- be able to inverse the whole treeview from right to left
so instead of
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
+xxxxx
  +xxxx
    -xxxx
     -xxxxx
i would have 
     xxxxx+
     xxxx+
    xxxx-

xxxx-
i appreciate all your help

Moderiert von user profile iconChristian S.: Added code and delphi tags
Moderiert von user profile iconChristian S.: Topic aus CLX / Delphi Language (Object-Pascal) verschoben am Fr 29.04.2005 um 22:12
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: Sa 30.04.05 11:42 
Why deveoloping a new Tree?

TElTree from Elpack www.lmd.de/products/lmdelpack should support RTL for the tree.