1
|
def var h as handle.
|
2
|
def var i as int.
|
3
|
|
4
|
on close of this-procedure message "bla".
|
5
|
wait-for close of this-procedure.
|
6
|
apply "close" to this-procedure.
|
7
|
|
8
|
on close of source-procedure message "bla".
|
9
|
wait-for close of source-procedure.
|
10
|
apply "close" to source-procedure.
|
11
|
|
12
|
on close of target-procedure message "bla".
|
13
|
wait-for close of target-procedure.
|
14
|
apply "close" to target-procedure.
|
15
|
|
16
|
apply "b" to self.
|
17
|
apply "b" to current-window.
|
18
|
apply "a" to current-window.
|
19
|
|
20
|
this-procedure:current-window = h.
|
21
|
this-procedure:current-window = active-window.
|
22
|
this-procedure:current-window = default-window.
|
23
|
this-procedure:current-window = current-window.
|
24
|
|
25
|
h = current-window.
|
26
|
h = default-window.
|
27
|
h = active-window.
|
28
|
|
29
|
run some-proc (input current-window, input active-window, input default-window).
|
30
|
|
31
|
i = h:hwnd.
|
32
|
i = current-window:hwnd.
|
33
|
i = active-window:hwnd.
|
34
|
i = default-window:hwnd.
|
35
|
|
36
|
h:sensitive = true.
|
37
|
current-window:sensitive = true.
|
38
|
active-window:sensitive = true.
|
39
|
default-window:sensitive = true.
|
40
|
|
41
|
wait-for close of h.
|
42
|
wait-for close of current-window.
|
43
|
wait-for close of active-window.
|
44
|
wait-for close of default-window.
|
45
|
|
46
|
on window-close of h message "bla".
|
47
|
on window-close of current-window message "bla".
|
48
|
on window-close of active-window message "bla".
|
49
|
on window-close of default-window message "bla".
|
50
|
|
51
|
active-window = h.
|
52
|
current-window = h.
|
53
|
default-window = h.
|
54
|
session = h.
|
55
|
file-info = h.
|
56
|
error-status = h.
|
57
|
last-event = h.
|
58
|
target-procedure = h.
|
59
|
source-procedure = h.
|
60
|
|
61
|
active-window = current-window.
|
62
|
current-window = current-window.
|
63
|
default-window = current-window.
|
64
|
session = current-window.
|
65
|
file-info = current-window.
|
66
|
error-status = current-window.
|
67
|
last-event = current-window.
|
68
|
target-procedure = current-window.
|
69
|
source-procedure = current-window.
|
70
|
|
71
|
active-window = default-window.
|
72
|
current-window = default-window.
|
73
|
default-window = default-window.
|
74
|
session = default-window.
|
75
|
file-info = default-window.
|
76
|
error-status = default-window.
|
77
|
last-event = default-window.
|
78
|
target-procedure = default-window.
|
79
|
source-procedure = default-window.
|
80
|
|
81
|
active-window = active-window.
|
82
|
current-window = active-window.
|
83
|
default-window = active-window.
|
84
|
session = active-window.
|
85
|
file-info = active-window.
|
86
|
error-status = active-window.
|
87
|
last-event = active-window.
|
88
|
target-procedure = active-window.
|
89
|
source-procedure = active-window.
|
90
|
|
91
|
h:hidden = true.
|
92
|
active-window:hidden = true.
|
93
|
default-window:hidden = true.
|
94
|
current-window:hidden = true.
|
95
|
|
96
|
function func1 returns handle.
|
97
|
return session.
|
98
|
end.
|
99
|
|
100
|
function func2 returns handle.
|
101
|
return last-event.
|
102
|
end.
|
103
|
|
104
|
function func3 returns handle.
|
105
|
return file-info.
|
106
|
end.
|
107
|
|
108
|
function func4 returns handle.
|
109
|
return active-window.
|
110
|
end.
|
111
|
|
112
|
function func5 returns handle.
|
113
|
return current-window.
|
114
|
end.
|
115
|
|
116
|
function func6 returns handle.
|
117
|
return default-window.
|
118
|
end.
|