WinLib32 and tab controls

new topic     » topic index » view thread      » older message » newer message

What is the proper method to open a window with a tab control and 4 tabs, and
ensure that the controls for only the selected tab are visible?

I have a main window which has a menu item (Configure) which, when clicked:

setVisible(Window1,w32False)
setVisible(ConfigureWindow,w32True)

On the Configure window I have four controls:

TabControl96
cmdCancel
cmdApply
cmdSaveAndExit

When I select Configure from the main window, ConfigureWindow opens and
TabControl96 is visible.  However, the controls associated with all the tab items
(tbiOne, tbiTwo, tbiThree) are *all* visible.

I have tried various combinations of making it work as one might expect, such as
setting all of the subcontrol defaults to not visible and then making them
visible when the tbiXXXX is clicked, but nothing works as I would expect.

What I'm looking for is to have the focus set to a specific page (tbiOne) and
then to have only those controls which have tbiOne as a parent to be visible. 
Then, when I click on the other tab items, to have the original tab item's
controls disappear and the ones associated with the new tab show up. [Something
tells me I didn't really need to type this last paragraph.]

Again, is there an accepted way of handling the UI on such a design?

Thanks

Mike

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu