The Check Display Class

The check class is for check boxes, which are represented by slotfiller variables with boolean values. The display is like that of the slot class, except that the value areas are all square buttons and precede the labels. A button is marked "on" if the corresponding value is 1 and "off" if it is 0. When a button is "on" it has a sunken appearance and is the color specified by the fg attribute, and when "off" it has a raised appearance and is the color specified by the bg attribute. A click with the left mouse button on a check button toggles the appearance of the button between "on" and "off", and at the same time the corresponding value in the A+ variable toggles between 1 and 0. Therefore, if a callback function is defined for the slotfiller variable, mouse clicks cause the callback function to be executed, with the path argument p being the symbolic index of the changed value.

The label areas cannot be edited.

The slot areas that appear in the display and their arrangement can be controlled by the setting of the geometry attribute; see "The Geometry Attribute". All slot areas specified for display by this attribute are completely displayed; check displays never have scrollbars.

Visual Representation
  ck(`a`b`c`d;(0;1;1;1))
  show `ck has (`class;`check;
                `shelltitle;'ShellTitle';
                `title;' Show cols ';
                `label;('Open';'High';'Low';'Close'))
For information about a widget element, click the left mouse button with the tip of the pointer index finger on it. Point inside the frame but outside the widget for attributes governing overall size, position, etc.

The element you are pointing at is named in the status message area at the bottom of the window.

(Clicking the middle mouse button instead displays this information in a new browser.)

Attributes

See the "Display Attributes" chapter for details concerning all the attributes that apply to objects in the check 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 K, ALL, CNFT, NFT, and TOP.

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

acceptfocus
active
ancestors
arrowdown
arrowkeys
arrowleft
arrowlist
arrowright
arrowup
at
atsector
b
bg
bound
C
class
clear
deiconized
doc
downto
dynamic
eval
evaluate
exit
extent
f1-f12
fg
fkeys
focus
followers
followertree
font
foot
freeze
fullscreen
geometry
h
H
has
head
hide
hl
hlthickness
icon
iconic
iconized
icontitle
incurrentworkspace
is
l
label
labelfg
labelfont
leader
leftto
literal
lower
mapped
naturalsize
notify
outofcurrentworkspace
parent
pin
preset
primary
protect
protected
r
R
raise
realize
refresh
request
resize
resizeable
rightto
script
selected
sensitive
set
settings
shadowthickness
shell
shelltitle
show
state
stateself
syncshow
t
tabfrom
tablist
tabto
title
titlefg
titlefont
titlejustify
upto
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)


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