[comp.windows.x.motif] Bar graph widget

jbarrett@nrlvax.decnet ("NRLVAX::JBARRETT") (02/28/91)

Has anyone out there in net land ever written a bar graph widget?  We
need a horizontal bar graph widget, and any help or assistance would
be greatly appreciated.

	John Barrett
	STI

	jbarrett@nrlvx1.nrl.navy.mil

emuleomo@paul.rutgers.edu (Emuleomo) (02/28/91)

Hi,

You dont need a bar graph widget. I remember having to do this before!
Horizontal bar graphs are not as difficult as you think!
All you need to do is set up a XmForm widget, and for each bar,
set up an XmPushButtonGadget (or XmPushButtonWidget).  You can then change the 
XmNheight or XmNwidth of these Pushbuttons as required!
Also yo can change their XmNSensitive to FALSE.

By the way, the XmForm serves as the parent of these pushbuttons.
Dont forget to do Attach the  Left side of each button to the form.

--Olu
-- 
Remember! It doesn't matter if you win or lose, as long as you win!