我有一个wxWidgets表单,我有一个wxTextCtrl,它默认是从左到右的方向。我想将它改为从右到左的方向。 我怎么能在C ++上做到这一点。
答案 0 :(得分:1)
您可以设置任何窗口的布局方向,如下所示:
wxWindow::SetLayoutDirection ( wxLayoutDirection dir )
http://docs.wxwidgets.org/trunk/classwx_window.html#a7d494549f7fcfed44af95f8ee364c1f9
dir可以是wxLayout_Default,wxLayout_LeftToRight或wxLayout_RightToLeft。