[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
Motif 2.1 Programmer's Reference
XmScaleSetTicks
A Scale function that controls tick marks
Format
#include <Xm/Scale.h>
void XmScaleSetTicks
Widget
scaleint big_everyCardinal
num_mediumCardinal
num_smallDimension size_bigDimension
size_mediumDimension
size_small
DESCRIPTION
XmScaleSetTicks controls the number, location, and size of the tick marks
on a Scale. Each tick mark is a SeparatorGadget oriented perpendicular to the
Scale's orientation. For example, if the Scale is oriented horizontally,
the tick marks will be oriented vertically.
If you specify tick marks for a Scale and then change the Scale's
orientation, you will have to do the following:
Remove all the tick marks. To remove tick marks from a Scale, you must
destroy (with XtDestroyChildren) the SeparatorGadget tick marks. The
first two children of a Scale are its title and scroll bar, and all additional
children are tick marks.
Recreate the tick marks by calling XmScaleSetTicks.
scaleSpecifies the Scale widget ID that is getting the tick marks.
big_everySpecifies the number of scale values between big ticks.
num_mediumSpecifies the number of medium ticks between big values.
num_smallSpecifies the number of small ticks between medium values.
size_bigSpecifies the size (either width or height) of the big ticks.
size_mediumSpecifies the size (either width or height) of the medium ticks.
size_smallSpecifies the size (either width or height) of the small ticks.
For a complete definition of Scale and its associated resources, see
XmScale
(3).
RELATED
XmScale
(3).
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]