Einzelnen Beitrag anzeigen

Benutzerbild von mael
mael

Registriert seit: 13. Jan 2005
391 Beiträge
 
Delphi XE3 Professional
 
#4

AW: Analogon für .NET-Eigenschaft ContainerControl.ActiveControl?

  Alt 29. Dez 2020, 22:58
Wobei der folgende Link einen interessanten Kommentar hat:

https://stackoverflow.com/questions/...-edit-controls

Zitat:
This kind of processing can be easily added to an application :- Add a call to IsDialogMessage() in your message loop - all the controls have to have the WS_TABSTOP style.

The parent window might have to be of the dialog class as the dialog window class stores state allowing it to (for example) restore focus to the correct control when activation is lost and restored.
Delphi hat sowas auch wenn Fensterhandle neu erstellt werden, und verwendet dann intern GetRecreateChildren. Leider macht es das nur auf der TCustomForm-Ebene, und nicht pro Container/Parentfenster.

Da ich dockable Panels habe, sollten die ihr eigenes ActiveControl haben, was sie leider nicht tun. Also doch Hooking...
HxD, schneller Hexeditor:
http://mh-nexus.de/hxd
  Mit Zitat antworten Zitat