author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 04 Jun 2014 22:40:15 +0100 | |
branch | delegated_gc_text-view-selection-refactoring |
changeset 5086 | 6f3514837c99 |
parent 3682 | 5b3e9fa99604 |
child 5205 | d5b7f2176621 |
permissions | -rw-r--r-- |
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. |
|
71 |
hasFocus == true ifTrue:[ |
|
2137
2642e627bb2a
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1682
diff
changeset
|
72 |
(styleSheet at:#focusHighlightStyle) == #win95 ifTrue:[ |
3682 | 73 |
self windowGroup focusCameByTab ifTrue:[ |
74 |
self drawWin95FocusFrame |
|
75 |
] |
|
1682 | 76 |
] |
77 |
]. |
|
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 |
|
3682 | 86 |
^ '$Header: /cvs/stx/stx/libwidg/CheckLabel.st,v 1.4 2008-07-22 20:50:05 cg Exp $' |
1682 | 87 |
! ! |