-
Notifications
You must be signed in to change notification settings - Fork 1
/
DIALOG.H
42 lines (37 loc) · 824 Bytes
/
DIALOG.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
#ifndef H_DIALOG
#define H_DIALOG
#include "famegraf.h"
#define MaxPanel 32
class Panel {
struct {
int x;
int y;
int lx;
int ly;
char ico;
char typ;
char * txt;
block pic;
void (*prog)(void);
char status;
} pan[MaxPanel];
public:
int num;
int last,current;
Panel() {
init();
last=-1;
current=-1;
}
void init(void); // ç «ì ¨¨æ¨ «¨§ æ¨ï
void show(void); //¯®ª § âì ¢á¥ ª®¯ª¨ íªà ¥
void show(int); //¯®ª § âì ª®¯ªã ¯®¤ ®¬¥à®¬
int add(int,int,int,int,char *txt=NULL,block pic=NULL,void (*prog)()=NULL, ...);
//¤®¡ ¢¨âì ª®¯ªã
int addr(int,int,int,int, char *txt=NULL, void (*prog)()=NULL, ...);
//¤®¡ ¢¨âì ®¡« áâì
void del(int); //㤠«¨âì ª®¯ªã ¨«¨ ®¡« áâì
int press(void); //¢ë§®¢ ¯¯ ¯® ª®¯ª¥ ¨ ®âà ¡®ªª ¦ ⨩
//¢®§¢à é ¥â ®¬¥à ¦ â ª®¯ª¨ ¨«¨ ®¡« áâ¨
};
#endif