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 |
|
Krustys Donuts
|
Mar 2, 2006 - 4:01 PM
|
Hello-
Do you have plans to implement a multi-line string grid cell? Essentially CExtGridCellString but with the ability to contain multiple lines of text.... that would be super userful.
|
|
Technical Support
|
Mar 3, 2006 - 9:23 AM
|
We already added a __EGCS_EX_WRAP_TEXT extended cell style make the cell text multiple. The number of wrapped lines depends on the column width and on how long the text is. Of course, CRLF (\r\n) is also supported. This update will be available in Prof-UIS 2.53 (to be released next week). If need the update right now, please contact us by e-mail.. So, to make the cell multiline, it will be enough to apply the __EGCS_EX_WRAP_TEXT style: pCell->ModifyStyleEx( __EGCS_EX_WRAP_TEXT ); Do not forget to use the CRLF special symbol, e.g.: pCell->TextSet(
_T("Line1\r\nLine2\r\nLine3\r\nLine4\r\nLine5")
); When you are typing in some text in the editor and want to insert a new line, just use the Ctrl+Enter key combination, which is standard for multiline edit controls.
|
|
Finn Arildsen
|
May 14, 2006 - 1:07 PM
|
Does the row height of the row with the multi-line cell change to fit the text - or how does that work?
|
|
Technical Support
|
May 15, 2006 - 7:19 AM
|
The best fit and proportional resizing features for grid rows and columns are added only in Prof-UIS 2.54 (will be released soon). The best fit feature for columns is demonstrated in the ReportGrid sample where you can best fit any column by invoking the Best Fit context menu command.
|
|