TextCollectorBox.st
author Claus Gittinger <cg@exept.de>
Sat, 07 Mar 2020 00:22:39 +0100
changeset 6237 12ad20ee2671
parent 6196 fbc1a9f13a97
permissions -rw-r--r--
#BUGFIX by cg class: ExtendedComboBox changed: #openMenu (send #bePopUpView instead of #beUndecorated)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6196
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
     1
"{ Encoding: utf8 }"
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
     2
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
     3
"
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
     4
 COPYRIGHT (c) 2018 by eXept Software AG
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
     5
              All Rights Reserved
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
     6
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
     7
 This software is furnished under a license and may be used
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
     8
 only in accordance with the terms of that license and with the
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    10
 be provided or otherwise made available to, or used by, any
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    11
 other person.  No title to or ownership of the software is
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    12
 hereby transferred.
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    13
"
5933
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ Package: 'stx:libwidg2' }"
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
"{ NameSpace: Smalltalk }"
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
TextBox subclass:#TextCollectorBox
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	instanceVariableNames:''
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	classVariableNames:''
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	poolDictionaries:''
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	category:'Views-DialogBoxes'
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
!TextCollectorBox class methodsFor:'documentation'!
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
6196
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    27
copyright
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    28
"
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    29
 COPYRIGHT (c) 2018 by eXept Software AG
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    30
              All Rights Reserved
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    31
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    32
 This software is furnished under a license and may be used
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    33
 only in accordance with the terms of that license and with the
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    35
 be provided or otherwise made available to, or used by, any
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    36
 other person.  No title to or ownership of the software is
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    37
 hereby transferred.
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    38
"
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    39
!
fbc1a9f13a97 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5933
diff changeset
    40
5933
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
documentation
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
"
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    has a textcollector as textview
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
"
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
!
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
examples
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
"
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
  Example (using ok-action callBack):
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
                                                                        [exBegin]
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    |textBox|
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    textBox := TextCollectorBox new.
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    textBox title:'text coming...'.
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
    [
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
        10 timesRepeat:[
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
            textBox textView showCR:'hello'.
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
            Delay waitForSeconds:1.
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
        ].
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    ] fork.        
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    textBox showAtPointer.
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
                                                                        [exEnd]
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
"
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
! !
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
!TextCollectorBox methodsFor:'initialization'!
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
initialize
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    textViewClass := TextCollector.
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
    super initialize
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
    "Created: / 04-11-2018 / 20:43:12 / Claus Gittinger"
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
! !
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
!TextCollectorBox class methodsFor:'documentation'!
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
version_CVS
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
    ^ '$Header$'
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
! !
650ccc714e7d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80