Re: Changing the GUI dynamically created by glade

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

 



But you dont need to edit the number of rows in the vbox.
You can make in Glade like this:

topwindow:
- vbox0
- - header
- - vbox1
- - - hbox0
- - - hbox1
- - - hbox2
- - - ...
- - footer

Then get the instance of vbox1 and add as many hbox as you want.

Hope, it helps.
Diego



2009/5/1 saurabh gupta <saurabhgupta1403@xxxxxxxxx>:
> hello all,
>
> I am using glade-3 and gtk+ library in C to build GUIs. I have a
> special requirement in creating the GUIs.
>
> I need to create window which will have the variable number of
> horizontal blocks. In short, the layout of the window will be like :
>
>
> |-------------------------|
> |    header           |
> |------------------------ |
> | horizontal box 1  |
> |------------------------ |
> | horizontal box 2  |
> |        .                |
> |        .                |
> |        .                |
> |        .                |
> |------------------------ |
> | footer of window |
> |-------------------------|
>
>
> Now, the number of horizintal boxes are decided on run time. Basically
> all horizontal boxes are identical in layout and differ only in label
> and the callback function connection.
>
> What I needed is to create a GUI in glade which will decide the layout
> of header, one horizontal box and the footer of the GUI. I created
> *vbox* with three items in glade. One item contains header, another
> the layout of horizontal box and the third one the footer. Now, at run
> time, I want to replicate the horizontal boxes with its full
> properties (of horizontal boxes) and its child widgets. I load the xml
> file of glade, but I am stuck at how to replicate the horizontal
> boxes. Basically, the need is to replicate the boxes so that all the
> properties are replicate. Glade is needed because the layout of
> horizontal box can change at later stage.
>
>
> I guess there would be some method to implement this and get the whole
> horizontal widget from glade file and then resize the number of items
> of original *vbox* and inserting the new horizontal boxes.
>
> Any help will be highly appreciated.
>
>
> Thanks
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux