Autor Beitrag
Delphi~Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Fr 04.06.04 21:15 
(Häckchen) Simpletext
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: Fr 04.06.04 21:30 
Vorher alle Panels (falls vorhanden) im Objektinspektor löschen.

Dann:

ausblenden Delphi-Quelltext
1:
2:
  StatusBar1.SimplePanel := True;
  StatusBar1.SimpleText := 'Hallo';


StatusBar1.SimplePanel := True mußt du nur ein mal machen.

_________________
Gruß
Martin
Delphi~Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Fr 04.06.04 21:33 
ja hab ich gemacht funktioniert auch :D
Delphi~Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Fr 04.06.04 21:38 
und weiter ??
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: Fr 04.06.04 21:56 
Weiter was?

_________________
Gruß
Martin
Delphi~Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Fr 04.06.04 21:57 
ahh na ich mein da steht jetzt hallo aber wie kann man da jetzt die curserposi anzeigenlassen
NetZwerg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 448

Slackware 10.1
Kylix 3, D5 Standard
BeitragVerfasst: Fr 04.06.04 22:03 
also irgendwie stellst du dich gerade ein bisschen dumm an, kann das sein? versuch doch wenigstens mal die codes zu verstehen!

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,  
  Y: Integer); 
var 
  CursorPos: TPoint; 
begin
  GetCursorPos(CursorPos); 
  StatusBar1.SimplePanel := True; 
  StatusBar1.SimpleText := Format('The cursor is at (%d, %d)', [CursorPos.X, CursorPos.Y]); 
end;

_________________
"Manche Leute drücken nur deshalb ein Auge zu, damit sie besser zielen können."
Billy Wilder, amer. Filmregisseur
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: Fr 04.06.04 22:07 
Was steht noch mal in Titel?

Zitat:
wie benutzt man die StatusBar ??


Entweder formulierst du deine Fragen in Zukunft richtig oder du stellst eine neue Frage im neuen Thread.

Aber ich verstehe immer noch nicht was dein Problem ist. Kriegst du es nicht alleine hin dein Beispiel einzusetzten? Wo hapert es?

_________________
Gruß
Martin
Delphi~Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Fr 04.06.04 22:47 
also das problem ist ich weiß wirklich nicht wie ich den code einsetzen kann (da wo halo stand ) !!!
Delphi~Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Fr 04.06.04 22:50 
Jetzt funktionierts (war nen dummer fehler)
danke für die hilfe und geduld :D
Delphi~Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Sa 05.06.04 12:49 
und wie macht man das ganze mit panels und nicht mit "simple.text"

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
var
  CursorPos: TPoint;
begin
  GetCursorPos(CursorPos);
  StatusBar1.SimplePanel := True;
  StatusBar1.SimpleText := Format('The cursor is at (%d, %d)', [CursorPos.X, CursorPos.Y]);
end;

_________________
MfG
Darksider aka Delphi~Anfänger
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: So 06.06.04 00:53 
Deine Frage ist unverschämt. Wie oft willst du die Antwort noch? Die Antwort auf deine Frage findest du im Beitrag zwei und drei. In weiteren Beiträgen wird drauf hingewiesen, daß, wenn SimplePanel eingeschaltet ist, du die Panelunterteilungen nicht siehst. Du brauchst also nicht noch mal fragen. Die Antworten hast du bereits.

_________________
Gruß
Martin