![]() |
|
QA: How can I create controls with multiline text?
By Vassili Philippov, September 14, 2001.
QuestionI want to create an edit control with multiline text (or label control, or button control, etc). What should I do for that? AnswerYou should set Multiline flag in style and text in control should contain 'new line' symbols. For different controls you should use either \n or \r\n to divide lines. For button and edit controls use \r\n for all other control types use \n. Multiline style
Use dialog editor to set multiline style for your controls. Multiline textHere is a sample code that sets multiline text to different controls. Sample projectYou could download sample project (48 Kb) that shows working with multiline text in different controls. DiscussDiscuss this article. Here you can write your comments and read comments of other developers. |
|||||||||||||||||||||