-
Notifications
You must be signed in to change notification settings - Fork 0
/
vfpalert.h
81 lines (67 loc) · 3.26 KB
/
vfpalert.h
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
** VFP Desktop Alert Parameters
** Types of Alert (Major Form Properties)
#DEFINE DA_TYPEPLAIN 0 && No Links, No Tasks
#DEFINE DA_TYPELINK 1 && One Link, No Tasks
#DEFINE DA_TYPETASK 2 && One Task
#DEFINE DA_TYPEMULTI 4 && Two Tasks
** A Type of 3 or 5 will add a "link" to the "task" alert.
** Otherwise, the task alert will not include a link.
** Alert Icons
#DEFINE DA_ICONDEFAULT 8 && Default Alert Icon
#DEFINE DA_ICONSTOP 16 && Critical message
#DEFINE DA_ICONQUESTION 32 && Question Mark
#DEFINE DA_ICONEXCLAMATION 48 && Warning message
#DEFINE DA_ICONINFORMATION 64 && Information message
#DEFINE DA_ICONCUSTOM 128 && User-defined custom graphic
** Left some room in here to "build-in" some other
** 'default' icons.
#DEFINE DA_TASKICONDEFAULT 2048 && Default Task Icon
** Alert Options
#DEFINE DA_NOSETTINGS 4096 && Do not show the settings button
#DEFINE DA_NOPIN 8192 && Do not show the push-pin button
#DEFINE DA_NOCLOSE 16384 && Do not show the close button
** Alert Return Values
#DEFINE DA_NOACTION -1 && Alert closed with no user interaction (timeout)
#DEFINE DA_CLOSED 1 && User closed the alert
#DEFINE DA_LINK 2 && User clicked the link
#DEFINE DA_TASKONE 3 && User chose Task 1
#DEFINE DA_TASKTWO 4 && User chose Task 2
** Files
#DEFINE DA_DEFAULTICONFILE "default_icon.bmp"
#DEFINE DA_DEFAULTTASKFILE "default_task.png"
#DEFINE DA_CONFIGFILE "daconfig.xml"
** Settings
#DEFINE DA_FADETIMER 20 && tmrFade Interval (Milliseconds)
#DEFINE DA_WAIT 10 && Show the alert for ten seconds by default
#DEFINE DA_FADEPERCENT 10 && By default, make it 10% Transparent
#DEFINE DA_TRANSPARENCY 255 * (DA_FADEPERCENT/100)
** Strings
#DEFINE DA_DEFAULTTITLE "Desktop Alert Message"
** Default 'CAPTIONS' for the settings screen
** Special thanks to Emerson Stanton Reed for
** his suggestion!
#DEFINE DA_SETTINGS "Desktop Alerts Settings"
#DEFINE DA_LBLHOWLONG "How long should the Desktop Alert appear on-screen?"
#DEFINE DA_LBLSECONDS "seconds"
#DEFINE DA_LBLHOWTRANSPARENT "How transparent should the Desktop Alert be?"
#DEFINE DA_LBLPERCENT "percent"
#DEFINE DA_CHKSOUND "Play a sound when the Alert appears"
#DEFINE DA_CMDOK "\<OK"
#DEFINE DA_CMDCANCEL "Cancel"
** Fallback font name and size for the settings window
** The settings window uses Segoe UI,9 by default but
** will fallback to *this* font,size if not Vista/Win7.
#DEFINE DA_SETTINGSFONTNAME "Tahoma"
#DEFINE DA_SETTINGSFONTSIZE 9
** The following are used by the API functions in the form's MouseMove.
#DEFINE WM_NULL 0
#DEFINE WM_SYSCOMMAND 0x112
#DEFINE WM_LBUTTONUP 0x202
#DEFINE MOUSE_MOVE 0xf012
** COM_Attrib flag settings for Type Library attributes support
#DEFINE COMATTRIB_RESTRICTED 0x1 && The property/method should not be accessible from macro languages.
#DEFINE COMATTRIB_HIDDEN 0x40 && The property/method should not be displayed to the user, although it exists and is bindable.
#DEFINE COMATTRIB_NONBROWSABLE 0x400 && The property/method appears in an object browser, but not in a properties browser.
#DEFINE COMATTRIB_READONLY 0x100000 && The property is read-only (applies only to Properties).
#DEFINE COMATTRIB_WRITEONLY 0x200000 && The property is write-only (applies only to Properties).
#DEFINE CRLF CHR(13) + CHR(10)