I have written a Console Application that is pretty complex. Now the person who I am writting it for asked me to make a GUI for it. In my head I thought "that easy huh?".
Anyways, I researched and asked some questions and I came down to WxWidgets and Win32 GUI. I have had a feel for both and just want to make sure that I am headed in the right direction.
In the project, the user enters the size of a AxB table that he wants and the program creates space for it in memory. To each cell of that table there are two values; a minimum, and a maximum. Then, with the values from that table, several other tables are created.
If anyone could lead me in the right direction, would be nice...
These are the two tutorials that I have almost completed:
struct TableMinMax
{
double min;
double max;
};
int main()
{
...
/* A bunch of code.... */
/* All of the functions are defined by me, they are not included here. */
switch(choice)
{
case 1:
missClassRate = permissibleMiss();
break;
case 2:
numClassT1 = numClass();
break;
case 3:
numAttributeT1 = numAttribute();
break;
case 4:
produceTable(numClassT1, numAttributeT1, missClassRate);
break;
}
/* Bunch of more code */
return 0;
}
What I want to do is turn that switch stament into a menu with a window with buttons and text boxes and all that sort of pretty GUI stuff. I have been able to make it using WxSmith in codeblocks but where I get stuck is this: (Sorry if not clear, I'll do my best....)
The menu prompts the user to enter two values to make a table, in this case I will say the values are A and B. So the user enters A and B into the menu window then hits the button to create the table. I need the program to create a table that is AxB. Basically to allocate the space in memory, I would like this table to look like an excell style table.Then the user enters all of the values into the table and the program reads all the values entered and does a bunch of calculations that I am not going to get into.
I have been able to do this for a console application so I know what the algorithm is and it runs fine. Just that part about the GUI and the table has got me.