wxButton的标签在dialogblock里设有换行后,wxButton就有了多行属性,multline,但并没有专门的多行属性,不知道什么原理,google之,找到下面的内容,感觉不错,记录之:
Initial Comment:
The label string as an ctor argument of wxButton (for MSW) triggers the BS_MULTILINE style (by looking for
'/n' in the label string). SetLabel() does not.
Hence, if button labels are initialized, e.g. with wsEmptyString in the ctor, SetLabel() will not break
label lines. Workarount: Initialize the label with wxT("/n") in ctor.
Great toolkit, yeah !!
wxWidgets 按钮文字换行
最新推荐文章于 2023-08-30 14:21:55 发布