GUI evenement inputField

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

GUI evenement inputField

Sylvain pralon
Hi,

I am looking for the evenement which is sent by an input field each time
I press a key.
I need this evenement because I have a search to do in a database as I
type the text in this input field.
I did not find that in the GUI documentation.
I just found a solution consisting in place a keyPressHook on the input
Field in a postBuildWith method.
I guess that it exists anywhere an evenement for this kind of application.

thanks a lot.

Reply | Threaded
Open this post in threaded view
|

Re: GUI evenement inputField

Dave Stevenson-2
GUI Developer’s Guide 9-123:
#changed
After the value of the text editor has been accepted, the text editor
triggers the #changed event. To trigger #changed at each keystroke,
send continuousAccept: to the widget’s controller with the value true.

This might typically be done in #postBuildWith:, for example:

postBuildWith: aBuilder
(self widgetAt: #inputFieldID) controller continuousAccept

Dave

Sylvain Pralon wrote:

> Hi,
>
> I am looking for the evenement which is sent by an input field each
> time I press a key.
> I need this evenement because I have a search to do in a database as I
> type the text in this input field.
> I did not find that in the GUI documentation.
> I just found a solution consisting in place a keyPressHook on the
> input Field in a postBuildWith method.
> I guess that it exists anywhere an evenement for this kind of
> application.
>
> thanks a lot.
>
>