in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Help Me Understand

Last post 02-19-2008 9:30 AM by camainc. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-15-2008 12:33 PM

    Help Me Understand

     I have a bunch of tab pages that I want to show and hide using a menu. The main form opens with only one tab visible by default. If the user's level permits, they can view other tabs with information pertinent to their user level. I create the tabs at design time, and set their visible property to False. Then, at runtime, when a user selects a menu option to view one of the hidden tabs, I set the tab's visible property to true. My expectation was that the tab page would become visible, and now there would be two tabs in the tab control - the original tab, and the newly visible tab.

    What is happening is that the tab page becomes visible, but it is showing up under the tab of the original page, effectively replacing the contents (or showing above the contents) of the original tab! There is still only one tab visible! If I then hide the tab by selecting the menu option to hide it, which sets the tab's visible property to false again, the original tab remains visible, and the original tab page content is again visible.

     What is going on? Why doesn't the second tab, and its tab page, show up next to the original tab?
     

     

  • 02-19-2008 9:05 AM In reply to

    Re: Help Me Understand

     Is anyone at ComponentOne monitoring this forum? I can't believe there has not been any response in almost four days...

  • 02-19-2008 9:30 AM In reply to

    Re: Help Me Understand

     Ok, I finally figured out what is going on. It seems there is a property "TabVisible" as well as "Visible." I was using the "Visible" property - how stupid of me. I should have been using the "TabVisible" property. Why a tab page needs two "Visible" properties is beyond me, but I'm sure there is a good reason...

Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.