benjorino
March 13th, 2009, 01:54 PM
Hi, I'm creating a program that has a (Very simple) GUI and needs to take some very basic user input. The GUI was written using the CImg library which is designed for image processing, but for the simple point-and-click interface I need it's easy enough to adapt (Note: CImg is crucial to the rest of the program, I didn't choose it specifically to write a GUI, I just used it because I'm already using it and I'm familiar with it).
The problem is that I need to be able to accept simple numerical input from the user, and while CImg can check the state of individual keys, it can't really be easily adapted for this purpose (at least I can't work out how to...).
So my question is this:
What is the simplest way that I can / library that I can use to create a pop-up box that the user can enter a number into, that will then be stored as a variable in my code?
I don't have time (deadline very soon!) to learn anything too complicated, I'm just looking for a simple solution.
The problem is that I need to be able to accept simple numerical input from the user, and while CImg can check the state of individual keys, it can't really be easily adapted for this purpose (at least I can't work out how to...).
So my question is this:
What is the simplest way that I can / library that I can use to create a pop-up box that the user can enter a number into, that will then be stored as a variable in my code?
I don't have time (deadline very soon!) to learn anything too complicated, I'm just looking for a simple solution.