author | Claus Gittinger <cg@exept.de> |
Mon, 17 Jan 2000 12:18:33 +0100 | |
changeset 2100 | 69c10efca8f4 |
parent 2023 | ecd0f7dc806e |
child 2150 | 3cee520c3f91 |
permissions | -rw-r--r-- |
1238 | 1 |
ScrollableView subclass:#SequenceView |
2 |
instanceVariableNames:'' |
|
3 |
classVariableNames:'' |
|
4 |
poolDictionaries:'' |
|
1770 | 5 |
category:'Views-Lists' |
1238 | 6 |
! |
7 |
||
8 |
!SequenceView class methodsFor:'documentation'! |
|
9 |
||
10 |
documentation |
|
11 |
" |
|
12 |
implements a SelectionInListView with configurable scrollbars |
|
13 |
||
14 |
ST-80 compatibility |
|
15 |
||
16 |
[see also:] |
|
17 |
SelectionInListView |
|
18 |
" |
|
19 |
! |
|
20 |
||
21 |
examples |
|
22 |
" |
|
23 |
same behavior as a SelectionInListView |
|
24 |
[exBegin] |
|
25 |
|top doc holder| |
|
26 |
||
27 |
top := StandardSystemView extent:500@500. |
|
28 |
doc := self origin:0.0@ 0.0 corner:1.0@1.0 in:top. |
|
29 |
top openAndWait. |
|
30 |
doc list:#( 'a' 'b' 'c' 'd' ). |
|
31 |
doc multipleSelectOk:true. |
|
32 |
[exEnd] |
|
33 |
" |
|
34 |
||
35 |
! ! |
|
36 |
||
1592 | 37 |
!SequenceView class methodsFor:'defaults'! |
38 |
||
39 |
defaultFont |
|
40 |
^ SelectionInListView defaultFont |
|
41 |
||
42 |
"Created: / 20.6.1998 / 14:17:01 / cg" |
|
43 |
! ! |
|
44 |
||
2100 | 45 |
!SequenceView methodsFor:'Compatibility - ST80'! |
1602
35e103b2f981
added #optimizeForText (dummy - ST80 compat)
Claus Gittinger <cg@exept.de>
parents:
1592
diff
changeset
|
46 |
|
35e103b2f981
added #optimizeForText (dummy - ST80 compat)
Claus Gittinger <cg@exept.de>
parents:
1592
diff
changeset
|
47 |
optimizeForText |
35e103b2f981
added #optimizeForText (dummy - ST80 compat)
Claus Gittinger <cg@exept.de>
parents:
1592
diff
changeset
|
48 |
"dummy - ST-80 compatibility" |
35e103b2f981
added #optimizeForText (dummy - ST80 compat)
Claus Gittinger <cg@exept.de>
parents:
1592
diff
changeset
|
49 |
|
35e103b2f981
added #optimizeForText (dummy - ST80 compat)
Claus Gittinger <cg@exept.de>
parents:
1592
diff
changeset
|
50 |
"Created: / 6.7.1998 / 13:26:18 / cg" |
35e103b2f981
added #optimizeForText (dummy - ST80 compat)
Claus Gittinger <cg@exept.de>
parents:
1592
diff
changeset
|
51 |
! ! |
35e103b2f981
added #optimizeForText (dummy - ST80 compat)
Claus Gittinger <cg@exept.de>
parents:
1592
diff
changeset
|
52 |
|
1238 | 53 |
!SequenceView methodsFor:'accessing'! |
54 |
||
55 |
font:aFont |
|
56 |
"set the font for the scrooled view |
|
57 |
" |
|
58 |
super font:aFont. |
|
59 |
self scrolledView font:aFont. |
|
60 |
! ! |
|
61 |
||
62 |
!SequenceView methodsFor:'initialization'! |
|
63 |
||
64 |
initialize |
|
65 |
"setup scrollable view a SelectionInList instance |
|
66 |
" |
|
67 |
super initialize. |
|
68 |
||
69 |
self verticalScrollable:true; verticalMini:false. |
|
70 |
self horizontalScrollable:true; horizontalMini:false. |
|
71 |
||
72 |
self scrolledView:SelectionInListView new |
|
73 |
||
74 |
||
75 |
! ! |
|
76 |
||
77 |
!SequenceView class methodsFor:'documentation'! |
|
78 |
||
79 |
version |
|
2100 | 80 |
^ '$Header: /cvs/stx/stx/libwidg/SequenceView.st,v 1.6 2000-01-17 11:17:53 cg Exp $' |
1238 | 81 |
! ! |