Autor Beitrag
chriss1988
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Mi 24.05.06 11:28 
hi

hab da ein kleines Problem das ich aber irgendwie nicht lösen kann.

Also folgender maßen:
Ich habe ein einen Button mit einer MouseMove procedure. Das heißt wenn ich über den BUtton fahre soll in ein Memo automatisch ein text geschrieben werden.

habe es schon versucht aber es geht halt net.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure THauptmenue.BitBtn1MouseMove(Sender: TObject; Shift: TShiftState;
  X, Y: Integer);
begin
memo1.Lines:=('Ratefix ist ein Kleines Spiel das einen Singleplayer als auch');
memo1.Lines:=('einen Multiplayermodus enthält. Es geht darum eine Zufalsszahl zuerraten');
end;



Moderiert von user profile iconGausi: Topic aus Sonstiges (Delphi) verschoben am Mi 24.05.2006 um 13:58
chriss1988 Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Mi 24.05.06 11:33 
sorry fehler gefunden
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 24.05.06 11:33 
Du hast doch bestimmt eine Fehlermeldung bekommen. Immer dran denken, die mit aufzuschreiben. Es erleichtert die Lösung bei komplizierten Dingen.
Lösung hier:
ausblenden Delphi-Quelltext
1:
2:
memo1.Lines.add('Ratefix ist ein Kleines Spiel das einen Singleplayer als auch');
memo1.Lines.add('einen Multiplayermodus enthält. Es geht darum eine Zufalsszahl zuerraten');

Wenn ich mich nicht irre.
chriss1988 Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Mi 24.05.06 11:44 
ok werd ich das nächste mal machen.

musste nur hinter das memo1.lines ein text setzen
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 24.05.06 11:46 
user profile iconchriss1988 hat folgendes geschrieben:
musste nur hinter das memo1.lines ein text setzen

Geht auch. Vorteil bei deiner Lösung: Der alte Text im Memo wird gleich wieder gelöscht.
chriss1988 Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Mi 24.05.06 11:53 
das wusste ich ja garnicht dann kan ich mir die memo1.lines.clear
ja schenken