Widget Type...

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Widget Type...

Submitted by Anonymous on Wed, 03/12/2003 - 22:46.

Is there a function or procedure that will return the Widget type. For example, I have a Widget; however, I don`t know if it is a Label or a Textbox and I need to be able to determine what it is so that I can either set the XmNlabelString or XmNvalue.

Thanks.
C. Lamb

 

 

Sat, 03/15/2003 - 14:53#1

ICS_support

Widget Type...

First, you can set both, and if the resource isn`t honored by the widget, it is ignored when Xt matches resource values with the widget`s values.

Second, you can use the functions provided, e.g. XmIsLabel() and similar public routines in the .h files.

  •