Page 1 of 1

Help understanding tab panels

Posted: Tue May 08, 2012 11:05 pm
by jalz
Hi all,

I've introduced the tab panel object on my layout. I've currently got 4 tabs for that object. Now reading up on tab panels they work similar to the menupick object(although I have not used this yet). Ive a found a tutorial which shows me using the case statement populate various bits of text on individual tabs. What I am hoping to achieve is to put a number if input fields unique to each tab. So I've dragged my 3 fields on the first tab, switched to the second tab and the fields for tab one are there. Reading another tutorial I can switch from one card to another so I can duplicate the card with tab 1, remove the input fields for this and apply new data entry fields for tab 2. This seems rather inefficient to me though as any card changes around the tabs would have to be made multiple times.

What is the best way I can utilise tab fields, with different input fields In various cards. Perhaps I can group the fields for tab 1 and make them invisible unless tab 1 is selected and do the same for tab2

Any advice would be great, just trying to get my head around this,

Thanks

Re: Help understanding tab panels

Posted: Tue May 08, 2012 11:54 pm
by mwieder
Perhaps I can group the fields for tab 1 and make them invisible unless tab 1 is selected and do the same for tab2
That's exactly what I do.

Code: Select all

on menuPick pChosen
  hide group 1 of me
  hide group 2 of me
  hide group 3 of me
  switch pChosen
    case "apples"
      show group 1 of me
      break
    case "oranges"
      show group 2 of me
      break
    case "kumquats"
      show group 3 of me
      break
  end switch
end menuPick

Re: Help understanding tab panels

Posted: Wed May 09, 2012 8:52 am
by jalz
Thanks for pointing me in the right direction again, thought I should do that logically but couldn't
find any samples, only the ones that take you to different cards.

I'll see how I get on :)