Subversion Repositories filter_foundry

Rev

Rev 193 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
259 daniel-mar 1
/* from HIN 010 */
2
// The first set of definitions are not actual coordinates, but instead are intermediate values used to derive them:
3
 
4
#define A                    13    // white space between most elements
5
#define B                    23    // white space to left and right of icon
6
#define NumTextLines          3    // number of lines of text in the alert
7
#define LineHeight           16    // height of a single line of Chicago-12
8
#define ButtonHeight         20    // standard button height
9
#define LongestButtonName    41    // width of ÒCancelÓ in Chicago-12
10
#define ButtonWidth          59    // (LongestButtonName + 18)
11
 
12
// The rest of the definitions are actual coordinates defining the window size
13
// (AlertWidth and AlertHeight) and the icon, text, and button locations:
14
 
15
#define AlertWidth          341    // chosen to make the right margin = A
16
 
17
#define IconLeft             20    // (B - 3)
18
#define IconRight            52    // (IconLeft + 32)
19
#define IconTop              10    // (A - 3)
20
#define IconBottom           42    // (IconTop + 32)
21
 
22
#define TextLeft             74    // (IconRight + (B - 1))
23
#define TextRight           331    // (AlertWidth - (A - 3))
24
#define TextTop               7    // (A - 6)
25
#define TextBottom           55    // (TextTop + (NumTextLines * LineHeight))
26
 
27
#define ButtonTop            68    // (TextBottom + A)
28
#define ButtonBottom         88    // (ButtonTop + ButtonHeight)
29
#define ActionButtonRight   331    // (AlertWidth - (A - 3))
30
#define ActionButtonLeft    272    // (ActionButtonRight - ButtonWidth)
31
#define CancelButtonRight   259    // (ActionButtonLeft - A)
32
#define CancelButtonLeft    200    // (CancelButtonRight - ButtonWidth)
33
 
34
#define AlertHeight          98    // (ButtonBottom + (A - 3))