Autor Beitrag
Bronstein
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 578
Erhaltene Danke: 1

WIN XP
Delphi 6 / Delphi 2006 / Delphi XE
BeitragVerfasst: Di 10.11.09 20:21 
Hallo,
weiß jemand wie man die Ecken einer TGanttSeries abrunden kann.

_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
Bronstein Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 578
Erhaltene Danke: 1

WIN XP
Delphi 6 / Delphi 2006 / Delphi XE
BeitragVerfasst: Mi 11.11.09 18:31 
Am Liebsten möchte ich das so realisieren, dass ich eine neue Komponente entwickle die ich von TChart ableite und bei der neuen Komponente die Series dann abrunden kann.

Hat da jemand ein Paar Tipps für mich wie ich das realisieren kann.
Ich finde bei der Komponente nämlich nichts mit ondraw oder oaint oder sonst was!

_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Do 12.11.09 14:22 
TChart.Onpaint meinst du?

_________________
Die Lösung ist nicht siebzehn.
Bronstein Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 578
Erhaltene Danke: 1

WIN XP
Delphi 6 / Delphi 2006 / Delphi XE
BeitragVerfasst: Do 12.11.09 17:10 
ja sowas in der Art, oder wo könnte ich das sonst realisieren

_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Do 12.11.09 18:19 
Dann müsstest du selber ein OnPaint-Ereignis erstellen und Paint überschreiben und in Paint dein Ereignis auslösen ;)

_________________
Die Lösung ist nicht siebzehn.
Bronstein Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 578
Erhaltene Danke: 1

WIN XP
Delphi 6 / Delphi 2006 / Delphi XE
BeitragVerfasst: Do 12.11.09 20:30 
Ja genau das habe ich vor, wie kann ich aber verhindern, dass das Chart die Balken selbst zeichnet?

_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Do 12.11.09 20:55 
Per Überschreiben :gruebel:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
TNewGanttSeries = class(TGanttSeries)
  private
   procedure Paint; override; // Dieses kleine Wörtchen override ist wichtig!
end;

implementation

procedure TNewGanttSeries.Paint;
begin
 Self.OnPaint(Self);
 // mach was, löse Ereignis, mal dich falsch an  :twisted: 
end;


Und OnPaint müsste schon definiert drin sein

_________________
Die Lösung ist nicht siebzehn.