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 Fucused Control (https://www.delphipraxis.net/82898-fucused-control.html)

ulrich.b 21. Dez 2006 15:58


Fucused Control
 
Wie bekomme ich in einer VCL form das aktuelle "Focused Control" raus ??

FFocusedControl ist ein private Feld von TCustomForm, und dadurch nach außen nicht sichtbar!!

marabu 21. Dez 2006 16:29

Re: Fucused Control
 
Hallo Ulrich,

hast du es schon einmal mit TForm.ActiveControl probiert?

Freundliche Grüße

RavenIV 21. Dez 2006 16:32

Re: Fucused Control
 
in Forms.pas steht:
Delphi-Quellcode:
TCustomForm = class(TScrollingWinControl)
und
Delphi-Quellcode:
public
  procedure FocusControl(Control: TWinControl);
Hoffe, das Dir das hilft...

QuickAndDirty 21. Dez 2006 16:38

Re: Fucused Control
 
@Raven:
Ermittelt doch nichts sondern setzt das Control.


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:16 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