Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TStringGrid background color when custom drawing


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
Omar Reis

Posts: 29
Registered: 11/7/04
TStringGrid background color when custom drawing  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 31, 2017 6:22 AM
I want a TStringGrid with black background and custom cell drawing.
I managed that by:
1- setting DefaultDrawing to false
2- setting Options.AlternatingRowBackground to true
3- Handling OnDrawColumnBackground, OnDrawColumnHeader and OnDrawColumnCell

The cell and columns are ok,
however the scrowbars and the grid background
outsite the visible columns are white.

How to change the grid background color (outside the column area) ?

Is there a way to hide the thin scrollbars ? or to change the colors ?

Using Delphi 10.2
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02