home *** CD-ROM | disk | FTP | other *** search
- #ifdef DLG_GLOBAL
- #define DLG_EXTERN
- #else
- #define DLG_EXTERN extern
- #endif
- /* pointer to the dialog box */
- DLG_EXTERN FORMPTR dbox;
-
- /* radio entries for the dialog box */
- DLG_EXTERN RADIO_ENTRY r1[4]
-
- #ifdef DLG_GLOBAL
- = {"( ) None ",'N',1,2,1,3,
- "( ) Smart ",'S',2,2,2,3,
- "( ) Always ",'A',3,2,3,3,
- CWL_NULL}
- #endif
- ;
-
-
- DLG_EXTERN RADIO_ENTRY r2[4]
-
- #ifdef DLG_GLOBAL
- = {"( ) Hex ",'H',1,29,1,30,
- "( ) Decimal ",'D',2,29,2,30,
- "( ) Both ",'B',3,29,3,30,
- CWL_NULL}
- #endif
- ;
-
- DLG_EXTERN RADIO_ENTRY r3[4]
-
- #ifdef DLG_GLOBAL
- = {"( ) 25 ",'2',6,3,6,4,
- "( ) 43/50",'4',6,12,6,13,
- CWL_NULL}
- #endif
- ;
-
-
- /* strings to write to stats window */
- DLG_EXTERN char *rstr1[3]
- #ifdef DLG_GLOBAL
- = {"None","Smart","Always"}
- #endif
- ;
-
-
- DLG_EXTERN char *rstr2[3]
- #ifdef DLG_GLOBAL
- = {"Hex","Decimal","Both"}
- #endif
- ;
-
-
- DLG_EXTERN char *rstr3[2]
- #ifdef DLG_GLOBAL
- = {"25","43/50"}
- #endif
- ;
-
- DLG_EXTERN char *hotletters[7]
- #ifdef DLG_GLOBAL
- = {"NSA","HDB","24","T","O","C","e"}
- #endif
- ;
-
- int do_stats _PROTO_((FORMPTR form, int *entry));
-
- DLG_EXTERN char *text_mask
- #ifdef DLG_GLOBAL
- = "_______________"
- #endif
- ;
-
-
- DLG_EXTERN char opening_text[]
- #ifdef DLG_GLOBAL
- =
- "The following is a demo of The C Data Forms Library. This demo demonstrates\n"
- "a dialog box with radio and push buttons. You can use a mouse to make\n"
- "selections in any field.\n\n"
- #endif
- ;
-
-
- DLG_EXTERN char opening_text2[]
- #ifdef DLG_GLOBAL
- =
- "You can also move the dialog box around by grabbing the dialog's caption bar\n"
- "(labeled \"Dialog Box Demo\") with the mouse and holding the left mouse button\n"
- "down while moving the mouse."
- #endif
- ;
-
-
-
-
- /* define all field types in the dialog box */
-
- DLG_EXTERN FIELD_ENTRY fentry[]
- #ifdef DLG_GLOBAL
- = {CWL_RADIO,0,0,"",' ',0,0,NO_FIELD_OPTIONS,0,0,"",
- CWL_RADIO,0,0,"",' ',0,0,NO_FIELD_OPTIONS,0,0,"",
- CWL_LIST, 1,50,"",' ',0,0,NO_FIELD_OPTIONS,0,0,"",
- CWL_RADIO,0,0,"",' ',0,0,NO_FIELD_OPTIONS,0,0,"",
- CWL_INTEGER,6,28,"_____",' ',1,5,NO_FIELD_OPTIONS,0,WHITEONBLUE,"5#",
- CWL_BUTTON, 8,2, "",' ',0,0,NO_FIELD_OPTIONS,0,0,"",
- CWL_BUTTON,8,11,"",' ',0,0,NO_FIELD_OPTIONS,0,0,"",
- CWL_BUTTON,8,24,"",' ',0,0,NO_FIELD_OPTIONS,0,0,"",
- FIELDEND}
- #endif
- ;
-
- DLG_EXTERN int shadow_up
- #ifdef DLG_GLOBAL
- = '▄'
- #endif
- ;
-
- DLG_EXTERN int shadow_under
- #ifdef DLG_GLOBAL
- = '▀'
- #endif
- ;
-
-
- DLG_EXTERN WPOINTER diagw,statw,helpw,opening_window;
- DLG_EXTERN int tabwidth
- #ifdef DLG_GLOBAL
- =8
- #endif
- ;
-
-
- DLG_EXTERN int prev_field;
- DLG_EXTERN WPOINTER vhelp_window;
-
- CWL_VOID write_button_shadow _PROTO_((int row, int col, int len));
- int show_help();
- CWL_VOID change_stats _PROTO_((FORMPTR, int, int));
- int display_choice _PROTO_((POPUP_MENU_PTR p, unsigned sel));
- int focus_it _PROTO_((FORMPTR,int *));
- int unfocus_it _PROTO_((FORMPTR,int *));
- POPUP_MENU_PTR popup_init();
-
- DLG_EXTERN VBLOCKPTR v;
- DLG_EXTERN char **files;
- DLG_EXTERN POPUP_MENU_ENTRY_PTR dentry;
- DLG_EXTERN unsigned menu_colors2[5];
- DLG_EXTERN POPUP_MENU_PTR pop;