View Full Version : HELP WITH PIXMAPS

08-22-2000, 03:05 AM

I know I should ask this in the beginners section but, nobody there has replied !!

My problem is that I want to put a pixmap onto a XmPushButtonGadget.
All my efforts end in the error bad pixmap or bad draw area. Could someone give me a very simple code putting a simple pixmap onto a single button ??

Please save my sanity !!!

08-23-2000, 11:35 AM
This is an OpenGL forum, not a Xm/Xt forum.

However, if your pushbutton is in a menu, you can't use a pixmap easily.

Otherwise you want to set XmNlabelType to XmPIXMAP and XmNlabelPixmap to your pixmap. You could even use the XmNarmPixmap.

These are all in the resource for the button.