The Command Display Class

The command display class is for monitoring the character by character input of a command line. The command representation has two parts, a title area on the left and a value area on the right. Text can be entered in the value area, and the entry can be monitored one character at a time, even though the value in the workspace does not change until the input is complete.
Visual Representation
     f{}:{
        (`buffer .of `com),
        (ҡ`buffer .of `com),
        `cursor .of `com
        }
     com0' '
     `com has (`class;      `command;
               `shelltitle; "Shell Title";
               `title;      "Enter command: ";
               `space;      20;   This is the default space, actually.
         Call the callback function f for each keystroke:
               `key;        (f;))
     show `com
The display in the
figure shows the object `com in edit mode. The cursor is positioned just to the right of the character y. At this point the following evaluations can be made:
     `buffer .of `com
< copy
     ҡ`buffer .of `com
<  4
     `cursor .of `com
<  4
If the user now presses t, say, then f is called, and in f these evaluations are made:
     `buffer .of `com
< copyt
     ҡ`buffer .of `com
<  5
     `cursor .of `com
<  5

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 command 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 C, ALL, CNFT, NFT, and TOP.

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

active
ancestors
arrowbuttons
arrowdown
arrowkeys
arrowleft
arrowlist
arrowright
arrowup
at
atsector
b
bg
bound
buffer
class
clear
colors
cursor
cycle
decrement
deiconized
doc
downto
dynamic
edit
editbg
editfg
editspace
eval
evaluate
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
key
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
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.