blob: a79d1aeaba07bcff03997fdfc973c75ec30f67d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
############################################################################
#
# File: vfilter.icn
#
# Subject: Procedure to change filter mode in sliders and scrollbars
#
# Author: Ralph E. Griswold
#
# Date: March 3, 1998
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# VSetFilter(vidget, value) sets the appropriate field in the structure for
# vidget to change the filtering mode (null for no filtering, "1" for
# filtering).
#
############################################################################
#
# Requires: Version 9 graphics
#
############################################################################
procedure VSetFilter(vidget, value) #: filter mode of slider/scrollbar
local t
t := type(vidget)
case t of {
"Vscrollbar_frame_rec" : vidget.callback.callers[2].discont := value
"Vslider_rec" : vidget.discont := value
default : stop("*** invalid type to VSetFilter: ", t)
}
return
end
|