CheckLabel.st
author sr
Tue, 11 Jun 2019 11:47:16 +0200
changeset 6604 89a0c07bbba9
parent 6574 6c054f170606
child 6794 68d504390bbf
permissions -rw-r--r--
#BUGFIX by Stefan Reise fixed recursion when calling #showSelectedFont #updateFamilyList class: FontPanel added: #updateFamilyListAndDoShowSelectedFont: changed: #showSelectedFont #updateFamilyList
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6574
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
     1
"{ Encoding: utf8 }"
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
     2
1682
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
 COPYRIGHT (c) 1998 by eXept Software AG
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
              All Rights Reserved
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 This software is furnished under a license and may be used
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
 hereby transferred.
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
"
2288
93f27fcd6dc2 category change
Claus Gittinger <cg@exept.de>
parents: 2137
diff changeset
    14
"{ Package: 'stx:libwidg' }"
93f27fcd6dc2 category change
Claus Gittinger <cg@exept.de>
parents: 2137
diff changeset
    15
6574
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
    16
"{ NameSpace: Smalltalk }"
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
    17
1682
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
Label subclass:#CheckLabel
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	instanceVariableNames:'hasFocus'
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	classVariableNames:''
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	poolDictionaries:''
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	category:'Views-Layout'
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
!CheckLabel class methodsFor:'documentation'!
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
copyright
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 COPYRIGHT (c) 1998 by eXept Software AG
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
              All Rights Reserved
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 This software is furnished under a license and may be used
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 only in accordance with the terms of that license and with the
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 be provided or otherwise made available to, or used by, any
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
 other person.  No title to or ownership of the software is
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
 hereby transferred.
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
!
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
documentation
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
"
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    used for labels in checkBoxes;
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
    the only added functionality is the focus-frame
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    drawn around.
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    This is used with win95 styles only.
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
"
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
! !
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
!CheckLabel methodsFor:'accessing'!
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
6574
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
    53
hasFocus:aBoolean
2288
93f27fcd6dc2 category change
Claus Gittinger <cg@exept.de>
parents: 2137
diff changeset
    54
    "set the value of the instance variable 'hasFocus' (automatically generated)"
93f27fcd6dc2 category change
Claus Gittinger <cg@exept.de>
parents: 2137
diff changeset
    55
6574
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
    56
    hasFocus := aBoolean.
2288
93f27fcd6dc2 category change
Claus Gittinger <cg@exept.de>
parents: 2137
diff changeset
    57
6574
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
    58
    "Created: / 17-09-1998 / 14:17:51 / cg"
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
    59
    "Modified (format): / 23-04-2019 / 19:19:10 / Claus Gittinger"
2288
93f27fcd6dc2 category change
Claus Gittinger <cg@exept.de>
parents: 2137
diff changeset
    60
! !
93f27fcd6dc2 category change
Claus Gittinger <cg@exept.de>
parents: 2137
diff changeset
    61
93f27fcd6dc2 category change
Claus Gittinger <cg@exept.de>
parents: 2137
diff changeset
    62
!CheckLabel methodsFor:'queries'!
93f27fcd6dc2 category change
Claus Gittinger <cg@exept.de>
parents: 2137
diff changeset
    63
1682
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
hasFocus
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    "return the value of the instance variable 'hasFocus' (automatically generated)"
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
6574
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
    67
    ^ hasFocus ? false
1682
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
6574
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
    69
    "Created: / 17-09-1998 / 14:17:51 / cg"
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
    70
    "Modified: / 23-04-2019 / 19:12:20 / Claus Gittinger"
1682
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
! !
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
!CheckLabel methodsFor:'redrawing'!
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
drawWith:fg and:bg
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
    super drawWith:fg and:bg.
5205
d5b7f2176621 class: CheckLabel
Claus Gittinger <cg@exept.de>
parents: 3682
diff changeset
    77
    hasFocus == true ifTrue:[ self drawFocusFrame ].
1682
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    "Created: / 17.9.1998 / 14:16:07 / cg"
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    "Modified: / 17.9.1998 / 14:17:40 / cg"
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
! !
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
!CheckLabel class methodsFor:'documentation'!
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
version
6574
6c054f170606 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5205
diff changeset
    86
    ^ '$Header$'
1682
6289269ca02c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
! !
5205
d5b7f2176621 class: CheckLabel
Claus Gittinger <cg@exept.de>
parents: 3682
diff changeset
    88