-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathForm.h
33 lines (24 loc) · 1.26 KB
/
Form.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
#ifndef __FORM_H__
#define __FORM_H__
void * new_form (FRAME, char * target, char * action, const char * method, char *enctype);
void form_finish (TEXTBUFF);
void destroy_form (FORM, BOOL all);
INPUT new_input (PARSER, WORD width);
INPUT new_tarea (PARSER, const char * beg, const char * end, UWORD nlines);
BOOL input_isEdit (INPUT);
void input_draw (INPUT, WORD x, WORD y);
void input_disable (INPUT, BOOL onNoff);
WORD input_handle (INPUT, PXY, GRECT *, char ***);
WORDITEM input_activate (INPUT, WORD slct);
WORDITEM input_keybrd (INPUT, WORD key, UWORD state, GRECT *, INPUT * next);
INPUT form_check (TEXTBUFF, const char * name, char * value, BOOL checkd);
INPUT form_radio (TEXTBUFF, const char * name, const char * value, BOOL checkd);
INPUT form_buttn (TEXTBUFF, const char * name, const char * value,
ENCODING, char sub_type);
INPUT form_text (TEXTBUFF, const char * name, char * value, UWORD maxlen,
ENCODING, UWORD cols, BOOL readonly, BOOL is_pwd);
INPUT form_selct (TEXTBUFF, const char * name, UWORD size, BOOL disabled);
INPUT selct_option (TEXTBUFF, const char * text, BOOL disabled,
ENCODING, char * value, BOOL selected);
void selct_finish (TEXTBUFF);
#endif /* __FORM_H__ */