[comp.windows.x] Text Field Widget

montjoy@ucece1.ece.uc.edu (Robert C. Montjoy) (12/19/89)

Hi.


I have been programing in AT&T's OPENLOOK package for almost a year. I
have most of my original graphics completily ported to this toolkit.
However there is small enhancment that I want to do to the  TEXT field
widget. What the TEXT field widget does is provide a field for users to
type text into. However, thier is no clean way of checking the string to
the user hits return or the widget losses or gains input focus. What I
need to do is to add a procedure to the widget to just that. I am not
a widget programmer so if some kind soul can supply me with a general
idea how to do this. 


Thanks for any info,

Rob Montjoy

E-MAIL	Rob.Montjoy@uc.edu
	uunet!uucba!ucece1!montjoy

lyn@campbel.campbel.diskless ( Lyn Stewart ) (12/28/89)

/ campbel:comp.windows.x / montjoy@ucece1.ece.uc.edu (Robert C. Montjoy) /  5:34 pm  Dec 18, 1989 /

>Hi.


>I have been programing in AT&T's OPENLOOK package for almost a year. I
>have most of my original graphics completily ported to this toolkit.
>However there is small enhancment that I want to do to the  TEXT field
>widget. What the TEXT field widget does is provide a field for users to
>type text into. However, thier is no clean way of checking the string to
>the user hits return or the widget losses or gains input focus. What I
>need to do is to add a procedure to the widget to just that. I am not
>a widget programmer so if some kind soul can supply me with a general
>idea how to do this. 
>
>
>Thanks for any info,
>
>Rob Montjoy
>
>E-MAIL	Rob.Montjoy@uc.edu
>	uunet!uucba!ucece1!montjoy
----------

I have done something simular with hp's textedit widget.  I use the
events which combine together to allow checking before the return is
pressed.  Crazy method but I would rather not modify a standard widget
unless pressed ( hard ).

Lyn Stewart
Boeing Commercial Airplanes