Solved

Boild font in TValueListEditor

Posted on 2003-11-04
3
685 Views
Last Modified: 2013-12-03
I have a TValueListEditor that I want to make the font in some of the cells bold.

How can I do that? (in a listview I have a OnCustomDrawSubitems but not on this ValueListEditor)

0
Comment
Question by:wqclatre
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
ThoseBug earned 250 total points
ID: 9681136
procedure TForm1.ValueListEditor1DrawCell(Sender: TObject; ACol,
  ARow: Integer; Rect: TRect; State: TGridDrawState);
begin
  if ValueListEditor1.Cells[acol,arow]='sometext' then
  (sender as TVAlueListEditor).Canvas.Font.Style := [fsbold];

  (sender as TVAlueListEditor).Canvas.TextRect(Rect, Rect.Left + 2, Rect.Top + 2,ValueListEditor1.Cells[acol,arow]);

end;

//ok i supose you have a valuelisteditor with 'sometext'  in some cell

regards.
0
 
LVL 3

Expert Comment

by:ThoseBug
ID: 9693438
it' does'nt work?
0
 
LVL 2

Author Comment

by:wqclatre
ID: 9693577
Works fine.. Have not been able to test it until 10 minutes agao
0

Featured Post

Independent Software Vendors: 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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

690 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