Just compare steps required to draw tab buttons, then manually hide and
show controls in response to tab selection with the following sequence
of 4 steps in POL C++ application:
// STEP 1: Declare tab control component
CTabCtrl m_tabCtrl;
// STEP 2: Attach tab control to the gadget
m_tabCtrl.Attach(MainTestGadget);
m_tabCtrl.SetStyle(CTabCtrl::TCS_ENABLED | CTabCtrl::TCS_DRAWBORDER);
// STEP 3: Add tabs to the control
m_tabCtrl.InsertTab("Tab 1");
m_tabCtrl.InsertTab("Tab 2");
// STEP 4: Attach controls to tabs
m_tabCtrl.AddControlToTab(0, MainButton1Button);
m_tabCtrl.AddControlToTab(0, MainLabel2Label);
m_tabCtrl.AddControlToTab(1, MainList4List);
m_tabCtrl.AddControlToTab(1, MainCheckbox5Checkbox);
Now the tab control on the form will automatically do all the work,
including controls switching.
______________________________________________
Best regards,
Maks Pyatkovskiy
> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:bounce-palm-dev-
> [EMAIL PROTECTED]] On Behalf Of Steve Mann
> Sent: Friday, January 17, 2003 12:13 AM
> To: Palm Developer Forum
> Subject: Re: Tabbed windows
>
> >In my Clock! application, I used a series of selector buttons, and
kept
> all
> >the controls on one form...
>
> That's certainly a simpler approach that individual buttons. I think
> I actually did that once, long ago and far away.....
>
> Regards,
> Steve Mann
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/