Solved

Boild font in TValueListEditor

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…

839 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