6574
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
1682
|
3 |
"
|
|
4 |
COPYRIGHT (c) 1998 by eXept Software AG
|
|
5 |
All Rights Reserved
|
|
6 |
|
|
7 |
This software is furnished under a license and may be used
|
|
8 |
only in accordance with the terms of that license and with the
|
|
9 |
inclusion of the above copyright notice. This software may not
|
|
10 |
be provided or otherwise made available to, or used by, any
|
|
11 |
other person. No title to or ownership of the software is
|
|
12 |
hereby transferred.
|
|
13 |
"
|
2288
|
14 |
"{ Package: 'stx:libwidg' }"
|
|
15 |
|
6574
|
16 |
"{ NameSpace: Smalltalk }"
|
|
17 |
|
1682
|
18 |
Label subclass:#CheckLabel
|
|
19 |
instanceVariableNames:'hasFocus'
|
|
20 |
classVariableNames:''
|
|
21 |
poolDictionaries:''
|
|
22 |
category:'Views-Layout'
|
|
23 |
!
|
|
24 |
|
|
25 |
!CheckLabel class methodsFor:'documentation'!
|
|
26 |
|
|
27 |
copyright
|
|
28 |
"
|
|
29 |
COPYRIGHT (c) 1998 by eXept Software AG
|
|
30 |
All Rights Reserved
|
|
31 |
|
|
32 |
This software is furnished under a license and may be used
|
|
33 |
only in accordance with the terms of that license and with the
|
|
34 |
inclusion of the above copyright notice. This software may not
|
|
35 |
be provided or otherwise made available to, or used by, any
|
|
36 |
other person. No title to or ownership of the software is
|
|
37 |
hereby transferred.
|
|
38 |
"
|
|
39 |
|
|
40 |
!
|
|
41 |
|
|
42 |
documentation
|
|
43 |
"
|
|
44 |
used for labels in checkBoxes;
|
|
45 |
the only added functionality is the focus-frame
|
|
46 |
drawn around.
|
|
47 |
This is used with win95 styles only.
|
|
48 |
"
|
|
49 |
! !
|
|
50 |
|
|
51 |
!CheckLabel methodsFor:'accessing'!
|
|
52 |
|
6574
|
53 |
hasFocus:aBoolean
|
2288
|
54 |
"set the value of the instance variable 'hasFocus' (automatically generated)"
|
|
55 |
|
6574
|
56 |
hasFocus := aBoolean.
|
2288
|
57 |
|
6574
|
58 |
"Created: / 17-09-1998 / 14:17:51 / cg"
|
|
59 |
"Modified (format): / 23-04-2019 / 19:19:10 / Claus Gittinger"
|
2288
|
60 |
! !
|
|
61 |
|
|
62 |
!CheckLabel methodsFor:'queries'!
|
|
63 |
|
1682
|
64 |
hasFocus
|
|
65 |
"return the value of the instance variable 'hasFocus' (automatically generated)"
|
|
66 |
|
6574
|
67 |
^ hasFocus ? false
|
1682
|
68 |
|
6574
|
69 |
"Created: / 17-09-1998 / 14:17:51 / cg"
|
|
70 |
"Modified: / 23-04-2019 / 19:12:20 / Claus Gittinger"
|
1682
|
71 |
! !
|
|
72 |
|
|
73 |
!CheckLabel methodsFor:'redrawing'!
|
|
74 |
|
|
75 |
drawWith:fg and:bg
|
|
76 |
super drawWith:fg and:bg.
|
5205
|
77 |
hasFocus == true ifTrue:[ self drawFocusFrame ].
|
1682
|
78 |
|
|
79 |
"Created: / 17.9.1998 / 14:16:07 / cg"
|
|
80 |
"Modified: / 17.9.1998 / 14:17:40 / cg"
|
|
81 |
! !
|
|
82 |
|
|
83 |
!CheckLabel class methodsFor:'documentation'!
|
|
84 |
|
|
85 |
version
|
6574
|
86 |
^ '$Header$'
|
1682
|
87 |
! !
|
5205
|
88 |
|