Solved

Boild font in TValueListEditor

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 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

12 Experts available now in Live!

Get 1:1 Help Now