Jump to content


Photo

2 small fixes


  • Please log in to reply
1 reply to this topic

#1 IVO GELOV

IVO GELOV
  • Members
  • 7 posts

Posted 29 April 2009 - 12:54 PM

I suggest 2 small fixes:

1. Fix wrong painting of header captions with Alignment = taCenter when the column is resized below the caption text width

Change the code on line 631 in file "Sources/Next Grid/NxDisplays.pas" from

CODE
taCenter: TextPos.X := R.Left + (R.Right - R.Left) div 2 - CaptionWidth div 2;


to

CODE
taCenter: if CaptionWidth<(R.Right - R.Left) then TextPos.X := R.Left + ((R.Right - R.Left - CaptionWidth) shr 1);


2. Fix the bug with not calling DoDeselectCell from DeleteRow procedure

Change the code on line 940 in file "Sources/Next Grid/NxGrid.pas" from

CODE
if SelectedRow >= FLastVisibleRow then SetSelectedCell(SelectedColumn, FLastVisibleRow);


to

CODE
  if SelectedRow >= FLastVisibleRow then
  begin
      DoDeselectCell(SelectedColumn,SelectedRow);
      SetSelectedCell(SelectedColumn, FLastVisibleRow);
  end;


#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 29 April 2009 - 05:45 PM

Hello Ivo,

Thank you, I have include them in official release.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users