How to create custom panel items in suntools?

Roy Smith roy at phri.nyu.edu
Wed Apr 26 14:01:01 AEST 1989


Perhaps I've simply missed where it describes how to do this in the
manual, but I can't figure out if there is any way to create your own
panel item types.  Is it possible?

For example, I've designed a sort of floating-point slider which consists
of a regular slider going from 1.00 to 9.95, a choice item (with a menu
behind it) to pick an power-of-ten, and a text item to display the current
value.  The next frill to add is being able to edit the text item directly
and have the slider and choice change in response.  You've all seen this
type of thing on Macs many times.

The problem is that I've got to create three different panel items and
deal with the interactions between the three of them myself.  It would be
much nicer if I could simply define this as a composite panel item, and
then be able to just panel_creat_item() one of them.  The item would take
care of the interactions between the parts of the composite item and I'd
just find out about the new value without having to worry about updating
the text item to match the slider or update the slider to match the text
item, etc.

Yeah, yeah, I know, it's easy to do this in NeWS, but I want to do it in
suntools because that's what everybody around here runs.

Roy Smith, System Administrator
Public Health Research Institute
{allegra,philabs,cmcl2,rutgers,hombre}!phri!roy -or- roy at phri.nyu.edu
"The connector is the network"



More information about the Comp.sys.sun mailing list