开发者

What is a way to fill a multiline editbox with line of text

开发者 https://www.devze.com 2023-01-02 16:43 出处:网络
What im after is a greyed out editbox you see at the bottom of s开发者_如何学运维ome programs.

What im after is a greyed out editbox you see at the bottom of s开发者_如何学运维ome programs. A list of results. Im having problems having the text properly formatted.

so starting from scratch, how is it usually done?

The filling of the half page sized editbox with text.

one big long string with line breaks?

Results->Text = System::Convert::ToString(Var) ;

that seems to be the only way i can input to the editbox but i cant seem to build a multiline string that that line will accept.


.NET or WinAPI? Don't add too much tags. In Win32 dialog template, I use the following styles to create such editbox: Auto HScroll false, Auto VScroll false, Horizontal Scroll false, Multiline true, Read Only true, Vertical Scroll true.

You can add new information by concatenating new text with existing. If you want new line, add "\n". Long lines are wrapped. To scroll down automatically post to this textbox WM_VSCROLL message with SB_BOTTOM parameter.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号