a RadioButton as the label of a StaticBoxSizer

Vadim Zeitlin vadim at wxwindows.org
Thu Mar 22 19:59:52 PDT 2007


On Thu, 22 Mar 2007 17:04:44 +0100 Frederic Triquet <frederic.triquet at gmail.com> wrote:

FT> wxStaticBoxSizer constructor can only take a wxString as a label, not
FT> a wxRadioButton.
FT> 
FT> I just want to knowif it is possible to do that or if the layout has
FT> to be changed (which is actually not a problem at all).

 It is possible but you need to create a custom control which (manually)
positions wxRadioButton just over the static box label. I had written
something like this for my own project and it worked (surprisingly) well.
Maybe I should contribute it to wx...

FT> is there any widget that allows the user to easily type in an IP
FT> address

 In wxPython there is masked text control but it's not (yet) available for
wxWidgets unfortunately.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list