|
|
#1 |
|
Junior Member
Join Date: Nov 2009
Posts: 17
|
Focused property not working?
It appears that the TEmbeddedWB.Focused property always returns false. Even when the embedded browser has keyboard focus, this property is false.
What is the proper way to determine if the browser has keyboard focus? Thank you! |
|
|
|
|
|
#2 |
|
Main Developer
Join Date: May 2006
Posts: 937
|
Hello
Use this function for now: Code:
function EWBFocused(EmbeddedWB: TEmbeddedWB): Boolean; begin Result := IsChild(EmbeddedWB1.Handle, GetFocus); end; I added the following: Code:
public function Focused: Boolean; override; Code:
function TEmbeddedWB.Focused: Boolean; begin Result := IsChild(Self.Handle, GetFocus); end; |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2009
Posts: 17
|
Thanks!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|