George's Unit Cube of CyberSpace

The XView Axis

Contents:


Vertical Slider for XView

This is a replacement for the regualar XView slider widget. It consists of a single C source file, which creates a *.o file which will automatically override old slider when linked with your XView program at compile-time.

Q.
Why would you want a replacement for the slider?
A.
Because the normal one looks fine when it's horizontal, but is almost useless when vertical.

The difference is obvious when you see them side-by-side

The old: [ snapshot of old slider widget ] and the new: [ snapshot of new slider widget ]

In horizontal mode, the replacement slider looks identical to the existing one.

The package includes a small demo-program for testing the slider in all of its variations. A Makefile is included.

You can get it from:
http://crystal.apana.org.au/ghansper/xview/p_v_slider-1.0.tar.gz
(12 802 bytes)

In order to compile the Vertical Slider you will need the #include files in the directory:

    $OPENWINHOME/include/xview_private

These are included with the XView source distribution.


KEYS - a widget for XView

This is widget for setting a MIDI Key range on a keyboard or sound module. This widget is actually part of a larger project of mine, but the KEYS widget is versatile enough to be a package on it's own.

The KEYS widget is implemented as a Panel Extension Item in XView.

[ snapshot of KEYS widget ]

Features include

The package includes a small demo-program for testing the KEYS widget in all of its variations. A Makefile is included.

You can get it from:
http://crystal.apana.org.au/ghansper/xview/keys-1.1.tar.gz
(16 853 bytes)

Note (as of 6/2/96)
This widget has been rewritten to make it independant of the xview_private directory. Its functionality has remained the same.


DUALSLIDER - a widget for XView

This is widget for OpenLook-XView. This is a variation on the usual single-value slider. Instead of one control, there are two. This gives the user a convienent and compact widget for settting a pair of related values, which would typically be the upper and lower limits of a user-settable range.

The DUALSLIDER widget is implemented as a Panel Extension Item in XView. It supports ALL the attributes that the normal slider does, plus PANEL_LAYOUT. The only significant difference is that the PANEL_VALUE argument is a pointer to a structure (DualSliderValue *), rather than a simple integer value.

The DUALSLIDER supports both 2-D and 3-D graphics (as defined by the X-resource 'OpenWindows.3DLook.Color'), as well as the mouseless model.

The package includes a simple demo-program for testing the DUALSLIDER widget in all of its variations. A Makefile is included.

Here are two snapshots of the DUALSLIDER with all options activated.

Vertical: [ snapshot of dual slider widget in vertical mode ]

Horizontal: [ snapshot of dual slider widget in horizontal mode ]

Features include

You can get it from:
http://crystal.apana.org.au/ghansper/xview/dualslider-1.2.tar.gz
(21 265 bytes)

Note (as of 1/2/96)
This widget has been rewritten to make it independant of the xview_private directory. Its functionality has remained essentially the same. A very small number of improvements were made in obscure areas, such as the handling of scrolled panels and the PANEL_NO_CLEAR property.

This widget is now (hopefully) fairly immune to revision due to other changes in XView.


References

Other sources of widgets:

OpenLook / XView information:


[ ] Return to index page.
Your comments are most welcome.
Last Modified: $Date: 1998/09/16 15:15:43 $
George Hansper George_Hansper@apana.org.au