Subject: ListBox - text drawing
From: Marcel <[EMAIL PROTECTED]>
Date: Mon, 8 May 2006 15:28:10 +0200

Hello!

With the CellTextPaint() event I can draw the ListBox rows by myself. I do this quite often and it works very well. But now I am stuck with a problem...

I would like to draw a sentence into my ListBox cell with just one word set to bold. I enter the CellTextPaint() event with all needed info (where the word starts, where it ends [in characters]), but I don't know how to draw one word bold. I guess it isn't working with one DrawString() call, so I need three. But how do I know where to start painting with them... ???

Read the Graphics entry in the Language Reference. There are options like g.StringWidth that you will have to use

HTH,

Emile

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to