1238
|
1 |
ScrollableView subclass:#SequenceView
|
|
2 |
instanceVariableNames:''
|
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
|
5 |
category:'Views-Text'
|
|
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 |
|
1238
|
45 |
!SequenceView methodsFor:'accessing'!
|
|
46 |
|
|
47 |
font:aFont
|
|
48 |
"set the font for the scrooled view
|
|
49 |
"
|
|
50 |
super font:aFont.
|
|
51 |
self scrolledView font:aFont.
|
|
52 |
! !
|
|
53 |
|
|
54 |
!SequenceView methodsFor:'initialization'!
|
|
55 |
|
|
56 |
initialize
|
|
57 |
"setup scrollable view a SelectionInList instance
|
|
58 |
"
|
|
59 |
super initialize.
|
|
60 |
|
|
61 |
self verticalScrollable:true; verticalMini:false.
|
|
62 |
self horizontalScrollable:true; horizontalMini:false.
|
|
63 |
|
|
64 |
self scrolledView:SelectionInListView new
|
|
65 |
|
|
66 |
|
|
67 |
! !
|
|
68 |
|
|
69 |
!SequenceView class methodsFor:'documentation'!
|
|
70 |
|
|
71 |
version
|
1592
|
72 |
^ '$Header: /cvs/stx/stx/libwidg/SequenceView.st,v 1.2 1998-06-20 12:18:31 cg Exp $'
|
1238
|
73 |
! !
|