Skip to content
Snippets Groups Projects
Commit 4b16eedd authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Add new WIN_ATEXIT to disable UIFC_XF_QUIT effect

parent d2b1a09d
No related branches found
No related tags found
No related merge requests found
...@@ -165,6 +165,7 @@ ...@@ -165,6 +165,7 @@
#define WIN_LEFTKEY (1LL<<32) /* Display left-arrow-key support indicator */ #define WIN_LEFTKEY (1LL<<32) /* Display left-arrow-key support indicator */
#define WIN_RIGHTKEY (1LL<<33) /* Display right-arrow-key support indicator */ #define WIN_RIGHTKEY (1LL<<33) /* Display right-arrow-key support indicator */
#define WIN_BLANKOPTS (1LL<<34) /* Blank options are allowed (terminate list on NULL only) */ #define WIN_BLANKOPTS (1LL<<34) /* Blank options are allowed (terminate list on NULL only) */
#define WIN_ATEXIT (1LL<<35) /* Do not exit this because UIFC_XF_QUIT is set - for non-exiting menus */
#define WIN_MID WIN_L2R|WIN_T2B /* Place window in middle of screen */ #define WIN_MID WIN_L2R|WIN_T2B /* Place window in middle of screen */
#define WIN_GET WIN_COPY #define WIN_GET WIN_COPY
......
...@@ -1145,8 +1145,8 @@ int ulist(uifc_winmode_t mode, int left, int top, int width, int *cur, int *bar ...@@ -1145,8 +1145,8 @@ int ulist(uifc_winmode_t mode, int left, int top, int width, int *cur, int *bar
gotkey=0; gotkey=0;
textattr(((api->lbclr)&0x0f)|((api->lbclr >> 4)&0x0f)); textattr(((api->lbclr)&0x0f)|((api->lbclr >> 4)&0x0f));
gotoxy(s_left+lbrdrwidth+2+left, s_top+y); gotoxy(s_left+lbrdrwidth+2+left, s_top+y);
if((api->exit_flags & UIFC_XF_QUIT) || dyn_kbwait(mode) || (mode&(WIN_POP|WIN_SEL))) { if(((api->exit_flags & UIFC_XF_QUIT) && !(mode & WIN_ATEXIT)) || dyn_kbwait(mode) || (mode&(WIN_POP|WIN_SEL))) {
if(api->exit_flags & UIFC_XF_QUIT) if((api->exit_flags & UIFC_XF_QUIT) && !(mode & WIN_ATEXIT))
gotkey = CIO_KEY_QUIT; gotkey = CIO_KEY_QUIT;
else if(mode&WIN_POP) else if(mode&WIN_POP)
gotkey=ESC; gotkey=ESC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment