The Hscale Display Class

The hscale class is like the hgauge class except for minor differences in appearance - principally that the slider is fixed in length and its middle points to the object's value - and one major difference: a user can set the value interactively. See the description of the hgauge class and the figure there illustrating all four slider classes.

A user can change the setting of an hscale object (and of course its underlying variable) by editing the value label or moving the slider in several ways. The pageinc attribute, whose default setting is 10, determines the amount of change when Page Up or Page Down is pressed, and inc, whose default setting is 1, the amount of change when an arrow key is pressed. Four attributes control editing behavior and appearance: edit, editbg, editfg, and editspace; currently, the default values of editbg and editfg are both black.

See "Hscale and Vscale Objects", in "User Interactions with Displays".

Attributes

See the "Display Attributes" chapter for details concerning all the attributes that apply to objects in the hscale display class, as well as lists of colors and fonts. The keys in the Table of All Display Attributes that pertain to this class are hS, ALL, CNFT, GS, NFT, and TOP.

The attributes that are meaningful for the hscale display class (other than the print... attributes) are:


active
ancestors
arrowdown
arrowkeys
arrowleft
arrowlist
arrowright
arrowup
at
atsector
b
bg
bound
class
clear
deiconized
doc
downto
dynamic
edit
editbg
editfg
editspace
eval
evaluate
execute
exit
extent
f1-f12
fg
fkeys
focus
followers
followertree
font
foot
freeze
fullscreen
H
h
has
head
hide
hl
hlthickness
icon
iconic
iconized
icontitle
in
inc
incurrentworkspace
is
l
labelfg
labelfont
labelinc
labeljustify
labelout1
leader
leftto
literal
lower
majorticksize
mapped
max
maxtitle
maxtitlefg
maxtitlefont
maxtitlejustify
min
minortickcount
minorticksize
mintitle
mintitlefg
mintitlefont
mintitlejustify
naturalsize
notify
out1
outofcurrentworkspace
pageinc
parent
pin
preset
primary
r
raise
realize
refresh
request
resize
resizeable
rightto
script
sensitive
set
settings
shadowthickness
shell
shelltitle
show
sliderbg
sliderheight
sliderwidth
state
stateself
subtitle
subtitlefg
subtitlefont
subtitlejustify
syncshow
t
tabfrom
tablist
tabto
title
titlefg
titlefont
titlejustify
upto
valuefg
valuefont
valuejustify
vcol
vcols
verify
vrow
vrows
W
w
ws
X
x
xs
Y
y
ys
YX
yx
yxs
(Point the mouse cursor to an attribute to display a short description at the bottom of the screen)

1. Note that labelout is used to format the scale labels and out to format the value label.


doc@aplusdev.org© Copyright 1995–2008 Morgan Stanley Dean Witter & Co. All rights reserved.