Re: XForms: How to do meter movements

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 4 Sep 97 07:25:19 PDT

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> As an x newbie, haivng spent most of my professional career in embedded
> systems, I have a question. How is the best way to do a meter type
> movement in xforms, or X for that matter. You know like the audio level
> meters on mixers and, in my case, a S-meter on an amateur radio
> transceiver.

If you're talking about the "classic" meter with a twitching pointer,
then you're pretty much on your own -- you should look at creating a
Free object or perhaps creating a new Meter object class -- it
shouldn't be *too* difficult to eumlate a meter face -- in fact, it'd
be kind of a cool project.

You might try using a Fill Slider object and just make it insensitive
to user input with the fl_deactivate_object() call so the user can't
inadvertently twiddle the slider. This makes a nice bar type meter.
You'll have to provide the value labeling yourself, but that shouldn't
be especially difficult.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/