Jump to content


Photo

Grid line color of the "empty area" is wrong if the grid has a checkbox column


  • Please log in to reply
2 replies to this topic

#1 Edwin

Edwin
  • Members
  • 43 posts

Posted 15 August 2017 - 06:40 PM

Hello,

 

I use next grid (NOT v6), my program is compiled with XE4 with the "Slate Classico" applied (which is a must).

 

Everything was good before I added a TnxCheckBoxColumn to the grid, but after that the color of the grid lines in the "empty area" become black which is incorrect (the correct color is gray).

 

the screenshot shown below should tell the details of the issue.

 

I wish you can help. Thanks.

 

2017-08-15_23h13_59.png



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 15 August 2017 - 08:23 PM

Hi,

Hi,

Try to add these 2 lines in NxCustomGridControl.pas, around line 2380

procedure TNxCustomGridControl.DrawGrid(ACol, ARow: Integer;
	ARect: TRect; LineColor: TColor);
begin
  with Canvas do
  begin
    Pen.Color := 0; // <---- new line
    Pen.Style := Graphics.psSolid; // <--- new line

Tell me if it works, and also if not causes any problem.
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.

#3 Edwin

Edwin
  • Members
  • 43 posts

Posted 16 August 2017 - 07:54 AM

@boki, 

It works, thank you for your always-in-time support!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users