View Issue Details

IDProjectCategoryView StatusLast Update
0001415JEDI VCL00 JVCL Componentspublic2004-04-22 02:56
ReporterxerkanAssigned Touser72 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001415: bug in jvDBGrid
DescriptionWhen code exists in the event onGetBtnParams, the grid repaint continuously
Additional InformationCuando existe codigo en el evento onGetBtnParams, el grid se esta continuamente repintando
TagsNo tags attached.

Activities

user72

2004-03-03 09:20

  ~0003162

I can't reproduce this. Could you post the code you have in OnGetBtnParams?

xerkan

2004-03-04 03:44

reporter   ~0003172

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;

user72

2004-03-04 04:46

  ~0003174

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...

xerkan

2004-03-04 08:23

reporter   ~0003178

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

user72

2004-03-04 08:43

  ~0003183

Seems to be fixed, then

Issue History

Date Modified Username Field Change
2004-03-03 03:18 xerkan New Issue
2004-03-03 09:20 user72 Note Added: 0003162
2004-03-03 09:30 user72 Status new => feedback
2004-03-04 03:44 xerkan Note Added: 0003172
2004-03-04 04:46 user72 Note Added: 0003174
2004-03-04 08:23 xerkan Note Added: 0003178
2004-03-04 08:43 user72 Status feedback => resolved
2004-03-04 08:43 user72 Resolution open => fixed
2004-03-04 08:43 user72 Assigned To => user72
2004-03-04 08:43 user72 Note Added: 0003183
2004-04-22 02:56 user72 Status resolved => closed