Solved

Boild font in TValueListEditor

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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
HTML text in the body of an email (delphi code) 12 210
Wincontrol not (correctly) drawn 15 48
shape, triangle, dbctrlgrid 3 33
SQL Server Express automatically execute SQL or SP 8 34
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…

733 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