Re: Getting started...
- From: Tristan Van Berkom <vantr touchtunes com>
- To: Thomas Cameron <tom ceisystems com>
- Cc: Evan Martin <martine cs washington edu>, gtk-app-devel-list gnome org
- Subject: Re: Getting started...
- Date: Fri, 09 Aug 2002 13:21:17 -0400
Hi there...
Since I'm blocking on a really tough bug right now
I'll take a break and give you a pointer.
If you look up Object Hierarchy in the api reference page
you'll see which objects inherit from which other objects;
for example:
GtkVBox inherits from
GtkBox which inherits from
GtkContainer which inherits from
GtkWidget
etc untill the GObject.
if you want to know what a GtkVBox can do ... well it can do everything
its parents can do.
GtkVBox *box;
/* ... */
gtk_container_add(GTK_CONTAINER(box), GTK_WIDGET(pizza));
// this should set your minimum size
gtk_widget_set_size_request(GTK_WIDGET(box), width, height);
Cheers and welcome!
-Tristan
Thomas Cameron wrote:
Evan,
Thanks for the answer. As I drew it out, the answer was obvious.
Again, thanks. Now, is there any way to tell the boxes what their
minimum size should be? What about a min/max size for the button. I'll
look it up in the API reference, but I don't think I saw any size
attributes for h/vboxes. Thanks!
Tom Cameron
-----Original Message-----
From: Evan Martin [mailto:martine cs washington edu]
Sent: Thursday, August 08, 2002 11:24 PM
To: Thomas Cameron
Cc: gtk-app-devel-list gnome org
Subject: Re: Getting started...
Thomas Cameron wrote:
The Navigation button, and status area will both be the same hight.
The
button will be to the left of the status area. I suppose my question
would be which container to use? What kind of frame, box, etc. can I
use, and tell it to only be so tall?
Put the button and the status area into an hbox, the first with
expand/fill = FALSE and the second with TRUE.
Then put the main display and that hbox into a vbox, with expand/fill =
TRUE for the main display and FALSE for the hbox.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]