View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002490 | JEDI VCL | 00 JVCL Components | public | 2005-01-08 08:41 | 2005-02-04 03:13 |
Reporter | anonymous | Assigned To | obones | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.00 BETA 2 | ||||
Target Version | Fixed in Version | 3.00 | |||
Summary | 0002490: TjvCalcEdit problems | ||||
Description | Found two problems with the TjvCalcEdit component. 1. I'm trying to use several components from the "jv Edits" tab. Since i need to treat them uniformly, i'm typecasting them to the common ancestor : TCustomEdit. Everything is ok when i'm using tJvCalcEdit directly, but casting them to TCustomEdit, the Text property doesn't work. Example : ... var myEdit : TCustomEdit; myJVCalcEdit : TJvCalcEdit; ... myEdit := TCustomEdit(myJvCalcEdit); ... myJVCalcEdit.text := '123'; // works ok myEdit.text := '456'; //doesn't work... the assignment got ignored ... This is probably caused by the component overriding the property or something, but I haven't delved into the code yet. Workaround at the moment is special-case handling of TjvCalcEdit... would love to get rid of this hack...:) ... for i:= tcomponentlist.items[i].count-1 do begin myEdit := tcomponentlist.items[i] as tCustomEdit; if (myEdit is tJvCalcEdit) then begin //special case end else begin //normal case end; end; ... 2. Event onChange() doesn't fire when users are entering data through the 'calculator' instead of typing it directly. This should be easy enough to verify. | ||||
Additional Information | Tested on Delphi 6.02 | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2005-01-08 08:41 | anonymous | New Issue | |
2005-02-04 03:13 | obones | Status | new => resolved |
2005-02-04 03:13 | obones | Fixed in Version | => 3.00 |
2005-02-04 03:13 | obones | Resolution | open => fixed |
2005-02-04 03:13 | obones | Assigned To | => obones |
2005-02-04 03:13 | obones | Note Added: 0006389 |