Line | |
---|
1 | // =============================================================== // |
---|
2 | // // |
---|
3 | // File : awt_prompt.hxx // |
---|
4 | // Purpose : prompt for text (macro-compatible) // |
---|
5 | // // |
---|
6 | // Coded by Ralf Westram (coder@reallysoft.de) in October 2017 // |
---|
7 | // http://www.arb-home.de/ // |
---|
8 | // // |
---|
9 | // =============================================================== // |
---|
10 | |
---|
11 | #ifndef AWT_PROMPT_HXX |
---|
12 | #define AWT_PROMPT_HXX |
---|
13 | |
---|
14 | #ifndef CB_H |
---|
15 | #include <cb.h> |
---|
16 | #endif |
---|
17 | |
---|
18 | // generic prompt for specifying some text (e.g. to rename something) |
---|
19 | // (use this instead of aw_input, it is macro-compatible) |
---|
20 | // |
---|
21 | // Note: maximum ONE prompt is visible! |
---|
22 | |
---|
23 | DECLARE_CBTYPE_FVV_AND_BUILDERS(ResultHandler, GB_ERROR, const char *); // generates makeResultHandler |
---|
24 | |
---|
25 | void AWT_activate_prompt(const char *title, const char *prompt, const char *defaultResult, const char *button, const ResultHandler& handle_result, const char *helpfile = NULp, const char *srt = NULp); |
---|
26 | |
---|
27 | #else |
---|
28 | #error awt_prompt.hxx included twice |
---|
29 | #endif // AWT_PROMPT_HXX |
---|
Note: See
TracBrowser
for help on using the repository browser.