Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS General Discussion » Word wrap + text elipsis bug? Collapse All
Subject Author Date
Anthony Spring Oct 27, 2006 - 9:22 AM

If I have a CExtGridCellString with the following text and styles set

CString buffer;
buffer.Append( _T("Text Text Text Text Text\r\n") );
buffer.Append( _T("Text Text Text Text\r\n") );
buffer.Append( _T("Text Text Text\r\n") );
buffer.Append( _T("Text Text\r\n") );
buffer.Append( _T("\r\nEND!!") );

pStringCell->TextSet( buffer );
pStringCell->ModifyStyle( __EGCS_NO_INPLACE_CONTROL | __EGCS_READ_ONLY | __EGCS_TEXT_ELLIPSIS );
pStringCell->ModifyStyleEx( __EGCS_EX_WRAP_TEXT );


And I click and drag the column border so that the first line of text wraps a bit the elipsis does not show up ( I assume because the text does not extend beyond the end of the cell ). However, the last line of text in the cell, instead of doing multiline text displays the square characters instead of the newlines as if wordwrap were not set.

If I remove __EGCS_TEXT_ELLIPSIS from the list of styles, then it works as expected.

Anthony Spring Oct 31, 2006 - 7:37 AM

I’ve e-mailed you a test project which exhibits the behavehior I describe.

Thanks.

Technical Support Nov 1, 2006 - 7:13 AM

We have just sent a reply via e-mail. We are sorry for the delay.

Technical Support Oct 30, 2006 - 12:21 PM

Unfortunately we failed to reproduce this bug. Would you send us a test project?