Look at g.StringWidth to find the lenght of the first text and
calculate the rest!
Op 8-mei-2006, om 15:28 heeft Marcel het volgende geschreven:
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... ???
Any help would be wonderful!
Best,
Marcel
_______________________________________________
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>