문제

What im after is a greyed out editbox you see at the bottom of some 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top