View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006152 | JEDI VCL | 00 JVCL Components | public | 2013-06-18 12:13 | 2014-12-04 16:27 |
Reporter | Pedrault | Assigned To | obones | ||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | resolved | Resolution | suspended | ||
Product Version | 3.47 | ||||
Target Version | Fixed in Version | ||||
Summary | 0006152: TJvRollOut visibility of TWinControl instead of TControl | ||||
Description | The TJvRollOut executes the CheckChildVisibility method every time the control is collapsed or expanded. In this method, there is a filter applied to the child components which have to be hidden or shown. The only components handled are TWinControl. Since TControl has Visible property too, I think it should be more usefull to use it in this method! In my case, I've to handle the OnCollapse and OnExpand event to hide/show my component herited from a TCustomControl. It's a little tricky. | ||||
Additional Information | rocedure TJvCustomRollOut.CheckChildVisibility; procedure GetChildVisibility; var I: Integer; begin if FChildControlVisibility = nil then begin FChildControlVisibility := TStringList.Create; FChildControlVisibility.Sorted := True; end; for I := 0 to ControlCount - 1 do if TControl(Controls[I]).Visible then //Controls[I] is a TControl: test is useless begin FChildControlVisibility.AddObject(Controls[I].Name, Controls[I]); Controls[I].Visible := False; end; end; procedure SetChildVisibility; var I: Integer; begin if FChildControlVisibility <> nil then begin for I := 0 to FChildControlVisibility.Count - 1 do if FindChildControl(FChildControlVisibility[I]) <> nil then TControl(FChildControlVisibility.Objects[I]).Visible := True; FreeAndNil(FChildControlVisibility); end; end; begin if csDesigning in ComponentState then Exit; if Collapsed then GetChildVisibility else SetChildVisibility; end; | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-06-18 12:13 | Pedrault | New Issue | |
2013-12-13 10:55 | obones | Note Added: 0020729 | |
2013-12-13 10:55 | obones | Status | new => feedback |
2014-12-04 16:27 | obones | Note Added: 0021101 | |
2014-12-04 16:27 | obones | Status | feedback => resolved |
2014-12-04 16:27 | obones | Resolution | open => suspended |
2014-12-04 16:27 | obones | Assigned To | => obones |