The Hgrid Display Class

There are two grid classes, hgrid and vgrid. They are container classes like the layout class, but their children have their natural sizes, rather than being sized to fill the layout as far as possible, any placement requests by the children (right, bottom, etc.) are ignored, and the grid objects have no titles - the value of the title attribute is ignored.

The hgrid class, unlike the vgrid and layout classes, has a horizontal default arrangement. Objects of the three classes, specified in the same way except for class and the geometry of the horizontal layouts, are shown in the figure below for comparison. The layout and grid backgrounds are shown in a lighter grey to make clear what space the objects occupy. Normally, they would appear in the same shade of grey as the rest of the objects, to present a homogeneous appearance, like the vertical layout with no title.

Points to notice in the figure are:

Visual Representation
    a1a2a3a4a5a610
    b1b2b3b4'An object in a layout'
    b5'An object  in a vgrid'
    b6'An object in an hgrid'
    c1c2c3c4c5c6(10).*3
    l1     `a1`b1`c1; l21 3 `a2`b2`c2; l3`a3`b3`c3
    l41 3 `a4`b4`c4; l5     `a5`b5`c5; l6`a6`b6`c6
     To show layout background:
    `l1`l2`l3`l4`l5`l6 has <`bg `gray90
    `l1`l2`l3`l4`l5`l6 has `title, < ('Layout';'Layout, horizontal'; ''; ''; 'Vgrid'; 'Hgrid')
    {`l1`l2`l3`l4`l5`l6 `b1`b2`b3`b4`b5`b6 s.are
        (4`layout),`vgrid,`hgrid, 6`label;}
    `c1`c2`c3`c4`c5`c6 has <(`rows;3)
    show `l1`l2`l3`l4`l5`l6
    `l2`l4`l6 has<(`x;280)
    `l3`l4`l5`l6 has((`y;240);(`y;240);(`y;450);(`y;450))

Attributes

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

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

active
ancestors
arrowdown
arrowkeys
arrowleft
arrowlist
arrowright
arrowup
at
atsector
b
be
bg
bound
build
children
class
clear
deiconized
descendents
doc
downto
dynamic
eval
evaluate
exit
extent
extents
f1-f12
familytree
fg
fkeys
focus
followers
followertree
font
foot
freeze
fullscreen
H
h
has
head
hide
hl
hlthickness
icon
iconic
iconized
icontitle
incurrentworkspace
is
l
leader
leftto
literal
lower
mapped
naturalsize
newshow
notify
outofcurrentworkspace
parent
pin
position
preset
primary
r
raise
realize
recursively
refresh
reparent
request
reshow
resize
resizeable
rightto
script
sensitive
set
settings
shadowthickness
shell
shelltitle
show
state
stateself
structure
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.