Autor Beitrag
Wolle92
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Do 18.10.07 15:12 
Hallo,

wie kann man automatisch den Fokus in ein Edit-Feld setzen, also dass man dann sofort da reinschreiben kann?
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Do 18.10.07 15:29 
Mal mit TEdit.SetFocus versucht?

_________________
Bravery calls my name in the sound of the wind in the night...
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Do 18.10.07 15:37 
Dann krieg ich "Cannot focus a disabled or invisible windows"
Das liegt aber auf dem gleichen Fenster wie der Button...
Alpha_Wolf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 297

Ubuntu, Win XP, Win Vista
C#, Delphi 6 Prof, Delphi 2007 Prof, Java
BeitragVerfasst: Do 18.10.07 15:45 
Und ist das Edit Feld denn unsichtbar oder gesperrt? Oder vielleicht ein modaler Dialog offen?

Zeig uns dochmal deinen Code.. vielleicht kannst dus ja hochladen wenn es nicht zu groß ist?!

Ohne mehr Infos hilft auch die beste Glaskugel nichts..

_________________
Diskutiere nie mit einem Irren - er zieht dich auf sein Niveau und schlägt dich mit seiner Erfahrung.
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Do 18.10.07 15:50 
Danke, jetzt gehts, das Edit war disabled
TProgger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 148

XP
D6, D2007 prof
BeitragVerfasst: Do 18.10.07 15:50 
Zitat:
"Cannot focus a disabled or invisible windows"

Das kommt nur, wenn das Edit nicht Enabled ist oder (wenn das im OnCreate des Forms aufgerufen wird) noch gar nicht da ist.
Versuchs mal mit Form1.ActiveControl und trag da Edit1 (bzw. dein Edit) ein