Autor Beitrag
Baumunk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 50

WinXP
Delphi 2005
BeitragVerfasst: Do 20.10.05 08:28 
Hallo,

Ich habe ein Problemchen die ich ganz nicht verstehen kann.
Ich schreibe ein Control, der von TWinControl abgeleiten ist, in dem muss als parent control TTreeView eingebunden sein.
Damit es schon unter Windows XP mit Manifest aussieht setze ich bei dem Constructor

ausblenden Delphi-Quelltext
1:
ControlStyle := ControlStyle + [csNeedsBorderPaint];					


und bei CreateParams

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
Procedure TCustomInfo.CreateParams(var Params: TCreateParams);
Begin
  Inherited;
  if NewStyleControls and Ctl3D then begin
    Params.ExStyle := Params.ExStyle or WS_EX_CLIENTEDGE;
  end;
End;


Damit sieht Control mit ramen aus.
Sobald ich jedoch TTreeView in Control einbinde :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
  FTree := TTreeView.Create(Self);
  Tree.Left := 0;
  Tree.Top  := 20;
  Tree.Parent := Self;


sind ramen nicht mehr da!

Ist es ein Bug von Delphi oder muss hier was zusätzlich gemacht werden für TTreeView.
Übrigens wenn in Control anstatt TTreeView TListView eingebunden wird, bleiden ramen bestehen.

Voraus danke.
BattleFrog
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 53

WIN 2000
Delphi 7 Ent.
BeitragVerfasst: Fr 21.10.05 09:22 
Offtopic:
Rahmen heißt es; ramen sind japanische Nudeln.