How to get the widget with focus?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get the widget with focus?

jfabry
Hi all,

I am writing some test cases that require me to open and close windows and play with widgets and whatnot. Sadly I am a bit lost as I have no experience in this area. Now I am trying to get a handle on the widget that has focus. Is there an easy way to get to this widget?

Also some pointers to examples/tests that programmatically operate on widgets and could serve as examples would be appreciated.

Thanks in advance!

---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry  
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




Reply | Threaded
Open this post in threaded view
|

Re: How to get the widget with focus?

Benjamin Van Ryseghem (Pharo)
There is a method named hasKeyboardFocus, maybe it could help :)


Ben

On Jan 14, 2012, at 4:34 PM, Johan Fabry wrote:

> Hi all,
>
> I am writing some test cases that require me to open and close windows and play with widgets and whatnot. Sadly I am a bit lost as I have no experience in this area. Now I am trying to get a handle on the widget that has focus. Is there an easy way to get to this widget?
>
> Also some pointers to examples/tests that programmatically operate on widgets and could serve as examples would be appreciated.
>
> Thanks in advance!
>
> ---> Save our in-boxes! http://emailcharter.org <---
>
> Johan Fabry  
> [hidden email] - http://dcc.uchile.cl/~jfabry
> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: How to get the widget with focus?

jfabry

OK thanks, I'll start from there :-)

On 14 Jan 2012, at 21:53, Benjamin wrote:

> There is a method named hasKeyboardFocus, maybe it could help :)
>
>
> Ben
>
> On Jan 14, 2012, at 4:34 PM, Johan Fabry wrote:
>
>> Hi all,
>>
>> I am writing some test cases that require me to open and close windows and play with widgets and whatnot. Sadly I am a bit lost as I have no experience in this area. Now I am trying to get a handle on the widget that has focus. Is there an easy way to get to this widget?
>>
>> Also some pointers to examples/tests that programmatically operate on widgets and could serve as examples would be appreciated.
>>
>> Thanks in advance!
>>
>> ---> Save our in-boxes! http://emailcharter.org <---
>>
>> Johan Fabry  
>> [hidden email] - http://dcc.uchile.cl/~jfabry
>> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>>
>>
>>
>>
>
>
>


---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry  
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile