Solved

Boild font in TValueListEditor

Posted on 2003-11-04
3
662 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now