grey out a toggle button

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

Questions about motif? Contact us

2 posts / 0 new
Last post
grey out a toggle button

Submitted by Anonymous on Mon, 01/28/2002 - 16:18. Developers
How can I grey out a toggle button so if my code is called a certain way it will not show it.

Anonymous

If you want to "grey" out a toggle just call XtSetSensitive(toggle_widget, False)
If you really want to make the widget invisible, call XtUnmapWidget(toggle_widget) to render
it invisible; XtUnmanageChild(toggle_widget) to render it invisible and release the "window" resources associated with it. To make it visible again, call the opposite call from the one you used.

steve---