-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEndTheProgram.prg
109 lines (66 loc) · 2.62 KB
/
EndTheProgram.prg
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
*-----------------------------------------------------------------------------*
* MultiplicationTable | EndTheProgram.prg
*-----------------------------------------------------------------------------*
#include "mpt_hmg.ch"
*-----------------------------------------------------------------------------*
*-----------------------------------------------------------------------------*
PROCEDURE EndTheProgram()
*-----------------------------------------------------------------------------*
LOCAL nI
LOCAL aControls
PRIVATE aFrmControls
PRIVATE aFormProperty
DECLARE WINDOW win_Main
DECLARE WINDOW win_EndTheProgram
aControls := {}
aFrmControls := {}
aFormProperty := {}
IF !IsWIndowDefined( win_EndTheProgram )
#IFDEF _HMG_2_
LOAD WINDOW EndTheProgram2 AS win_EndTheProgram
win_EndTheProgram.TitleBar := .F.
win_EndTheProgram.SysMenu := .T.
win_EndTheProgram.Sizable := .F.
#ENDIF
#IFDEF _HMG_3_
LOAD WINDOW EndTheProgram3 AS win_EndTheProgram
#ENDIF
ON KEY ALT + F4 OF win_EndTheProgram ACTION { || Nil }
AADD( aFrm , ;
{ "win_EndTheProgram" ,;
win_EndTheProgram.Row ,;
win_EndTheProgram.Col ;
} )
#IFDEF _HMG_2_
aControls := _GetAllControlsInForm( "win_EndTheProgram" )
#ENDIF
#IFDEF _HMG_3_
aControls := _GetArrayOfAllControlsForForm( "win_EndTheProgram" )
#ENDIF
FOR nI := 1 TO LEN( aControls )
AADD( aFrmControls ,;
{ "win_EndTheProgram" ,;
aControls[ nI ] ,;
GetProperty( "win_EndTheProgram" , aControls[ nI ] , "Row" ) ,;
GetProperty( "win_EndTheProgram" , aControls[ nI ] , "Col" ) ,;
GetProperty( "win_EndTheProgram" , aControls[ nI ] , "Width" ) ,;
GetProperty( "win_EndTheProgram" , aControls[ nI ] , "Height" ) ,;
GetProperty( "win_EndTheProgram" , aControls[ nI ] , "FontSize" ) ;
} )
NEXT nI
AADD( aFormProperty ,;
{ "win_EndTheProgram" ,;
GetProperty( "win_EndTheProgram" , "Row" ) ,;
GetProperty( "win_EndTheProgram" , "Col" ) ,;
GetProperty( "win_EndTheProgram" , "Width" ) ,;
GetProperty( "win_EndTheProgram" , "Height" ) ;
} )
win_EndTheProgram.Activate
ENDIF
RETURN
*-----------------------------------------------------------------------------*
*-----------------------------------------------------------------------------*
#include "EndTheProgram_Events.prg"
*-----------------------------------------------------------------------------*
*-----------------------------------------------------------------------------*
*-----------------------------------------------------------------------------*