author | ca |
Thu, 07 Mar 1996 10:33:53 +0100 | |
changeset 487 | 4ee60598df58 |
parent 294 | 667773990289 |
child 496 | f22ac16a5093 |
permissions | -rw-r--r-- |
0 | 1 |
" |
5 | 2 |
COPYRIGHT (c) 1992 by Claus Gittinger |
59 | 3 |
All Rights Reserved |
0 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
294
667773990289
merged all variablePanel code into a common class.
Claus Gittinger <cg@exept.de>
parents:
205
diff
changeset
|
13 |
VariablePanel subclass:#VariableHorizontalPanel |
59 | 14 |
instanceVariableNames:'' |
294
667773990289
merged all variablePanel code into a common class.
Claus Gittinger <cg@exept.de>
parents:
205
diff
changeset
|
15 |
classVariableNames:'' |
59 | 16 |
poolDictionaries:'' |
17 |
category:'Views-Layout' |
|
0 | 18 |
! |
19 |
||
38 | 20 |
!VariableHorizontalPanel class methodsFor:'documentation'! |
21 |
||
22 |
copyright |
|
23 |
" |
|
24 |
COPYRIGHT (c) 1992 by Claus Gittinger |
|
59 | 25 |
All Rights Reserved |
38 | 26 |
|
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
36 |
documentation |
|
37 |
" |
|
294
667773990289
merged all variablePanel code into a common class.
Claus Gittinger <cg@exept.de>
parents:
205
diff
changeset
|
38 |
This class is only here for backward compatibility; |
667773990289
merged all variablePanel code into a common class.
Claus Gittinger <cg@exept.de>
parents:
205
diff
changeset
|
39 |
all functionality is now in VariablePanel. Its orientation can now |
667773990289
merged all variablePanel code into a common class.
Claus Gittinger <cg@exept.de>
parents:
205
diff
changeset
|
40 |
be changed dynamically. |
667773990289
merged all variablePanel code into a common class.
Claus Gittinger <cg@exept.de>
parents:
205
diff
changeset
|
41 |
|
667773990289
merged all variablePanel code into a common class.
Claus Gittinger <cg@exept.de>
parents:
205
diff
changeset
|
42 |
A View to separate its subviews horizontally by a movable bar |
38 | 43 |
to adjust the size-ratios. |
44 |
The bar-handle is either an exposed knob (knobStyle == #motif) |
|
45 |
or the forms defined in Scroller (knobStyle ~~ #motif) |
|
46 |
or nothing. |
|
47 |
||
48 |
The subvies dimensions MUST be given as relative sizes; |
|
49 |
typically creation is done as: |
|
0 | 50 |
|
59 | 51 |
p := VariableHorizontalPanel in:superView. |
52 |
v1 := <someViewClass> origin:0.0 @ 0.0 |
|
53 |
corner:0.5 @ 1.0 |
|
54 |
in:p. |
|
55 |
v2 := <someViewClass> origin:0.5 @ 0.0 |
|
56 |
corner:0.8 @ 1.0 |
|
57 |
in:p. |
|
58 |
v3 := <someViewClass> origin:0.8 @ 0.0 |
|
59 |
corner:1.0 @ 1.0 |
|
60 |
in:p. |
|
63 | 61 |
" |
62 |
! |
|
63 |
||
64 |
examples |
|
65 |
" |
|
38 | 66 |
example: |
59 | 67 |
|top p v1 v2 v3| |
38 | 68 |
|
59 | 69 |
top := StandardSystemView new. |
70 |
top extent:300@200. |
|
0 | 71 |
|
59 | 72 |
p := VariableHorizontalPanel |
73 |
origin:0.0 @ 0.0 |
|
74 |
corner:1.0 @ 1.0 |
|
75 |
in:top. |
|
76 |
v1 := SelectionInListView |
|
77 |
origin:0.0 @ 0.0 |
|
78 |
corner:0.5 @ 1.0 |
|
79 |
in:p. |
|
80 |
v2 := EditTextView |
|
81 |
origin:0.5 @ 0.0 |
|
82 |
corner:0.8 @ 1.0 |
|
83 |
in:p. |
|
84 |
v3 := ScrollableView |
|
85 |
for:TextView |
|
86 |
in:p. |
|
87 |
v3 origin:0.8 @ 0.0 |
|
88 |
corner:1.0 @ 1.0. |
|
89 |
top open |
|
38 | 90 |
" |
202 | 91 |
! ! |
92 |
||
93 |
!VariableHorizontalPanel methodsFor:'initializing'! |
|
94 |
||
294
667773990289
merged all variablePanel code into a common class.
Claus Gittinger <cg@exept.de>
parents:
205
diff
changeset
|
95 |
initialize |
667773990289
merged all variablePanel code into a common class.
Claus Gittinger <cg@exept.de>
parents:
205
diff
changeset
|
96 |
super initialize. |
667773990289
merged all variablePanel code into a common class.
Claus Gittinger <cg@exept.de>
parents:
205
diff
changeset
|
97 |
orientation := #horizontal |
0 | 98 |
! ! |
99 |
||
205 | 100 |
!VariableHorizontalPanel class methodsFor:'documentation'! |
101 |
||
102 |
version |
|
294
667773990289
merged all variablePanel code into a common class.
Claus Gittinger <cg@exept.de>
parents:
205
diff
changeset
|
103 |
^ '$Header: /cvs/stx/stx/libwidg/VariableHorizontalPanel.st,v 1.18 1996-01-18 00:09:20 cg Exp $' |
205 | 104 |
! ! |