Jump to content


Photo

Need to clarify for Some NextGrid code


  • Please log in to reply
1 reply to this topic

#1 WEI

WEI
  • Members
  • 11 posts

Posted 25 November 2006 - 06:32 PM

Hi, boki

In the method TNxCustomGrid.UpdateArrows of NxCustomGrid unit, line 1678:

CODE
      if NewPosition > CurPosition then
      begin
        case TargetColumn.Location of
          clAlone, clLeftSide: X := TargetColumn.Left + TargetColumn.Width;
          else X := TargetColumn.Left + TargetColumn.Width;
        end;
      end else
      begin
        X := TargetColumn.Left;
      end;


since both statement in the case TargetColumn.Location is the same, so will it be (remove case):

CODE
      if NewPosition > CurPosition then
      begin
          X := TargetColumn.Left + TargetColumn.Width;
      end
      else
      begin
        X := TargetColumn.Left;
      end;


or is it just missing something in the original code?

Regards,

WEI

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 27 November 2006 - 10:43 PM

Hello WEI,

This part of code is still under construction, and I will need to made some additional work there.

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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users