achan@sparkle.nec.com (Amy Chan) (01/22/91)
In article <AbaTMUO00V86EFOUVK@andrew.cmu.edu> wl16+@andrew.cmu.edu (Wen-Yang Lin) writes: > > [ part of article deleted] > >My question is: >Is it possible to draw graphic on the button directly instead of writing text on the button such as "Line" and "Circle" to indicate user for drawing line or circle on drawing area? And how to do that? > Try using the XmDrawnButton widget which provides a graphics area that can have PushButton input semantics. Amy Chan Software Engineer NEC America, Inc., San Jose, CA achan@tdd.sj.nec.com
slh@wolf.cs.washington.edu (Scott Heyano) (01/22/91)
In article <AbaTMUO00V86EFOUVK@andrew.cmu.edu> wl16+@andrew.cmu.edu (Wen-Yang Lin) writes: [stuff] |My question is: |Is it possible to draw graphic on the button directly instead of writing text on the button such as "Line" and "Circle" to indicate user for drawing line or circle on drawing area? And how to do that? | Make a pixmap with whatever picture you want on it, set the pushbutton label type to pixmap set the label to the pixmap you created (Also, learn to hit <RETURN> once in awhile.)