Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

GUI toolkits

Name: Anonymous 2009-07-18 14:48

So I've been looking at learning toolkits recently. There are problems:

GTK looks one too overcomplicated, and the documentation is only ever half-finished.

Tk applications look like shit.

Qt tutorials (namely The Independent Qt Tutorial) are self-righteous and use an IDE.

Does /prog/ have any tips?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-07-18 14:49

wxWidgets



_________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Our eyes are made to see forms in light; light and shade reveal these forms; cubes, cones, spheres, cylinders or pyramids are the great primary forms which light reveals to advantage; the image of these is distinct and tangible within us without ambiguity. It is for this reason that these are beautiful forms, the most beautiful forms. Everybody is agreed to that, the child, the savage and the metaphysician.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-07-18 14:57

If you need something simple try instead this http://en.wikipedia.org/wiki/FLTK



________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
We are subjects of law's empire, liegemen to its methods and ideals, bound in spirit while we debate what we must therefore do.

Name: Anonymous 2009-07-18 18:28

GUI toolkits were sent by Satan to tempt poor programmers into creating horrible, overcomplicated UIs. If your proposed UI is too complex to write, it's too complex to use.

There's your tip.

Name: Anonymous 2009-07-18 18:33

>>4
Thanks - I'm playing around with Prima.

I looked at wxWidgets but it's written in Sepples and doesn't compile for me for Perl.

Name: Anonymous 2009-07-18 18:34

>>1
Swing.
j/k swing sucks balls.  Best gui programming is with a wysiwyg type deal(vbasic, delphi, actionscript, ad nauseum), but then if you are doing any serious work you have to change language or whatever for the backend which sometimes means more trouble than its worth just to make front ends really easy

Name: Anonymous 2009-07-18 19:28

>>5
Prima
Oh, wow. It has a fixed-layout GUI form designer? Now there's a failure of colossal proportions. Good thing it has a clean, modern look to make up for it. Oh, wait....

Anyway, what the heck are you doing that needs all these tubbons?

Name: Anonymous 2009-07-18 20:46

>>7
So I'm reading a PDF about this thing:
The important part of any user interface toolkit is a mechanism that makes it easy to create interface facilities such as message boxes, e.g. file open and save, color, and font selection.
What. The. Hell. There should be a rule that for every dialog box you put in your program, you have to discard a toe. Displaying the same one twice counts twice. Of all the things that are never, ever good, dialog boxes are them.

First of all, message boxes are amazingly annoying — “Oh hi, I noticed you were trying to do something so I popped up a fucking window with a button that you need to click before you can do your thing.” Second, they're completely inept at their most basic task: ensuring that the user reads the message and takes appropriate action, if any. Hello: make it possible to dismiss dialogs without reading them, and people are going to do it. Display an unintrusive timed message if you have a message to deliver. Then it's actually going to stick around long enough to be read.

And Open/save dialogs? Who thought it was a good idea to completely disable the program when open/saving and to pop up a gimped mini-filer? If you're going to take over the program, just do it — replace the contents of the program screen with your bad filer. If you're going to think first, just use the normal system filer and let the program alone.

Color or font selection is best accomplished with a less intrusive interface (e.g. a static palette, which while ever-present doesn't mask the work area or disable input to it).

Why am I even reading this? It's like it was designed to make me rage.

Name: Anonymous 2009-07-19 20:20

Tk has looked almost passable ever since they got the Tile stuff, though the way it's built on Tcl and does things slightly differently than the rest of your code probably does is annoying, and makes building model-style widgets nonintuitive.

Realistically, what toolkit to use depends heavily on what language you're using. Programming an interface with GTK in C and programming it in Walla is hardly comparable, and the decision to use Qt could affect the design of your whole C++ application.

Name: Anonymous 2009-07-20 3:12

Use whatever is the native toolkit of your target platform. Cross-platform GUI toolkits are anything but.

Name: Anonymous 2011-02-03 0:25

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List