author | Claus Gittinger <cg@exept.de> |
Sat, 11 Nov 1995 17:30:31 +0100 | |
changeset 86 | 4d7dbb5f1719 |
parent 71 | 9f9243f5813b |
child 100 | 3d33433f459c |
permissions | -rw-r--r-- |
17 | 1 |
" |
2 |
COPYRIGHT (c) 1992 by Claus Gittinger |
|
24 | 3 |
All Rights Reserved |
17 | 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 |
" |
|
12 |
||
49 | 13 |
'From Smalltalk/X, Version:2.10.5 on 30-apr-1995 at 1:46:29 am'! |
14 |
||
15 |
Slider subclass:#HorizontalSlider |
|
16 |
instanceVariableNames:'' |
|
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Views-Interactors' |
|
17 | 20 |
! |
21 |
||
22 |
!HorizontalSlider class methodsFor:'documentation'! |
|
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1992 by Claus Gittinger |
|
24 | 27 |
All Rights Reserved |
17 | 28 |
|
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
version |
|
86
4d7dbb5f1719
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
71
diff
changeset
|
39 |
^ '$Header: /cvs/stx/stx/libwidg2/HorizontalSlider.st,v 1.7 1995-11-11 16:28:58 cg Exp $' |
17 | 40 |
! |
41 |
||
42 |
documentation |
|
43 |
" |
|
44 |
this class implements horizontal sliders. |
|
45 |
" |
|
46 |
! ! |
|
47 |
||
48 |
!HorizontalSlider methodsFor:'initialization'! |
|
49 |
||
50 |
initialize |
|
51 |
super initialize. |
|
49 | 52 |
sliderHeight := (self horizontalPixelPerMillimeter:10) rounded. |
53 |
orientation := #horizontal |
|
17 | 54 |
! ! |
55 |
||
65 | 56 |
!HorizontalSlider methodsFor:'queries'! |
57 |
||
58 |
preferredExtent |
|
59 |
|w h| |
|
60 |
||
61 |
w := self class defaultExtent x. |
|
62 |
h := (device verticalPixelPerMillimeter asFloat * 6) rounded. |
|
63 |
^ w @ h. |
|
64 |
! ! |