Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Edit bekommt den Focus nicht! (https://www.delphipraxis.net/21800-edit-bekommt-den-focus-nicht.html)

a.vollmer 8. Mai 2004 12:23


Edit bekommt den Focus nicht!
 
Hi,


ich hab ein kleines Problem!
Derzeit läuft bei mir ein kleines Eingabeprogramm, dieses beinhaltet ein einfaches Edit Feld.
Geöffnet wird das Form über einen klick auf ein Tray Icon...

Wenn ich nach dem Click versuche Edit1.Setfocus auszuführen bringt das aber nichts.
ich kann nicht direkt in das Edit Feld schreiben...Erst nach einem Klick in das Feld (per Maus) bekomm ich Schreibzugriff!

Wie gehe ich nun vor um den Focus zu erlangen?

Gruß

Alex

SirThornberry 8. Mai 2004 12:37

Re: Edit bekommt den Focus nicht!
 
Probiers mal mit ActiveControl, also
Delphi-Quellcode:
  ActiveControl := Edit1.Text;
Ich vermute allerdings das bei dir das form indem sich das edit befindet nicht das fordergrundfenster ist

a.vollmer 8. Mai 2004 14:37

Re: Edit bekommt den Focus nicht!
 
doch ist es, es ist das hauptform...ein weiteres form gibt es nicht..


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:41 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz