Adriaan van Os a écrit:
Has somebody worked with gpc on MinGW passing both -mwindows and -mconsole to create both a console box and GUI stuff ? Is a different thread needed for the GUI ?
To be precise, the grx demo I mentioned opens two windows. When you click on demo.exe, it opens first a text DOS box (console) which asks for a mode number. Then it opens a graphics window in this mode, leaving the text window open. From that point the keys from keyboard are caught only by the graphics window when it has the focus: the text window no more respond to them if it has the focus. When the program terminates both windows are closed at once.
Maurice