programming tip needed



Hello

I am making an installer for a particular software using gtk. The
installer consists of 6 pages. Page two has two options, the path that is
followed after page 2 is determined by which option is selected. If option
1 is selected (by radio button) then the path is

page1 <-> page2 <-> page4 <-> page5 <-> page6
              ^
              |
               -> page3 <-> page5 <-> page6

I have implemented this as such. There is a main window window1, and a
main vbox vbox1. All the pages are vbox1 - vbox6, I create all the widgets
for all the pages and pack them in the respective vbox for the page, but
initally I only show vbox1, all the other pages are hidden. When next
button is clicked, vbox1 is hidden and vbox2 is shown. Similarly when back
button is clicked the current vbox is hidden and the previous one is
shown. The vbox to show or hide is passed to the signal handler of the
next and back button. The scheme works okay except when I travel through
path 2 , at page5 the back button takes me to page4 and not page5.

How do i solve this? Any pointer to similar software, from which I get get
idea of how to implement this will be very helpful.

Thanks,

Sukanta

--
Sukanta Kumar Hazra       eng70884@leonis.nus.edu.sg
----------------------------------------------------
" Testing, what is that? If it compiles it is good, 
  if it boots its perfect " ....... Linus Torvalds
----------------------------------------------------



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