Its me again...
StringWidth() can not return the width of a condensed DrawString(...,
true). This is very frustrating and not well designed - or do I miss
something?
Is there a plugin out there which may solve this issue?
Best,
Marcel
On 08.05.2006, at 20:08, Marcel wrote:
Thanks! This is fine so far...
Can I manipulate the Graphics object or the StringWidth()/DrawString
() methods to use the condensed text as default?
The problem is, that I can't use the condensed option of DrawString
() when I use three calls of DrawString() in a row. The problem is
very wired, but whenever the second string fits into its width it
doesn't draw the "..." and only the last string is condensed, the
others not. Doesn't look very nice.
:-(
Best,
Marcel
On 08.05.2006, at 15:39, [EMAIL PROTECTED] wrote:
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>
_______________________________________________
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>
_______________________________________________
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>