View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001534 | JEDI VCL | 00 JVCL Components | public | 2004-03-25 15:06 | 2004-03-26 07:55 |
Reporter | anonymous | Assigned To | AHUser | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0001534: TJvCustomEdit.UpdateEdit needs check to see if Owner is assigned | ||||
Description | I am using one of the edit controls as an editor for TVirtualStringTree, when used like this the component doesnt have an editor - pressing a key causes Access Violations. | ||||
Additional Information | Can be fixed by changing the following method as shown.. procedure TJvCustomEdit.UpdateEdit; var I: Integer; begin if Assigned(Self.Owner) then // added to stop AV when no owner.. for I := 0 to Self.Owner.ComponentCount - 1 do if Self.Owner.Components[I] is TJvCustomEdit then if ({(Self.Owner.Components[I].Name <> Self.Name)} (Self.Owner.Components[I] <> Self) and // (ahuser) this is better ((Self.Owner.Components[I] as TJvCustomEdit).GroupIndex <> -1) and ((Self.Owner.Components[I] as TJvCustomEdit).fGroupIndex = Self.FGroupIndex)) then (Self.Owner.Components[I] as TJvCustomEdit).Caption := ''; end; | ||||
Tags | No tags attached. | ||||