I'm launching OpenGL from a VBA module linked to an Excel spreadsheet which goes quasi-dormant (the quasi will become clear in a moment) once I enter glutMainLoop. I would like to be able to edit the Excel spreadsheet and observe corresponding changes in the OpenGL simulation. In this context, I have two issues:
Issue 1 (as John McLaughlin used to bark on his PBS show!): Currently, once within glutMainLoop, I can only make changes to Excel cells that have pulldown menus, but not cells that require keyboard input. I believe that this issue may be related to the lack of a multi-threading ability either withing glut or VBA (this is WAY above my Mech E pay grade). I'd like to know however, if there's a workaround.
Issue 2: When I make changes to the Excel cells with pulldown menus, the OpenGL window gets minimised, unless I move it to a second screen or outside the Excel window which is not convenient. I understand that this is typical Windows behaviour, but at the very least, is there an openGL command to maximise it again after the changes to the Excel spreadsheet, from within glutMainLoop?
I'd like to emphasise that Issue 1 above - the lack of ability to edit Excel cells requiring keyboard input once within glutMainLoop - is far more important.
Thanks in advance. I've added an image below that (hopefully!) describes what I'm trying to accomplish.