用文本行填充多行编辑框的方法是什么

发布于 2024-09-05 04:59:22 字数 224 浏览 2 评论 0原文

我所追求的是您在某些程序底部看到的灰色编辑框。 结果列表。 我在文本格式正确时遇到问题。

那么从头开始,通常是如何完成的呢?

用文本填充半页大小的编辑框。

一根带换行符的大长字符串?

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

这似乎是我可以输入编辑框的唯一方法 但我似乎无法构建该行将接受的多行字符串。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

聽兲甴掵 2024-09-12 04:59:22

.NET 还是 WinAPI?不要添加太多标签。在Win32对话框模板中,我使用以下样式来创建这样的编辑框:Auto HScroll false,Auto VScroll false,Horizo​​ntal Scroll false,Multiline true,Read Only true,Vertical Scroll tr​​ue。

您可以通过将新文本与现有文本连接来添加新信息。如果需要换行,请添加“\n”。长线被包裹。要自动向下滚动,请使用 SB_BOTTOM 参数向此文本框发布 WM_VSCROLL 消息。

.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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文