I am coding a program for an assignment in a course in c programming. We need to create a graphical interface using GTK. I need an array of 5 buttons and when each button is clicked it will run system("./some program done this semester");
I am not sure how to set up the array. I have a handle on most of the code but it is hard to find any tutorials on arrays of buttons/gtk/c
Just a little info on how to declare/use an array of buttons would be helpful.
1 reply to this topic
#1
Posted 22 November 2011 - 06:09 PM
|
|
|
#2
Posted 23 November 2011 - 06:43 AM
I would start by just dealing with a single button:
GtkButton
Linux Headquarters: GtkButton – Basic Button Widget
Then, once you're comfortable with that, realize that an array of buttons could be either a literal (gktbutton*)[5] or it could be something more like this: Guitar Tuner
GtkButton
Linux Headquarters: GtkButton – Basic Button Widget
Then, once you're comfortable with that, realize that an array of buttons could be either a literal (gktbutton*)[5] or it could be something more like this: Guitar Tuner
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









