View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003989 | JEDI VCL | 00 JVCL Components | public | 2006-11-06 20:54 | 2007-03-08 15:19 |
Reporter | Kiriakos | Assigned To | remkobonte | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.20 | ||||
Target Version | Fixed in Version | ||||
Summary | 0003989: JvDocking - VSNet Style: Order of tabs is not preserved in autohidden TabHosts | ||||
Description | To replicate: - Use the Advanced Demo setting the style to VSNet. - Create 4 VSNet Windows and dock them in at TabHost at the bottom of the form. - Reorder the tabs in the TabHost. - Minimize (auto hide) the TabHost - Notice that the order of tabs in the minimized TabHost is not the same as in the original TabHost. The problem is the following code in procedure TJvDockVSBlock.AddDockControl(Control: TWinControl); for I := 0 to PageControl.DockClientCount - 1 do begin AddPane(PageControl.DockClients[I], PaneWidth); TJvDockVSNETTabSheet(PageControl.Pages[I]).OldVisible := PageControl.DockClients[I].Visible; if PageControl.Pages[I] <> PageControl.ActivePage then PageControl.DockClients[I].Visible := False; end; This code makes the wrong assumption that PageControl.DockClients would be in the same order as PageControl.Pages. This is not the case if we reorder the pages. To correct the problem replace the code above with the following: for I := 0 to PageControl.Count - 1 do begin if (PageControl.Pages[I].ControlCount > 0) and (PageControl.Pages[I].Controls[0] is TCustomForm) then begin Form := TCustomForm(PageControl.Pages[I].Controls[0]); AddPane(Form, PaneWidth); TJvDockVSNETTabSheet(PageControl.Pages[I]).OldVisible := Form.Visible; if PageControl.Pages[I] <> PageControl.ActivePage then Form.Visible := False; end; end; You need to add a variable declaration in this method: Form : TCustomForm; | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2006-11-06 20:54 | Kiriakos | New Issue | |
2007-03-08 14:19 | remkobonte | Status | new => assigned |
2007-03-08 14:19 | remkobonte | Assigned To | => remkobonte |
2007-03-08 15:19 | remkobonte | Status | assigned => resolved |
2007-03-08 15:19 | remkobonte | Resolution | open => fixed |
2007-03-08 15:19 | remkobonte | Note Added: 0011299 |