【发布时间】:2014-09-23 20:08:39
【问题描述】:
wxTextEntryDialog 将 '\n' 转换为 '\\n'
这段代码
dc.DrawText( "line a\nline b", 10, 100 );
输出我期望的结果
line a
line b
所以我编写了这个代码:
wxTextEntryDialog dlg(this,"","Name the flower");
dlg.ShowModal();
setName( dlg.GetValue().wc_str() );
dc->DrawText( getName(), 10, 10 );
然后输入
line a\nline b
显示屏显示
a行\nb行
在 Windows 上使用 wxWidgets v3.0.1
【问题讨论】:
标签: wxwidgets