today I tried to place a gauge into the statusbar. So far no problems, but I wasn't able to position the gauge using the BoxSizer.
Code: Select all
public class MyFrame : Frame
{
public MyFrame( string title, Point pos, Size size )
: base(title, pos, size)
{
// (...)
StatusBar statusBar = CreateStatusBar( 2 );
progressBar = new Gauge( statusBar, -1, 100, wxDefaultPosition, wxDefaultSize,
Gauge.wxGA_HORIZONTAL | Gauge.wxGA_PROGRESSBAR );
BoxSizer statusSizer = new BoxSizer( Orientation.wxHORIZONTAL );
statusSizer.Add( new StaticText( statusBar, "test" ), 0, Stretch.wxGROW );
statusSizer.Add( progressBar, 1, Stretch.wxGROW );
statusBar.Sizer = statusSizer;
// (...)
}
}
// (...)
Any hints?
Thanks, Tom