Pixmap and disabling

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

Questions about motif? Contact us

4 posts / 0 new
Last post
Pixmap and disabling

Submitted by Anonymous on Tue, 04/24/2001 - 15:42. Developers
Hello,
When I disable a push button which contains a pixmap label using XtSetSensitive, the image disappears. I don`t know how to make the image continues.

Thank you in advance.

Anonymous

For pixmap button, two pixmap resources are defined. The XmNlabelPixmap is displayed when the button is in normal state and the XmNlabelInsensitivePixmap is displayed when the button is disable. Usually you change the pixmap a little by adding a mask on the XmNlabelPixmap to show now the button is disable. If you don`t set XmNlabelInsensitivePixmap, the pixmap will disapper after you do XtSetSensitive to false.

Anonymous

Thank you for your help

ICS_support

The toolkit should really do this itself. Many people simply set both pixmap resources to be the same value, if only to avoid having missing visuals.