Patrick Finnegan wrote:
But, isn't the point of programming languages to
make it easier for the
programmer to create programs? Computers are fast; people are slow.
I'd agree with that.
Have you ever tried writing code against GTK
(not-quite-OOP jammed into
C) vs Qt (real OOP using C++)? GTK is such a pile of sh*t to try to
write code for, in my opinion.
Try the Windows API some time. That's even more fun.
I've been using wxWidgets for a while -- mainly because it abstracts all
this bullcrap into a common interface. You can change platforms and the
code remains the same -- normal apps will work fine on
GTK+{$UNIX_FLAVOUR}, Windows 32/64-bit using the native API, and Mac OS X.
Even applications that make use of hardware can be made portable across
all three platforms -- LibUSB runs native on OSX and Linux, and there's
a port for Windows too.
Creating, say, a window is a piece of cake -- extend the wxFrame class,
add your components to the constructor (stuff like "myTextBox = new
wxTextBox(this)"), and add event handler functions to deal with what the
user does.
The one thing I haven't found yet is an equivalent for Delphi's
"Application.ProcessMessages()" function -- which basically forces the
VCL to run the event handler / window refresh loop again. Very handy in
long do-while or for-next loops. It's probably there, though -- just
that I haven't RTFM'd enough to find it in the wxWidgets manual.
--
Phil.
classiccmp at philpem.me.uk
http://www.philpem.me.uk/