The Scalar Display Class

Any A+ global variable can be displayed as an object of class scalar. The representation has two parts side-by-side: a title area on the left and a value area on the right. The value area contains an A+ expression that represents the value of the variable, in the sense that the evaluation of the expression is identical to the value of the variable.1

The A+ expression in the value area can be edited like text.

The title area contains the name of the global variable. The width of the title area is always the minimum required to display its text. In particular, all the additional size goes to the value area when the display is resized to be larger. The title can be specified by the title attribute. No title area appears when this attribute is specified to be the empty vector.

The title area cannot be edited.

Visual Representation
     a(3 4;'abcdef'; 5.3 1.4 2.7 0.863)
     `a is `scalar
     `a has (`shelltitle;'a')
     `a has (`fg;'red')
     `a has (`space`stars;(29;0))
     show `a
A Scalar Display:

Attributes

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

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

active
ancestors
arrowbuttons
arrowdown
arrowkeys
arrowleft
arrowlist
arrowright
arrowup
at
atsector
b
bg
bound
class
clear
colors
cycle
decrement
deiconized
doc
done
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
increment
incurrentworkspace
is
l
leader
leftto
literal
lower
mapped
naturalsize
notify
out
outofcurrentworkspace
parent
pin
preset
primary
protect
protected
r
raise
realize
refer
refresh
request
resize
resizeable
respace
rightto
script
sensitive
set
settings
shadowthickness
shell
shelltitle
show
space
stars
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.