9 #define PM_TEXTPEN 0x0002
10 #define PM_SHINEPEN 0x0003
11 #define PM_SHADOWPEN 0x0004
12 #define PM_FILLPEN 0x0005
13 #define PM_FILLTEXTPEN 0x0006
14 #define PM_BACKGROUNDPEN 0x0007
15 #define PM_HIGHLIGHTTEXTPEN 0x0008 // MENU TITLE
16 #define PM_MENUTEXT 0x0009 // OUTLINE/SHADOW
17 #define PM_MENUFILL 0x000A
18 #define PM_MENUTRIM 0x000B
19 #define PM_HALFSHINE 0x000C
20 #define PM_HALFSHADOW 0x000D
22 #define MAX_PENS 0x000E
25 typedef struct VPTR
{ union { ULONG pos
; STRPTR ptr
}; } VPTR
;
43 ULONG Subtime
; // Delay for submenus
44 BOOL SameHeight
; // All items same height
45 BOOL OldStyle
; // Old Look
46 UBYTE RecSel
; // >1 = Recess Selected, 0 = no selborder, 1 = raised
47 BOOL WideSelBar
; // Wide Select Bar
48 BOOL Compact
; // Smallest possible
49 BOOL WideMenu
; // Make the menu wider
51 BOOL UseDriPens
; // Use DrawInfo pens
52 struct PM_RGB Colors
[MAX_PENS
];
56 BOOL OpenOnDown
; // Open menu when the mouse button is pressed
66 BOOL Shadows
; // Menu shadows
70 BOOL UseWindows
; // Use windows instead of blitter
78 UWORD MenuBorder
; // Menu Border
82 ULONG AmigaImg
; // AmigaKey Image
86 UBYTE ImgName
[48]; // Name of ImgTable
88 LONG ImgTable
[150]; // Seek pos to images - struct size
96 UWORD TitlePatch
; // Title text style
97 BOOL RealShadows
; // Enable/Disable hi-/truecolor shadows
99 UBYTE SelBarX
; // Spacing between selbar (pm->left/top)
100 UBYTE SelBarY
; // and text/image
102 UBYTE XSpacing
; // Spacing between borders and items
105 UWORD TextPatch
; // Item text style
107 BOOL WinBar
; // Pulldown at window bar
108 BYTE Popup
; // Pop up pulldowns
110 BOOL BlitImg
; // Blit images
114 UBYTE Intermediate
; // Spacing between items
115 BYTE TextDisplace
; // Text displacement
117 BYTE ShadeG
; // Shadow intensity
144 struct PMPI_TrueColour
{
154 #define CHECKMARK_IMG 0
155 #define RIGHTARROW_IMG 1
156 #define MXIMAGE_IMG 2
157 #define CHECKIMAGE_IMG 3
158 #define AMIGAKEY_IMG 4
159 #define BULLET_A_IMG 5
160 #define BULLET_B_IMG 6
161 #define ARROW_A_IMG 7
162 #define ARROW_B_IMG 8
163 #define ARROW_C_IMG 9
164 #define MMCHECK_IMG 10
165 #define MMAMIGA_IMG 11
167 #define MMEXCLUDE_IMG 13
169 #define PREFSIMAGE_IMG 100 // Add to actual img number
173 #define BUTTON_FRAME 0
174 #define MAGIC_FRAME 1
175 #define THICK_BUTTON_FRAME 2
176 #define DOUBLE_FRAME 3
177 #define DROPBOX_FRAME 4
178 #define INTUI_FRAME 5
182 #define TP_CENTER 0x0001
183 #define TP_UNDERLINE 0x0002
184 #define TP_BOLD 0x0004
185 #define TP_SHINE 0x0008
186 #define TP_SHADOW 0x0010
187 #define TP_TEXT 0x0020
188 #define TP_HILITE 0x0040
189 #define TP_SHADOWED 0x0080
190 #define TP_LEFT 0x0100
191 #define TP_RIGHT 0x0200
192 #define TP_EMBOSS 0x0400
193 #define TP_KILLBAR 0x0800
194 #define TP_OUTLINE 0x1000
195 #define TP_ACTIVATE 0x8000
199 #define PMP_ID (0x504d4e55)
200 #define PMP_PATH "ENV:PopupMenu.cfg"
201 #define PMP_S_PATH "ENVARC:PopupMenu.cfg"