View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001415 | JEDI VCL | 00 JVCL Components | public | 2004-03-03 03:18 | 2004-04-22 02:56 |
| Reporter | xerkan | Assigned To | user72 | ||
| Priority | normal | Severity | block | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0001415: bug in jvDBGrid | ||||
| Description | When code exists in the event onGetBtnParams, the grid repaint continuously | ||||
| Additional Information | Cuando existe codigo en el evento onGetBtnParams, el grid se esta continuamente repintando | ||||
| Tags | No tags attached. | ||||
|
|
I can't reproduce this. Could you post the code you have in OnGetBtnParams? |
|
|
This is the code that I have at present in the event, before updating the JVCL3 to the JVCL3-2004-03-03.zip it was going perfectly. procedure TfrmActEconomicas.dbgDatosGetBtnParams(Sender: TObject; Field: TField; AFont: TFont; var Background: TColor; var SortMarker: TSortMarker; IsDown: Boolean); begin if IsDown or (dbgDatos.SortedField=Field.FieldName) then begin SortMarker:=smUp; if dbgDatos.SortedField<>Field.FieldName then begin cmbOrdenacion.ItemIndex:=Field.Index+1; OrdenarTabla(Field.FieldName); dbgDatos.SortedField:=Field.FieldName; end; end else SortMarker:=smNone; end; |
|
|
I can't really tell from the code if it the cause of the error. Could be something in OrdenarTabla() that forces the grid to redraw, calling OnGetBtnparams again and again. PS1 BTW, are you aware that the IsDown parameter defines the pressed state of the title button. I.e. if IsDown is true, the button is pressed. IsDown has nothing to do with the Sortmarker. AAMOF, tis could be the cause of your problems... PS2 The new signature for OnGetBtnParams uses the identifier ASortMarker instead of SortMarker. I don't think it has anything to do with this, but it might be nice to know... |
|
|
I have turned it is to download the last version of the Daily zips and seemingly in this version the problem is not, the surest thing is that some thing was changing into the version that download me and there corrected |
|
|
Seems to be fixed, then |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2004-03-03 03:18 | xerkan | New Issue | |
| 2004-03-03 09:20 |
|
Note Added: 0003162 | |
| 2004-03-03 09:30 |
|
Status | new => feedback |
| 2004-03-04 03:44 | xerkan | Note Added: 0003172 | |
| 2004-03-04 04:46 |
|
Note Added: 0003174 | |
| 2004-03-04 08:23 | xerkan | Note Added: 0003178 | |
| 2004-03-04 08:43 |
|
Status | feedback => resolved |
| 2004-03-04 08:43 |
|
Resolution | open => fixed |
| 2004-03-04 08:43 |
|
Assigned To | => user72 |
| 2004-03-04 08:43 |
|
Note Added: 0003183 | |
| 2004-04-22 02:56 |
|
Status | resolved => closed |