Domain: ucdavis.edu
Stories and comments across the archive that link to ucdavis.edu.
Comments · 452
-
Re:D'oh. Submit button next to preview button.Actually, it is exactly the way that Gtk-- works.
Look over this example. You will have to delete the space the
/. keeps adding in the address. (Rob: this address is getting mangled by the length of line checker)In here I have used derived methods to take over motion_notify, button_pressed, button_released, exposure and configure. (Basically most of the common events.)
While at the same time I have attached connections from sliders, adjustments and buttons between methods in the various widgets. Therefore, rather than deriving new buttons that would alter data in another object (very bad OO), instead the object responsible for that data just provides methods which are later connected.
I agree that the notation of Gtk-- does leave a bit to be desired, however that is where we are working to make improvements.
Hopefully this clears things up for you.
--Karl
-
Summary of new features?There are a number of C++ bindings available. They each have different approachs to wrapping. Gtk-- with the straight wrapper, VDK with a more Borland type wrapper, and wx/Gtk with the wxWindows standard. Depending on how much or how little you wish to see Gtk code, take your pick.
Gtk-- (which I work on) is currently in beta after a rather long infancy period. We intend to release a 1.0 cut with the next month.
GL support for Gtk is very good. You can render direcly in a window or in a pixmap. See GtkGLArea for more details.
There is even a GL widget in the Gtk-- project. It will be a week or two before it is up to date with the gtk+ 1.2 (basically because it has the largest number of dependencies). If you are interested drop by the GtkGLArea-- website.
--Karl
Gtk-- Contributor