Re: GUI Programming In C++?
Well, I believe Apple's GUI toolkit is called Cocoa, so you might want to read up on that.
There are also a number of cross-platform toolkits you may wish to look into: GTK+, WxWidgets, FLTK, etc. Of these GTK+ is the only one I have direct experience with.
GUI programming is "event-based", meaning that your main function does some initial setup and then calls an event loop function from the toolkit which takes over all execution of the program; and all further processing on your end is done via callback functions when events (such as a screen redraw or a mouse move) occur.
Re: GUI Programming In C++?
Quote:
Originally Posted by Lindley
Well, I believe Apple's GUI toolkit is called Cocoa, so you might want to read up on that.
Cocoa is an Objective-C framework (could they have picked an uglier language?), although it is possible to incorporate C++ code into a Cocoa application (using "Objective-C++" as its called). Carbon is Apple's GUI framework for C/C++, but it seems to be less supported these days, if the decision not to give it 64-bit support is any indication.
At any rate, a cross-platform library such a wxWidgets is probably the way to go.
To the OP: For future reference, the only thing posting your e-mail address is going to accomplish is to direct boatloads of spam to your inbox. This is a forum and people can answer you directly without resorting to e-mail.
Re: GUI Programming In C++?
Quote:
Originally Posted by Hermit
At any rate, a cross-platform library such a wxWidgets is probably the way to go.
Yes, I agree.
Re: GUI Programming In C++?
Hello Hermit, do you have any good reference beside the official documentation for WxWidgets ?
Thanks.
Re: GUI Programming In C++?
wxWidgets lists a couple of books on their website:
http://www.wxwidgets.org/
I'm partial to "Cross-Platform GUI Programming with wxWidgets".
Re: GUI Programming In C++?