View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001837 | JEDI VCL | 00 JVCL Components | public | 2004-06-05 03:39 | 2004-08-03 07:35 |
| Reporter | anonymous | Assigned To | |||
| Priority | normal | Severity | trivial | Reproducibility | always |
| Status | closed | Resolution | open | ||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0001837: JvPageControl and Hiding/Showing Tab's | ||||
| Description | When 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. | ||||
| Tags | No tags attached. | ||||
|
|
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 |
|
|
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. |
|
|
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. |
|
|
Can we close this report? There is nothing we can do to "fix" it, AFAIK |
|
|
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. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2004-06-05 03:39 | anonymous | New Issue | |
| 2004-06-05 04:48 |
|
Note Added: 0004475 | |
| 2004-06-05 06:58 | anonymous | Note Added: 0004477 | |
| 2004-06-06 09:44 |
|
Note Added: 0004484 | |
| 2004-06-10 01:55 |
|
Note Added: 0004526 | |
| 2004-06-10 01:55 |
|
Status | new => feedback |
| 2004-08-03 07:35 | obones | Status | feedback => closed |
| 2004-08-03 07:35 | obones | Note Added: 0004895 |