1. isFocus?

win32lib 0.55.1

How I can get whether a control is focus or not?

new topic     » topic index » view message » categorize

2. Re: isFocus?

> win32lib 0.55.1
>
> How I can get whether a control is focus or not?

You could use the onGotFocus event...

Thomas Parslow (PatRat) ICQ #:26359483
Rat Software
http://www.rat-software.com/
Please leave quoted text in place when replying

new topic     » goto parent     » topic index » view message » categorize

3. Re: isFocus?

I've created function getFocus and sent it to Derek Parnell. It should be
implemented in the next release of win32lib.
----- Original Message -----
From: <aku at inbox.as>
To: EUforum <EUforum at topica.com>
Sent: Saturday, March 24, 2001 2:37 PM
Subject: isFocus?


>
>
> win32lib 0.55.1
>
> How I can get whether a control is focus or not?
>
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: isFocus?

Aku wrote:
 
> win32lib 0.55.1
> 
> How I can get whether a control is focus or not?
> 

This is a new routine in the next version called getFocus().

You can use it now by doing this....

Place this line just after the "include win32lib.ew"

 xGetFocus = registerw32Function(user32, "GetFocus", {}, C_INT )

Then you can use this to get the ID of the control that has focus.

 infocus =  getId(w32Func( xGetFocus, {} ))    

------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu