5933
|
1 |
"{ Package: 'stx:libwidg2' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
TextBox subclass:#TextCollectorBox
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Views-DialogBoxes'
|
|
10 |
!
|
|
11 |
|
|
12 |
!TextCollectorBox class methodsFor:'documentation'!
|
|
13 |
|
|
14 |
documentation
|
|
15 |
"
|
|
16 |
has a textcollector as textview
|
|
17 |
"
|
|
18 |
!
|
|
19 |
|
|
20 |
examples
|
|
21 |
"
|
|
22 |
Example (using ok-action callBack):
|
|
23 |
[exBegin]
|
|
24 |
|textBox|
|
|
25 |
|
|
26 |
textBox := TextCollectorBox new.
|
|
27 |
textBox title:'text coming...'.
|
|
28 |
[
|
|
29 |
10 timesRepeat:[
|
|
30 |
textBox textView showCR:'hello'.
|
|
31 |
Delay waitForSeconds:1.
|
|
32 |
].
|
|
33 |
] fork.
|
|
34 |
textBox showAtPointer.
|
|
35 |
[exEnd]
|
|
36 |
"
|
|
37 |
! !
|
|
38 |
|
|
39 |
!TextCollectorBox methodsFor:'initialization'!
|
|
40 |
|
|
41 |
initialize
|
|
42 |
textViewClass := TextCollector.
|
|
43 |
super initialize
|
|
44 |
|
|
45 |
"Created: / 04-11-2018 / 20:43:12 / Claus Gittinger"
|
|
46 |
! !
|
|
47 |
|
|
48 |
!TextCollectorBox class methodsFor:'documentation'!
|
|
49 |
|
|
50 |
version_CVS
|
|
51 |
^ '$Header$'
|
|
52 |
! !
|
|
53 |
|