The Password Display Class

The password display class provides password protection to applications. The password representation has two parts, a title area on the left and a value area on the right. The underlying variable holds a user name. Text is entered in the value area and compared to the login password of that user. Kerberos authentication is supported.
Visual Representation
     pw'mahler'
     `pw is `password
     validate{s;c;v}:0`valid of c,v
     `pw has (`validate;validate)
     show `pw
The
figure shows this object as it initially appears and what it looks like as a password is being entered. Here, three characters have been entered, masked by asterisks (the value of the fill attribute), and the cursor is positioned to the right of the third asterisk. When the user completes entry, the function validate is called by the validate event; it displays 1 if the password for mahler has been entered, and 0 otherwise.

The initial state is shown at the left, and the appearance during input is shown at the right:

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

The attributes that are meaningful for the password 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
downto
dynamic
edit
editbg
editfg
editspace
eval
evaluate
exit
extent
f1-f12
fill
fg
fkeys
focus
followers
followertree
font
foot
freeze
fullscreen
h
H
has
head
hide
hl
hlthickness
icon
iconic
iconized
icontitle
increment
incurrentworkspace
is
l
leader
leftto
lower
mapped
naturalsize
notify
outofcurrentworkspace
parent
pin
preset
primary
r
raise
realize
refer
refresh
request
resize
resizeable
rightto
script
sensitive
set
settings
shadowthickness
shell
shelltitle
show
state
stateself
syncshow
t
tabfrom
tablist
tabto
title
titlefg
titlefont
titlejustify
upto
valid
validate
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.