Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

wxSmith

<< < (2/3) > >>

sodev:
I dont think he is talking about sizer flags but the control itself. Some controls offer flags for alignment of their content, these were added in wx 3.x, wxSmith is probably still on wx 2.8 state and doesnt know them.

oBFusCATed:
I don't see anything related to alignment in the docs for wxComboBox, nor for wxChoice.
I'm looking here: http://docs.wxwidgets.org/trunk/classwx_combo_box.html
Until I have clear idea what the problem is I can't do much.

winnie:
I'm talking about the alignment of the text of the control. The default alignment is wxALIGN_LEFT but if you have to choose between numbers it would be usefull to can chose also wxALIGN_RIGHT. You can set it in the constructor of the object and it works so the wxComboBox and wxChoice have also this kind of Styles but wxSmith doesn't display them.

oBFusCATed:
winnie: Can you show a code example? Link to documentation?

winnie:
I'm sorry, you are right the problem was with wxSpinCtrl.

This is the code of the constructor:
Cost = new wxSpinCtrl(this, ID_SPINCTRL1, _T("1"), wxPoint(656,136), wxSize(135,27), wxALIGN_RIGHT, 1, 100, 1, _T("ID_SPINCTRL1"));

Here is the documentation:
http://docs.wxwidgets.org/3.1/classwx_spin_ctrl.html#ac5defa94e938dd00380f551502c20a4e

wxSmith doesn't allow to set the style wxALIGN_RIGHT that I have inserted in the constructor by hand.
I'm sorry for the error, the first time I have used a ComboBox then I have change my mind and I have chose a SpinCtrl so the problem was with the latter.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version