Re: Dynamically load widgets in a window



Joe Scaduto wrote:

Hey,

I am designing an application whose main window is split into 2
horizontal panes.  The left most pane is a column of buttons which
represent "services" of my application.  And the right most pane is a
scrolled window.  What I wish to do is when a user clicks a button the
scrolled window displays the proper set of widgets (service) for my
application.  If the user chooses another button the current service in
the scrolled window is removed and new service is populates the window. If there a common way or algorithm for doing this in Gtk....specifically
using Glade 2 to create service before hand.  Hypothetically lets say I
create dialogs which represent the services of my application is there a
way to populated the scrolled window with the set of widgets in my
dialog?  I would greatly appreciate any help.
Hello,

Maybe GtkNotebook with "show-tabs","show-border" set to FALSE will help ? You can pack your widget sets to different tabs and use gtk_notebook_set_current_page() on button click.

   Olexiy




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