Re: Need tutorial on GtkHandleBox



While this may not be what you are hoping for, I would recommend you
look at libgdl, as it is a very good docking library for GTK (even if
its docs are a bit lacking...)

--
Andrew

On 03/08/2011, George Brink <siberianowl yahoo com> wrote:
> I am trying to do a dockable widget.
> I know it can be done with GtkHandleBox.
> Cannot define where my widget can be docked in main window.
>
> Now I have:
>
>      window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
>      hbox = gtk_hbox_new(FALSE, 0);
>      gtk_container_add(GTK_CONTAINER(window), hbox);
>
>      handlebox = gtk_handle_box_new();
>      gtk_handle_box_set_handle_position(handlebox, GTK_POS_TOP);
>      gtk_box_pack_start(GTK_BOX(hbox), handlebox, FALSE, TRUE, 0);
>
> This allows my widget to be docked only on the left side of main window.
> How to dock to the right/top/bottom sides? What should I use instead of
> GtkHBox for the initial widget placement?
> Also, I do not see callbacks in GtkHandleBox to catch the docking to a
> different sides of the window (in order to switch the orientation of
> widgets inside my handlebox).
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>


-- 
Andrew Higginson


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]