Autor Beitrag
Ane
Hält's aus hier
Beiträge: 4



BeitragVerfasst: Mi 11.06.08 09:43 
Hallo !

Ich habe 81 Editfelder als Quadrat von 9*9 Feldern angeordnet (Sudoku).
Mit den Methoden die ich bei der Suche gefunden habe, müsste ich für jedes Feld ein eigenes Ereigniss erstellen. Mit diesem WM_Next... funktioniert es auch nicht.

????
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Mi 11.06.08 09:45 
user profile iconAne hat folgendes geschrieben:

Mit den Methoden die ich bei der Suche gefunden habe, müsste ich für jedes Feld ein eigenes Ereigniss erstellen. Mit diesem WM_Next... funktioniert es auch nicht.

????


Was?
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: Mi 11.06.08 09:53 
[OT]de.wikipedia.org/wiki/Es_%28Roman%29[/OT]

Hmm..entweder das erhöhen/vermindern der Nummer im Edit oder das Weiterspringen zum nächsten Edit ;-)

LG
Stefan

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 11.06.08 10:14 
Wozu überhaupt so viele Edit-Felder? Warum nicht ein String- oder DrawGrid?
Dann: Warum für jedes eins? Es reicht ja ein Ereignis für alle Edits, dass das nächste Feld bestimmt und via FindComponent die entsprechende Komponente anspricht.
Erzeugen kannst du so viele Felder auch einfach zur Laufzeit, dann sparst du dir die Anordnung und Benennung der Komponenten auf dem Formular. (Aber dafür ists ja zu spät. :D)
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: Mi 11.06.08 10:26 
user profile iconjaenicke hat folgendes geschrieben:
(Aber dafür ists ja zu spät. :D)


Strg+A -> entfernen :mrgreen:

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 11.06.08 10:31 
Du weißt wie ich das meinte^^, es ist zu spät den Aufwand zu sparen. :lol:
Ane Threadstarter
Hält's aus hier
Beiträge: 4



BeitragVerfasst: Mi 11.06.08 15:00 
Okay die Frage war dumm gestellt also ich will wie mit Tab mit den Pfeiltasten den Fokus in alle Richtungen verändern können. In ein StringGrid kann ich doch als Nutzer nichts reinschreiben oder ?
2. Das OnkeyPress Ereignis wird nur ausgeführt wenn der Focus auf dem entsprechenden Objekt für das das Ereignis ist ist.
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mi 11.06.08 15:11 
user profile iconAne hat folgendes geschrieben:
OIn ein StringGrid kann ich doch als Nutzer nichts reinschreiben oder?

Doch. Schau dir mal die Eigenschaft Options.goEditing an.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell