-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcAboutModalPanel.pkg
More file actions
100 lines (83 loc) · 3.13 KB
/
Copy pathcAboutModalPanel.pkg
File metadata and controls
100 lines (83 loc) · 3.13 KB
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
//****************************************************************************
// $Module type: Class
// $Module name: cAboutModalPanel
// $Author : Nils Svedmyr, RDC Tools International
// Created : 2014-03-17 @ 12:33
//
// Description :
//
// $Rev History:
// 2014-03-17 Module header created
// The code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// This is free software; you can redistribute it and/or modify it under the terms of the
// GNU Lesser General Public License - see the "GNU Lesser General Public License.txt"
// in the help folder for more details.
//
//****************************************************************************
Use Windows.pkg
Use cCJCommandBarSystem.pkg
Use cCJSkinFramework.pkg
Class cAboutModalPanel is a ModalPanel
Procedure Construct_Object
Forward Send Construct_Object
Set Maximize_Icon to True
Set Minimize_Icon to False
Set Border_Style to Border_Thick
Set Locate_Mode to Center_On_Parent
Property String Private_Icon
Property Handle phoDialogCommandbar
End_Procedure
Procedure Set Icon String sIcon
Forward Set Icon to sIcon
Set Private_Icon to sIcon
End_Procedure
Function Icon Returns String
String sIcon
Get Private_Icon to sIcon
Function_Return sIcon
End_Function
Procedure Page Integer iPageObject
String sIcon
Integer hWnd
Forward Send Page iPageObject
Get Private_Icon to sIcon
If (sIcon <> "") Begin
Set Icon to sIcon
End
Get Window_Handle to hWnd
If ((ghoSkinFramework <> 0) and (hWnd <> 0)) Begin
Send ComRemoveWindow to ghoSkinFramework hWnd
Send ComApplyWindow to ghoSkinFramework hWnd
End
End_Procedure
// Put a status bar at the bottom of the panel, which makes
// status_help work and puts a gripper in the lower right corner.
Procedure End_Construct_Object
Integer iStyle iSize iOffset
Forward Send End_Construct_Object
Get Border_Style to iStyle
Move 8 to iOffset
If (iStyle = Border_Thick) Begin
Object oDialogCommandbar is a cCJCommandBarSystem
Object oStatusBar is a cCJStatusBar
Set phoDialogCommandbar to Self
Object oStatusPane1 is a cCJStatusBarPane
Set piId to sbpIDIdlePane
Set pbStyleStretch to True
End_Object
End_Object
End_Object
Get Size to iSize
Set Size to (Hi(iSize) + iOffset) (Low(iSize))
Set piMinSize to (Hi(iSize) + iOffset) (Low(iSize))
End
End_Procedure
Procedure Set StatusText String sText
Set psText of (oStatusPane1(phoDialogCommandbar(Self))) to sText
End_Procedure
Procedure Popup
Set Statusbar_Id to (phoDialogCommandbar(Self))
Forward Send Popup
End_Procedure
End_Class