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