I've been using wxWidgets with Python, but wanted to learn C++ while retaining wx. I'm having a problem figuring out how to set styles for wxTextCtrl. I want my text to align from right to left.
In Python all I had to do was this: wx.TextCtrl(parent, -1, style=wx.ALIGN_RIGHT)
If I do the same in C++: wxTextCtrl(parent, -1, style=wxALIGN_RIGHT)
Unfortunately, setting styles is a little funky in wx C++. You can input the style in the ctor, however it's like the 5th or 6th parameter in the list, so you have a type a bunch of other crap too: