Lets say i have this function:
int main()
{
nio_console csl;
lcd_ingray();
clrscr();
nio_InitConsole(csl, 54, 30, 0, 0, 0, 15);
nio_DrawConsole(csl);
nio_drawing_enabled(&csl,TRUE);
nio_cursor_type(&csl, NIO_CURSOR_UNDERSCORE);
doSomething();
}
int doSomething()
{
const char * title = "Title";
const char * subtitle = "Sub titile";
const char * msg1 = "Element 1";
const char * msg2 = "Element 2";
char * defaultvalue = "default value";
char * value;
int len;
int value1 = 42;
int value2 = 1337;
char popup1_result[256];
char popup2_result[256];
if (show_1numeric_input(title, subtitle, msg1, &value1, -42, 9001) != 1) return 0;
sprintf(popup1_result, "%s:%d", msg1, value1);
show_msgbox(title, popup1_result);
}
(It's some code of the "ndless_popup_tests" example)
Than that results in a completely awkward screen.
If i use standard messagebox with title and content then it works perfectly and the box will be drawn over the console window.
However, using the used messagebox works so its just a graphical problem.
Is there a possibility to close the console window somehow and open it afterwards?