<!-- $XConsortium: ScaleST.sgm /main/9 1996/09/08 21:00:05 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN382.rsml.1">
<RefMeta>
<RefEntryTitle>XmScaleSetTicks</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmScaleSetTicks</Function></RefName>
<RefPurpose>A Scale function that controls tick marks
<IndexTerm>
<Primary>XmScaleSetTicks</Primary>
</IndexTerm><IndexTerm>
<Primary>Scale functions</Primary>
<Secondary>XmScaleSetTicks</Secondary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/Scale.h>
</FuncSynopsisInfo>
<FuncDef>void <Function>XmScaleSetTicks</Function></FuncDef>
<!--<ParamDef><Replaceable>scale, big_every, num_medium, num_small, size_big, size_medium, size_small</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>scale</Parameter></ParamDef>
<ParamDef>int <Parameter>big_every</Parameter></ParamDef>
<ParamDef>Cardinal <Parameter>num_medium</Parameter></ParamDef>
<ParamDef>Cardinal <Parameter>num_small</Parameter></ParamDef>
<ParamDef>Dimension <Parameter>size_big</Parameter></ParamDef>
<ParamDef>Dimension <Parameter>size_medium</Parameter></ParamDef>
<ParamDef>Dimension <Parameter>size_small</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmScaleSetTicks</Function> 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.
</Para>
<Para>If you specify tick marks for a Scale and then change the
Scale's orientation, you will have to do the following:
</Para>
<ItemizedList>
<ListItem>
<Para>Remove all the tick marks. To remove tick marks from a Scale,
you must destroy (with <Symbol>XtDestroyChildren</Symbol>)
the SeparatorGadget tick marks.
The first two children of a Scale are its title and scroll bar, and
all additional children are tick marks.
</Para>
</ListItem>
<ListItem>
<Para>Recreate the tick marks by calling <Function>XmScaleSetTicks</Function>.
</Para>
</ListItem>
</ItemizedList>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">scale</Symbol></Term>
<ListItem>
<Para>Specifies the Scale widget ID that is getting the tick marks.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">big_every</Symbol></Term>
<ListItem>
<Para>Specifies the number of scale values between big ticks.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">num_medium</Symbol></Term>
<ListItem>
<Para>Specifies the number of medium ticks between big values.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">num_small</Symbol></Term>
<ListItem>
<Para>Specifies the number of small ticks between medium values.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">size_big</Symbol></Term>
<ListItem>
<Para>Specifies the size (either width or height) of the big ticks.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">size_medium</Symbol></Term>
<ListItem>
<Para>Specifies the size (either width or height) of the medium ticks.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">size_small</Symbol></Term>
<ListItem>
<Para>Specifies the size (either width or height) of the small ticks.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
<Para>For a complete definition of Scale and its associated resources, see
&cdeman.XmScale;.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmScale;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
