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 :
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20:
| 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
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
Christian S.: Added code and delphi tagsModeriert von
Christian S.: Topic aus CLX / Delphi Language (Object-Pascal) verschoben am Fr 29.04.2005 um 22:12