Button Images...

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

Questions about motif? Contact us

3 posts / 0 new
Last post
Button Images...

 

I have created a Pulldown menu for my application and I am wanting to add images to the buttons (MenuItems). How do a I do this? I have looked at the Manual and there is not much information on this. So any helped would be appreciated.

Thanks.
C. Lamb

Anonymous

 

I have figured out how to get the picture on the button, and I know how to place the the text on the button.

How to I place the picture and text on the button together?

Thanks.
C. Lamb

ICS_support

 

You have three choices

1) Use the XmPushButton or XmDrawnButton with XmNlabelType set to XmPIXMAP, with the text rendered into the pixmap.

2) Use the XmPushButton or XmDrawnButton with XmNlabelType set to XmSTRING, with the pixmap as the background pixmap.

3) Use the XiIconButton or another widget that understands how to display both text and pixmap simultaneously.