author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 14 Jun 2019 12:45:30 +0100 | |
branch | jv |
changeset 6068 | 5e8b7ee23889 |
parent 4642 | 567c795ded51 |
permissions | -rw-r--r-- |
1716 | 1 |
" |
2 |
COPYRIGHT (c) 1996 by eXept Software AG / Claus Gittinger |
|
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 |
" |
|
3496 | 12 |
"{ Package: 'stx:libwidg2' }" |
1716 | 13 |
|
512 | 14 |
Toggle subclass:#ComboBoxButton |
15 |
instanceVariableNames:'' |
|
4175 | 16 |
classVariableNames:'DefaultBorderWidth' |
512 | 17 |
poolDictionaries:'' |
18 |
category:'Views-Interactors' |
|
19 |
! |
|
20 |
||
21 |
!ComboBoxButton class methodsFor:'documentation'! |
|
22 |
||
1716 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 1996 by eXept Software AG / Claus Gittinger |
|
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 |
||
36 |
||
37 |
! |
|
38 |
||
512 | 39 |
documentation |
40 |
" |
|
41 |
for ST-80 compatibility, a place to add mimicri protocol. |
|
42 |
" |
|
43 |
! ! |
|
44 |
||
4175 | 45 |
!ComboBoxButton class methodsFor:'defaults'! |
46 |
||
47 |
updateStyleCache |
|
48 |
<resource: #style (#'comboView.button.borderWidth' |
|
49 |
)> |
|
50 |
||
51 |
DefaultBorderWidth := StyleSheet at:#'comboView.button.borderWidth'. |
|
52 |
||
53 |
" |
|
54 |
self updateStyleCache |
|
55 |
" |
|
56 |
||
57 |
"Modified: / 28.4.1999 / 13:59:00 / cg" |
|
58 |
! ! |
|
59 |
||
512 | 60 |
!ComboBoxButton methodsFor:'accessing'! |
61 |
||
62 |
lastSelection:selectionIndex |
|
63 |
"ignored for now" |
|
64 |
||
65 |
"Modified: 30.8.1997 / 02:45:43 / cg" |
|
66 |
! ! |
|
67 |
||
1292
12d0a583010d
dont catch the focus with button press.
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
68 |
!ComboBoxButton methodsFor:'focus control'! |
12d0a583010d
dont catch the focus with button press.
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
69 |
|
12d0a583010d
dont catch the focus with button press.
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
70 |
wantsFocusWithButtonPress |
4642 | 71 |
"yes, catch the keyboard focus on button click" |
1292
12d0a583010d
dont catch the focus with button press.
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
72 |
|
3496 | 73 |
^ true. |
74 |
"/ ^ false |
|
1292
12d0a583010d
dont catch the focus with button press.
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
75 |
! ! |
12d0a583010d
dont catch the focus with button press.
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
76 |
|
4175 | 77 |
!ComboBoxButton methodsFor:'initialization'! |
78 |
||
79 |
initStyle |
|
80 |
"setup viewStyle specifics" |
|
81 |
||
82 |
super initStyle. |
|
83 |
||
84 |
DefaultBorderWidth notNil ifTrue:[self borderWidth: DefaultBorderWidth]. |
|
85 |
! ! |
|
86 |
||
512 | 87 |
!ComboBoxButton class methodsFor:'documentation'! |
88 |
||
89 |
version |
|
4642 | 90 |
^ '$Header: /cvs/stx/stx/libwidg2/ComboBoxButton.st,v 1.7 2014-07-08 09:17:36 cg Exp $' |
512 | 91 |
! ! |
4175 | 92 |