On 20/02/11 16.53, Octavian Rasnita wrote: Hi,
I have a status bar with 2 fields and I want to add a Wx::Gauge progress bar in the second field after pressing a button (in the click event of that button). I have read that "It is possible to create controls and other windows on the status bar. Position these windows from an OnSize event handler." Does anyone know how to do this? I didn't find an example in the Wx::Demo nor after searching with Google. I know how to add text to the second field of the status bar, but I don't know how to create the Wx::Gauge object there.
There is a (C++) example in the wxWidgets sources; IIRC, you need to create the gauge as a child of the status bar and in the OnSize handler, set its size/position to the size of
$statusbar->GetFieldRect( 1 ); HTH, Mattia