Autor Beitrag
Delphi Champ 3
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 3.11, Win 95, Win ME, Win XP, Multiubuntu
Delphi 3, Turbo Delphi Explorer 2006
BeitragVerfasst: Mi 05.09.07 16:38 
Hallo @ all,

mir ist schon des öfteren aufgefallen, dass sich während der Laufzeit Objekte nicht durch den Quelltext verschieben lassen. Fehler der Syntax sind meiner Ansicht nach aufgeschlossen.
ausblenden Delphi-Quelltext
1:
Label1.Left:= 20;					

Das habe ich zum Testen probiert. Das Objekt bleibt da wo es ist.
Kann mir da jmd weiterhelfen?

Danke. :D


Moderiert von user profile iconGausi: Topic aus Sonstiges (Delphi) verschoben am Mi 05.09.2007 um 17:39
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 05.09.07 16:41 
Wahrscheinlich wird das nur nicht neu gezeichnet. Probier mal ein
ausblenden Delphi-Quelltext
1:
2:
3:
label1.update; // repaint, refresh könnte auch klappen
// oder dasselbe mit der form
self.update; // repaint, refresh könnte auch klappen

_________________
We are, we were and will not be.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 05.09.07 16:45 
Moin!

Mach mal einen Test mit einem Button: ;)
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Label1.Left := Label1.Left +16;
end;

Wenn das klappt, dann gibst du dem Programm - wie user profile iconGausi schon sagte - keine Gelegenheit, die GUI zu aktualisieren. Kannst alternativ nach der Änderung auch ein Application.ProcessMessages;nehmen. :idea:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Delphi Champ 3 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 3.11, Win 95, Win ME, Win XP, Multiubuntu
Delphi 3, Turbo Delphi Explorer 2006
BeitragVerfasst: Mi 05.09.07 19:10 
Danke! Mit einem Button klappt es :)
Komischer Weise habe ich habe ich es getestet, rebootet, nochmal getestet und dann ging es^^ (Das habe ich zwar schon 10 mal probiert mit neustartet aber jetzt ging es^^)
Warum auch immer. Aber trotzdem danke ;)