Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi noch mehr statusbar bzw. tgauge (https://www.delphipraxis.net/5051-noch-mehr-statusbar-bzw-tgauge.html)

__patrik 21. Mai 2003 23:04


noch mehr statusbar bzw. tgauge
 
moin, moin zusammen,

hat einer nen tipp wie ich text in meine progressbar bekomme, oder wie ich die tgauge in eine statusbar reinbekomme?
das mit:

Delphi-Quellcode:
  StatusBar1.Perform(SB_GETRECT, 1, integer(@R));
  ProgressBar1.Parent := StatusBar1;
  ProgressBar1.BoundsRect := r;
geht mit der tgauge leider net:-(

mfg
patrik

Stanlay Hanks 22. Mai 2003 15:27

Also eine Gauge bekommst du so in eine Statusbar:

Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
begin
with Gauge1 do begin
Parent := StatusBar1; //Parent von Gauge ist Statusbar1
Left  := 3;
Height := StatusBar1.Height - (StatusBar1.Height div 3);
Top   := 4;
end;
end;

[Edit] hab den Code noch "verschönert", weil ich vergessen hab, das ganze mit with...do zu machen.

__patrik 22. Mai 2003 16:09

danke:-)

patrik


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:19 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz