Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uakari.primate.wisc.edu!sdd.hp.com!hplabs!hplabsz!mayer From: mayer@hplabsz.HPL.HP.COM (Niels Mayer) Newsgroups: comp.windows.x.motif Subject: Re: 'tick marks' in XmScale Widget? Message-ID: <5686@hplabsz.HPL.HP.COM> Date: 30 Jul 90 21:33:53 GMT References: <2676@network.ucsd.edu> Reply-To: mayer@hplabs.hp.com (Niels Mayer) Organization: Hewlett-Packard Labs, Software & Systems Lab, Palo Alto, CA. Lines: 46 Summary: Expires: Sender: Followup-To: In article <2676@network.ucsd.edu> pbiron@weber.ucsd.edu (Paul Biron) writes: >On page 2-13 of _HP OSF/Motif Programmer's Guide_ >(September 1989.......Edition 1) it says: > >"A Scale can also have a set of labels and 'tick marks' >located outside of the Scale region. These can be >used to indicate the relative value at various points >along the scale." > >We have Motif 1.0. > >I can't find the resources to use to set these >'tick marks' anywhere. I've looked in Xm.h, >Scale.h, ScaleP.h, the man pages online and >_HP OSF/Motif Programmer's Reference_. Just create label widgets as children of the scale widget..., eg: | (setq scale0_w | (send XM_SCALE_WIDGET_CLASS :new :managed "scale" rc_w | :XMN_TITLE_STRING "Utterness\nCoefficient" | :XMN_SENSITIVE t | )) | (send XM_LABEL_WIDGET_CLASS :new :managed "100" scale0_w | ) | (send XM_LABEL_WIDGET_CLASS :new :managed "50" scale0_w | ) | (send XM_LABEL_WIDGET_CLASS :new :managed "0" scale0_w | ) (it should be obvious how to translate the above WINTERP code into C or UIL syntax). >Can anyone tell me if the above lines from the >_Guide_ are a lie?? Could it be that there is >a "feature" documented which doesn't really exist :-? > Not a lie, but the next best thing -- badly documented. ------------------------------------------------------------------------------- Niels Mayer -- hplabs!mayer -- mayer@hplabs.hp.com Human-Computer Interaction Department Hewlett-Packard Laboratories Palo Alto, CA. *