TextCollectorBox.st
author Claus Gittinger <cg@exept.de>
Mon, 09 Mar 2020 14:19:10 +0100
changeset 6238 1f70ed3090a4
parent 6196 fbc1a9f13a97
permissions -rw-r--r--
#UI_ENHANCEMENT by cg class: CheckBox changed: #initialize

"{ Encoding: utf8 }"

"
 COPYRIGHT (c) 2018 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
"{ Package: 'stx:libwidg2' }"

"{ NameSpace: Smalltalk }"

TextBox subclass:#TextCollectorBox
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Views-DialogBoxes'
!

!TextCollectorBox class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 2018 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
!

documentation
"
    has a textcollector as textview
"
!

examples
"
  Example (using ok-action callBack):
                                                                        [exBegin]
    |textBox|

    textBox := TextCollectorBox new.
    textBox title:'text coming...'.
    [
        10 timesRepeat:[
            textBox textView showCR:'hello'.
            Delay waitForSeconds:1.
        ].
    ] fork.        
    textBox showAtPointer.
                                                                        [exEnd]
"
! !

!TextCollectorBox methodsFor:'initialization'!

initialize
    textViewClass := TextCollector.
    super initialize

    "Created: / 04-11-2018 / 20:43:12 / Claus Gittinger"
! !

!TextCollectorBox class methodsFor:'documentation'!

version_CVS
    ^ '$Header$'
! !