Solved

TStringGrid column color

Posted on 1997-05-09
1
396 Views
Last Modified: 2010-04-06
I need my StringGrid to have one column which its text color is clRed. I tried modifying the canvas.font.color in the OnDrawCell event but it had no effect whatsoever.
What is the right way to do that ?
0
Comment
Question by:forger
1 Comment
 
LVL 2

Accepted Solution

by:
alona041797 earned 50 total points
ID: 1336071
You should make the grid OwnerDraw and then use OutText in the OnDrawCell event to print the text.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question