Autor Beitrag
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Fr 25.05.07 13:55 
user profile iconsintec hat folgendes geschrieben:
Hallo nochmal,

ich habe ein kleines Problem mit der Gauge und zwar: wollte ich die Gauge auch in einem anderem Tool benutzen und bei dem Programm war früher ein ProgressBar auf einem Frame. Das Frame hat aber kein Ereignis namens FrameCreate oder FormCreate also kann ich es nicht zur Laufzeit erzeugen.

wie kann ich dann sonst machen?


Wie wärs im OnFormCreate?

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
sintec Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 133



BeitragVerfasst: Fr 25.05.07 13:59 
user profile iconZeitGeist87 hat folgendes geschrieben:

Wie wärs im OnFormCreate?


meinst du bei dem Hauptfenster?

dann macht er mir die Gauge im Hauptfenster aber nicht im Frame!!
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Fr 25.05.07 14:02 
Du kannst einfach den Constructor des Frames überschreiben:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
type
  TMyFrame = class(TFrame)
    ...
  public
    constructor Create(AOwner: TComponent); override;
    ...
  end;

...


constructor TMyFrame.Create(AOwner: TComponent);
begin
  inherited;
  
  Gauge := TGauge.Create(self);
  ...
end;


Stefan

_________________
Ein Computer ohne Windows ist wie eine Schokoladentorte ohne Senf.