LabelledEnterField.st
author Claus Gittinger <cg@exept.de>
Fri, 28 Jun 2019 09:21:50 +0200
changeset 6078 08c9e2a47dc5
parent 5956 3bc79ed6a335
permissions -rw-r--r--
#OTHER by cg self class name -> self className
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5956
3bc79ed6a335 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3577
diff changeset
     1
"{ Encoding: utf8 }"
3bc79ed6a335 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3577
diff changeset
     2
12
30f48431927b Initial revision
claus
parents:
diff changeset
     3
"
30f48431927b Initial revision
claus
parents:
diff changeset
     4
 COPYRIGHT (c) 1991 by Claus Gittinger
34
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
     5
	      All Rights Reserved
12
30f48431927b Initial revision
claus
parents:
diff changeset
     6
30f48431927b Initial revision
claus
parents:
diff changeset
     7
 This software is furnished under a license and may be used
30f48431927b Initial revision
claus
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
30f48431927b Initial revision
claus
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
30f48431927b Initial revision
claus
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
30f48431927b Initial revision
claus
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
30f48431927b Initial revision
claus
parents:
diff changeset
    12
 hereby transferred.
30f48431927b Initial revision
claus
parents:
diff changeset
    13
"
3577
cbc8df5a71c8 changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 1298
diff changeset
    14
"{ Package: 'stx:libwidg2' }"
12
30f48431927b Initial revision
claus
parents:
diff changeset
    15
5956
3bc79ed6a335 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3577
diff changeset
    16
"{ NameSpace: Smalltalk }"
3bc79ed6a335 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3577
diff changeset
    17
56
claus
parents: 53
diff changeset
    18
View subclass:#LabelledEnterField
153
5167176d204b commentary
Claus Gittinger <cg@exept.de>
parents: 107
diff changeset
    19
	instanceVariableNames:'labelField textField'
5167176d204b commentary
Claus Gittinger <cg@exept.de>
parents: 107
diff changeset
    20
	classVariableNames:''
5167176d204b commentary
Claus Gittinger <cg@exept.de>
parents: 107
diff changeset
    21
	poolDictionaries:''
5167176d204b commentary
Claus Gittinger <cg@exept.de>
parents: 107
diff changeset
    22
	category:'Views-Interactors'
12
30f48431927b Initial revision
claus
parents:
diff changeset
    23
!
30f48431927b Initial revision
claus
parents:
diff changeset
    24
298
88cb01678b87 added #enabled query
ca
parents: 223
diff changeset
    25
!LabelledEnterField class methodsFor:'documentation'!
34
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
    26
100
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    27
copyright
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    28
"
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    29
 COPYRIGHT (c) 1991 by Claus Gittinger
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    30
	      All Rights Reserved
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    31
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    32
 This software is furnished under a license and may be used
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    33
 only in accordance with the terms of that license and with the
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    35
 be provided or otherwise made available to, or used by, any
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    36
 other person.  No title to or ownership of the software is
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    37
 hereby transferred.
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    38
"
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    39
!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    40
34
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
    41
documentation
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
    42
"
56
claus
parents: 53
diff changeset
    43
    An EnterField with a name. Its protocol mimics that of an
claus
parents: 53
diff changeset
    44
    inputfield for the most common cases. However, for access to
claus
parents: 53
diff changeset
    45
    some specific things, you have to get the components 
claus
parents: 53
diff changeset
    46
    (labelField and inputField)
claus
parents: 53
diff changeset
    47
    and send those message directly.
156
4752cd4b9eb2 documentation
Claus Gittinger <cg@exept.de>
parents: 153
diff changeset
    48
4752cd4b9eb2 documentation
Claus Gittinger <cg@exept.de>
parents: 153
diff changeset
    49
    [author:]
4752cd4b9eb2 documentation
Claus Gittinger <cg@exept.de>
parents: 153
diff changeset
    50
        Claus Gittinger
56
claus
parents: 53
diff changeset
    51
"
claus
parents: 53
diff changeset
    52
!
claus
parents: 53
diff changeset
    53
claus
parents: 53
diff changeset
    54
examples 
claus
parents: 53
diff changeset
    55
"
159
0596de11a136 examples
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
    56
                                                                        [exBegin]
56
claus
parents: 53
diff changeset
    57
    |top panel f1 f2 f3 f4 model data|
claus
parents: 53
diff changeset
    58
claus
parents: 53
diff changeset
    59
    data := #('John' 'F' 'Smith' '1234567').
claus
parents: 53
diff changeset
    60
    model := Plug new.
claus
parents: 53
diff changeset
    61
    model respondTo:#firstName with:[data at:1].
claus
parents: 53
diff changeset
    62
    model respondTo:#firstName: with:[:arg | data at:1 put:arg].
claus
parents: 53
diff changeset
    63
    model respondTo:#middleInitial with:[data at:2].
claus
parents: 53
diff changeset
    64
    model respondTo:#middleInitial: with:[:arg | data at:2 put:arg].
claus
parents: 53
diff changeset
    65
    model respondTo:#lastName with:[data at:3].
claus
parents: 53
diff changeset
    66
    model respondTo:#lastName: with:[:arg | data at:3 put:arg].
claus
parents: 53
diff changeset
    67
    model respondTo:#telNo with:[data at:4].
claus
parents: 53
diff changeset
    68
    model respondTo:#telNo: with:[:arg | data at:4 put:arg].
34
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
    69
56
claus
parents: 53
diff changeset
    70
    top := StandardSystemView new.
claus
parents: 53
diff changeset
    71
    top extent:300@300.
claus
parents: 53
diff changeset
    72
claus
parents: 53
diff changeset
    73
    panel := VerticalPanelView origin:0.0@0.0 corner:1.0@1.0 in:top.
claus
parents: 53
diff changeset
    74
    panel verticalLayout:#topSpace.
claus
parents: 53
diff changeset
    75
claus
parents: 53
diff changeset
    76
    f1 := LabelledEnterField new.
claus
parents: 53
diff changeset
    77
    f1 label:'Firstname:'.
1298
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
    78
    f1 aspect:#firstName; change:#firstName:; model:model.
56
claus
parents: 53
diff changeset
    79
    panel add:f1.
claus
parents: 53
diff changeset
    80
claus
parents: 53
diff changeset
    81
    f2 := LabelledEnterField new.
claus
parents: 53
diff changeset
    82
    f2 label:'Middle Initial:'.
1298
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
    83
    f2 aspect:#middleInitial; change:#middleInitial:; model:model.
56
claus
parents: 53
diff changeset
    84
    panel add:f2.
claus
parents: 53
diff changeset
    85
claus
parents: 53
diff changeset
    86
    f3 := LabelledEnterField new.
claus
parents: 53
diff changeset
    87
    f3 label:'Lastname:'.
1298
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
    88
    f3 aspect:#lastName; change:#lastName:; model:model.
56
claus
parents: 53
diff changeset
    89
    panel add:f3.
claus
parents: 53
diff changeset
    90
claus
parents: 53
diff changeset
    91
    f4 := LabelledEnterField new.
claus
parents: 53
diff changeset
    92
    f4 label:'Telephone:'.
1298
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
    93
    f4 aspect:#telNo; change:#telNo:; model:model.
56
claus
parents: 53
diff changeset
    94
    panel add:f4.
claus
parents: 53
diff changeset
    95
claus
parents: 53
diff changeset
    96
    top open
159
0596de11a136 examples
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
    97
                                                                        [exEnd]
34
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
    98
"
100
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
    99
! !
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   100
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   101
!LabelledEnterField methodsFor:'accessing'!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   102
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   103
inputField
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   104
    "return the input field component"
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   105
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   106
    ^ textField
34
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
   107
!
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
   108
100
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   109
labelView
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   110
    "return the label component"
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   111
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   112
    ^ labelField
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   113
! !
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   114
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   115
!LabelledEnterField methodsFor:'accessing-behavior'!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   116
107
48ab2466447a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 105
diff changeset
   117
acceptOnLeave:aBoolean
48ab2466447a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 105
diff changeset
   118
    "set/clear the acceptOnLeave flag in my inputField. The default is false."
48ab2466447a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 105
diff changeset
   119
48ab2466447a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 105
diff changeset
   120
     textField acceptOnLeave: aBoolean.
48ab2466447a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 105
diff changeset
   121
!
48ab2466447a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 105
diff changeset
   122
298
88cb01678b87 added #enabled query
ca
parents: 223
diff changeset
   123
enabled
88cb01678b87 added #enabled query
ca
parents: 223
diff changeset
   124
    "return true if enabled - forwarded to the inputField"
88cb01678b87 added #enabled query
ca
parents: 223
diff changeset
   125
88cb01678b87 added #enabled query
ca
parents: 223
diff changeset
   126
    ^ textField enabled
1298
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
   127
!
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
   128
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
   129
enabled:aBoolean
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
   130
    "enable/disable - forwarded to the inputField"
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
   131
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
   132
    textField enabled:aBoolean
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
   133
f5082846bc62 Move common channels to View.
Stefan Vogel <sv@exept.de>
parents: 298
diff changeset
   134
    "Created: / 30.3.1999 / 15:20:44 / stefan"
100
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   135
! !
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   136
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   137
!LabelledEnterField methodsFor:'accessing-look'!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   138
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   139
contents
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   140
    ^ textField contents
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   141
!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   142
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   143
contents:aString
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   144
    textField contents:aString
34
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
   145
!
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
   146
100
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   147
editValue 
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   148
    ^ textField editValue 
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   149
!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   150
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   151
editValue:something 
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   152
    textField editValue:something 
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   153
!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   154
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   155
label:aString
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   156
    labelField label:aString
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   157
! !
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   158
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   159
!LabelledEnterField methodsFor:'accessing-mvc'!
34
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
   160
100
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   161
addModelInterfaceTo:aDictionary
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   162
    labelField addModelInterfaceTo:aDictionary.
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   163
    textField addModelInterfaceTo:aDictionary
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   164
!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   165
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   166
aspectMessage:aspectSymbol 
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   167
    textField aspectMessage:aspectSymbol.
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   168
    labelField aspectMessage:aspectSymbol
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   169
!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   170
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   171
changeMessage:aSymbol
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   172
    textField changeMessage:aSymbol
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   173
!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   174
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   175
labelMessage:aSymbol 
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   176
    labelField labelMessage:aSymbol
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   177
!
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   178
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   179
model:aModel
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   180
    textField model:aModel.
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   181
    labelField model:aModel
34
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
   182
! !
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
   183
12
30f48431927b Initial revision
claus
parents:
diff changeset
   184
!LabelledEnterField methodsFor:'initialization'!
30f48431927b Initial revision
claus
parents:
diff changeset
   185
30f48431927b Initial revision
claus
parents:
diff changeset
   186
initialize
30f48431927b Initial revision
claus
parents:
diff changeset
   187
    "setup; create the label and an enterfield"
30f48431927b Initial revision
claus
parents:
diff changeset
   188
30f48431927b Initial revision
claus
parents:
diff changeset
   189
    super initialize.
30f48431927b Initial revision
claus
parents:
diff changeset
   190
56
claus
parents: 53
diff changeset
   191
    labelField := Label label:'l' in:self.
claus
parents: 53
diff changeset
   192
    textField := EditField in:self.
claus
parents: 53
diff changeset
   193
claus
parents: 53
diff changeset
   194
    labelField resize.
12
30f48431927b Initial revision
claus
parents:
diff changeset
   195
    labelField level:0.
56
claus
parents: 53
diff changeset
   196
    labelField origin:(margin @ (margin + textField margin)).
46
bd949a9cc2c7 *** empty log message ***
claus
parents: 34
diff changeset
   197
12
30f48431927b Initial revision
claus
parents:
diff changeset
   198
    textField origin:[(labelField origin x + labelField width) @ level]
34
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
   199
	      extent:[(self width 
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
   200
		      - margin - margin
159147b254e1 *** empty log message ***
claus
parents: 24
diff changeset
   201
		      - labelField width) @ (textField heightIncludingBorder)].
12
30f48431927b Initial revision
claus
parents:
diff changeset
   202
46
bd949a9cc2c7 *** empty log message ***
claus
parents: 34
diff changeset
   203
    "
bd949a9cc2c7 *** empty log message ***
claus
parents: 34
diff changeset
   204
     forward keyboard input to the enterField
bd949a9cc2c7 *** empty log message ***
claus
parents: 34
diff changeset
   205
    "
53
claus
parents: 49
diff changeset
   206
    self delegate:(KeyboardForwarder from:self toView:textField)
46
bd949a9cc2c7 *** empty log message ***
claus
parents: 34
diff changeset
   207
bd949a9cc2c7 *** empty log message ***
claus
parents: 34
diff changeset
   208
    "
bd949a9cc2c7 *** empty log message ***
claus
parents: 34
diff changeset
   209
     LabelledEnterField new realize
bd949a9cc2c7 *** empty log message ***
claus
parents: 34
diff changeset
   210
    "
12
30f48431927b Initial revision
claus
parents:
diff changeset
   211
! !
30f48431927b Initial revision
claus
parents:
diff changeset
   212
56
claus
parents: 53
diff changeset
   213
!LabelledEnterField methodsFor:'queries'!
claus
parents: 53
diff changeset
   214
5956
3bc79ed6a335 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3577
diff changeset
   215
computePreferredExtent
153
5167176d204b commentary
Claus Gittinger <cg@exept.de>
parents: 107
diff changeset
   216
    "return the preferredExtent from the components sizes."
5167176d204b commentary
Claus Gittinger <cg@exept.de>
parents: 107
diff changeset
   217
56
claus
parents: 53
diff changeset
   218
    |p lx ly ix iy|
claus
parents: 53
diff changeset
   219
62
claus
parents: 56
diff changeset
   220
    p := labelField preferredExtent.
56
claus
parents: 53
diff changeset
   221
    lx := p x. ly := p y.
62
claus
parents: 56
diff changeset
   222
    p := textField preferredExtent.
56
claus
parents: 53
diff changeset
   223
    ix := p x. iy := p y.
claus
parents: 53
diff changeset
   224
    ^ (lx + ix) @ (ly max:iy)
153
5167176d204b commentary
Claus Gittinger <cg@exept.de>
parents: 107
diff changeset
   225
5956
3bc79ed6a335 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3577
diff changeset
   226
    "Created: / 09-11-2018 / 19:56:04 / Claus Gittinger"
56
claus
parents: 53
diff changeset
   227
! !
claus
parents: 53
diff changeset
   228
298
88cb01678b87 added #enabled query
ca
parents: 223
diff changeset
   229
!LabelledEnterField class methodsFor:'documentation'!
24
6704fad5eb7d *** empty log message ***
claus
parents: 12
diff changeset
   230
100
3d33433f459c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 86
diff changeset
   231
version
5956
3bc79ed6a335 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3577
diff changeset
   232
    ^ '$Header$'
56
claus
parents: 53
diff changeset
   233
! !
5956
3bc79ed6a335 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 3577
diff changeset
   234