View Issue Details

IDProjectCategoryView StatusLast Update
0001837JEDI VCL00 JVCL Componentspublic2004-08-03 07:35
ReporteranonymousAssigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0001837: JvPageControl and Hiding/Showing Tab's
DescriptionWhen you have more than one Tab in a TJvPageControl and you toogle the visibility of one of the tabs, they are displayed on the first tab!

for example:
Drop a TJvPageControl on your form. Add two tabpages. Put on 1st tabpage a button and on the 2nd one a memo.

Now add a button with this code:
TabSheet2.Visible := not TabSheet2.Visible;

Start the application and click the button. You should see that the 2nd tabpage is displayed on the 1st one.

If you change tabpages once, everything works as expected.
TagsNo tags attached.

Activities

user72

2004-06-05 04:48

  ~0004475

You are using the wrong code to hide/show the tab. You should use
"TabSheet2.TabVisible := not TabSheet2.TabVisible" and then it will work. This is the same behavior as in a normal TPageControl and is caused by the fact that setting Visible for tabsheet's is the same as setting the Z-order of the page without changing the Z-order of the tab itself.

If you want to change the active tab, use code like "PageControl.ActivePage := TabSheet2" instead

anonymous

2004-06-05 06:58

viewer   ~0004477

No, I don't want TabVisible, I don't want to hide the entire tab, only its content! I meant the Visible property and as I said earlier, it works when you change the tabpage once.

user72

2004-06-06 09:44

  ~0004484

Using TTabSheet.Visible to hide the content won't work 100% because that's not the way TPageControl is designed. If you need to hide the content, I recommend dropping a client aligned panel on the tabsheet and toggle the panel's Visible property instead.

user72

2004-06-10 01:55

  ~0004526

Can we close this report? There is nothing we can do to "fix" it, AFAIK

obones

2004-08-03 07:35

administrator   ~0004895

This bug has not had any activity for more than a month, it is therefore considered closed.
To the original poster: If you think the issue is still there, even after having tested with the JVCL3, please create a new bug report.

Issue History

Date Modified Username Field Change
2004-06-05 03:39 anonymous New Issue
2004-06-05 04:48 user72 Note Added: 0004475
2004-06-05 06:58 anonymous Note Added: 0004477
2004-06-06 09:44 user72 Note Added: 0004484
2004-06-10 01:55 user72 Note Added: 0004526
2004-06-10 01:55 user72 Status new => feedback
2004-08-03 07:35 obones Status feedback => closed
2004-08-03 07:35 obones Note Added: 0004895