1. EuGTK: GtkBox vs GtkHBox, GtkVBox
- Posted by Jerry_Story Jan 20, 2012
- 1371 views
It used to be GtkHBox and GtkVBox. Now it's just GtkBox. What's with that? How can I tell it to make the boxes horizontal or vertical?
2. Re: EuGTK: GtkBox vs GtkHBox, GtkVBox
- Posted by Jerry_Story Jan 20, 2012
- 1344 views
Found it.
hbox = create(GtkBox,0) -- is horizontal vbox = create(GtkBox,1) -- is vertical
3. Re: EuGTK: GtkBox vs GtkHBox, GtkVBox
- Posted by irv Jan 23, 2012
- 1322 views
That kind of change was done on several of the GTK widgets; instead of having separate horiz and vert objects, they now make them a part of the GtkOrientable class, where a 1 = vert, 0 = horiz.
Since EuGTK defaults undeclared parameters to 0, if you don't specify anything, you'll get the horiz version of whatever control you are creating. I suppose it is a bit confusing when you don't see the parameter. Perhaps I should add the GTK_ORIENTATION_HORIZONTAL or GTK_ORIENTATION_VERTICAL parameter to the demos to make this more apparent. But that's a lot of extra typing. I hate cluttered code. When it begins to look like C, I start over...