EnterBoxWithList.st
author Claus Gittinger <cg@exept.de>
Tue, 22 Aug 2000 00:45:39 +0200
changeset 1818 fe99c5c721e9
parent 1716 0e31e721d4ab
child 2122 d63e816e2c8b
permissions -rw-r--r--
category changes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1716
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
     1
"
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
     2
 COPYRIGHT (c) 1998 by eXept Software AG
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
     3
              All Rights Reserved
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
     4
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
     5
 This software is furnished under a license and may be used
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
     6
 only in accordance with the terms of that license and with the
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
     8
 be provided or otherwise made available to, or used by, any
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
     9
 other person.  No title to or ownership of the software is
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    10
 hereby transferred.
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    11
"
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    12
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    13
1818
fe99c5c721e9 category changes
Claus Gittinger <cg@exept.de>
parents: 1716
diff changeset
    14
"{ Package: 'stx:libwidg2' }"
fe99c5c721e9 category changes
Claus Gittinger <cg@exept.de>
parents: 1716
diff changeset
    15
1165
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
EnterBox subclass:#EnterBoxWithList
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Views-DialogBoxes'
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
1716
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    23
!EnterBoxWithList class methodsFor:'documentation'!
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    24
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    25
copyright
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    26
"
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    27
 COPYRIGHT (c) 1998 by eXept Software AG
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    28
              All Rights Reserved
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    29
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    30
 This software is furnished under a license and may be used
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    31
 only in accordance with the terms of that license and with the
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    33
 be provided or otherwise made available to, or used by, any
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    34
 other person.  No title to or ownership of the software is
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    35
 hereby transferred.
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    36
"
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    37
0e31e721d4ab copyrights
Claus Gittinger <cg@exept.de>
parents: 1165
diff changeset
    38
! !
1165
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
!EnterBoxWithList class methodsFor:'examples'!
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
examples 
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
"
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
                                                                        [exBegin]
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
        |box|
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
        box := EnterBoxWithList new.
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
        box list:#('Jim' 'John' 'Paul').
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
        box title:'your name please:'.
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
        box action:[:arg | Transcript showCR:'entered: ''' , arg printString , ''''].
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
        box open
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
                                                                        [exEnd]
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
"
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
    "Modified: 16.11.1995 / 21:28:11 / cg"
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
! !
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
1818
fe99c5c721e9 category changes
Claus Gittinger <cg@exept.de>
parents: 1716
diff changeset
    60
!EnterBoxWithList methodsFor:'accessing-contents'!
1165
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
list:aList
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    enterField list:aList.
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
! !
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
!EnterBoxWithList methodsFor:'initialization'!
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
createEnterField
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    "here, a ComboBox is created."
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
     ^ ComboBoxView new.
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
! !
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
!EnterBoxWithList class methodsFor:'documentation'!
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
version
1818
fe99c5c721e9 category changes
Claus Gittinger <cg@exept.de>
parents: 1716
diff changeset
    79
    ^ '$Header: /cvs/stx/stx/libwidg2/EnterBoxWithList.st,v 1.3 2000-08-21 22:43:52 cg Exp $'
1165
b375b5831e74 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
! !