1682
|
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 |
"
|
2288
|
12 |
"{ Package: 'stx:libwidg' }"
|
|
13 |
|
1682
|
14 |
Label subclass:#CheckLabel
|
|
15 |
instanceVariableNames:'hasFocus'
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'Views-Layout'
|
|
19 |
!
|
|
20 |
|
|
21 |
!CheckLabel 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 |
|
|
36 |
!
|
|
37 |
|
|
38 |
documentation
|
|
39 |
"
|
|
40 |
used for labels in checkBoxes;
|
|
41 |
the only added functionality is the focus-frame
|
|
42 |
drawn around.
|
|
43 |
This is used with win95 styles only.
|
|
44 |
"
|
|
45 |
! !
|
|
46 |
|
|
47 |
!CheckLabel methodsFor:'accessing'!
|
|
48 |
|
2288
|
49 |
hasFocus:something
|
|
50 |
"set the value of the instance variable 'hasFocus' (automatically generated)"
|
|
51 |
|
|
52 |
hasFocus := something.
|
|
53 |
|
|
54 |
"Created: / 17.9.1998 / 14:17:51 / cg"
|
|
55 |
! !
|
|
56 |
|
|
57 |
!CheckLabel methodsFor:'queries'!
|
|
58 |
|
1682
|
59 |
hasFocus
|
|
60 |
"return the value of the instance variable 'hasFocus' (automatically generated)"
|
|
61 |
|
|
62 |
^ hasFocus
|
|
63 |
|
|
64 |
"Created: / 17.9.1998 / 14:17:51 / cg"
|
|
65 |
! !
|
|
66 |
|
|
67 |
!CheckLabel methodsFor:'redrawing'!
|
|
68 |
|
|
69 |
drawWith:fg and:bg
|
|
70 |
super drawWith:fg and:bg.
|
5205
|
71 |
hasFocus == true ifTrue:[ self drawFocusFrame ].
|
1682
|
72 |
|
|
73 |
"Created: / 17.9.1998 / 14:16:07 / cg"
|
|
74 |
"Modified: / 17.9.1998 / 14:17:40 / cg"
|
|
75 |
! !
|
|
76 |
|
|
77 |
!CheckLabel class methodsFor:'documentation'!
|
|
78 |
|
|
79 |
version
|
5205
|
80 |
^ '$Header: /cvs/stx/stx/libwidg/CheckLabel.st,v 1.5 2014-12-02 18:19:38 cg Exp $'
|
1682
|
81 |
! !
|
5205
|
82 |
|