Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 20:28

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 23 Jul 2020, 19:10 
Offline

Joined: 24 Aug 2018, 13:15
Posts: 46
Location: Brazil
When I use DrawColumnCell to paint a grid line that has a checkbox, the moment the line is painted, the checkbox disappears;

If I use the GetCellParams event, it works. But I wanted to do that at the DrawColumnCell event;

Exemple Video:
https://drive.google.com/file/d/14Lqwf0 ... sp=sharing

Example Project:
https://drive.google.com/file/d/1J54YYR ... sp=sharing


Top
 Profile  
 
PostPosted: 25 Jul 2020, 01:01 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

DefaultDrawDataCell is an outdated procedure. Used for Delphi 1 compatibility.
In this event, use the DefaultDrawColumnCell procedure.

Code:
    //DbGrideh1.DefaultDrawDataCell(Rect, COlumn.Field,State);
    DbGrideh1.DefaultDrawColumnCell(Rect, DataCol, Column, State);

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 27 Jul 2020, 12:38 
Offline

Joined: 24 Aug 2018, 13:15
Posts: 46
Location: Brazil
it worked perfectly, thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group