Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Johnny Booth
|
Oct 24, 2007 - 12:21 PM
|
It seems that the following code is wrong in CExtLabel.cpp @ line 238:
You have: bool bForceSingleLine = ( strText.Find( _T("\n") ) >= 0 ) ? true : false;
This should be: bool bForceSingleLine = ( strText.Find( _T("\n") ) >= 0 ) ? false : true;
If the text HAS a linefeed, then you wouldn’t want to force it to a single line.
The way you have it, any static text item that has a linefeed in the string gets drawn incorrectly (all on one line).
|
|
Technical Support
|
Oct 26, 2007 - 7:48 AM
|
You absolutely right, it’s our fault. Thank you for reporting this. We have just updated the drawing code as you suggested.
|
|