[comp.windows.x] XtCvtStringToPixel

geoff@citrus.citr.uq.oz.au (Geoff Thompson) (10/03/90)

The thrust of this project is to mimic lights on a PABX console.
I am using OSF/Motif on a DECstation 3100.
The screen has lots of pushbutton widgets in one area. They
respond to signals from the PABX, and change colour to indicate
to the operator to push that particular button. Another signal
from the PABX will release the button.

The sequence is :
  PushButton in normal display. (popped out appearance)
  Outside signal received - paint face a bright colour (say red)
  User pushes 		  - original colour  
			  - pushed in appearance.  (set())
			  - callback is performed. (notify())
			    leave it like this until ...
  Different signal 	  -  Back to original popped out look. (unset()).

I want to use XtCvtStringToPixel. I cannot find the right file to include. 
Can anyone help ?

			Thanks for reading me,
			Geoff Thompson.

converse@EXPO.LCS.MIT.EDU (10/04/90)

> I want to use XtCvtStringToPixel. I cannot find the right file to include. 


There is no such function.  Xt provides a string to pixel converter.  You
can read about it in the Xt documentation under "Obtaining Application
Resources".  I don't know what you are trying to do; the description of
your user interface doesn't tell me anything about how you were led to
the point of deciding that you needed this converter.  If you need to 
explicitly invoke converters, read about XtConvertAndStore and 
XtCallConverter.



Donna Converse

geoff@citrus.citr.uq.oz.au (Geoff Thompson) (10/05/90)

Thanks to Donna Converse for being polite. I realise why such a
function is not provided now, and the use of application resources
is a little clearer. Sorry to waste bandwidth. Another question :

	For the application I am writing (integrated PABX console and
directory for telephone operators) has been decided by the powers
that be, that no mouse shall be needed to operate the application.
Therefore, to transfer focus between widgets I need to use the function
keys. Is the Xlib function, XSetFocus, the one to use ? Can such focus
transfer be accomplished with either Motif or Xt convenience functions?

Thanks to all who contribute to this news group. Your help has been
invaluable, and often not acknowledged;  for example, when some kind
person answers a question which is similar to one you would like
answered, but feel a little silly sending it down the wire because
it is too simple or naive.

Thanks again,
		Geoff.