Status bar in a dialog.

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
toe99001
In need of some credit
In need of some credit
Posts: 2
Joined: Wed Dec 19, 2007 11:20 am

Status bar in a dialog.

Post by toe99001 » Tue Jan 15, 2008 6:43 am

Is it posiible to set a status bar in a dialog.
I have tried to use the method 'CreateStatusBar' but it does not exist in the 'wxDialog' class.

/Orre

DavidHart
Site Admin
Site Admin
Posts: 3906
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart » Tue Jan 15, 2008 10:44 am

Hi,

I'm moderately sure that this isn't possible (unsurprisingly: when did you last see a dialog with a statusbar?).

You could either use a wxFrame instead, or fake your own bar by putting a long, thin wxPanel into the bottom section of your main sizer. Of course you'd have to provide the 'Write' code too.

Regards,

David

ddv
Knows some wx things
Knows some wx things
Posts: 25
Joined: Mon Dec 18, 2006 4:23 pm

Post by ddv » Tue Jan 15, 2008 12:44 pm

I do not see what is the problem.

Just add a wxStatusBar in your dialog. Of course you must make the status bar stay at the bottom: for example you just need another control or sizer that use the proportion = 1.

clyde729
Super wx Problem Solver
Super wx Problem Solver
Posts: 426
Joined: Mon May 29, 2006 10:50 pm
Location: Jena, Germany

Post by clyde729 » Tue Jan 15, 2008 5:13 pm

As "ddv" already says. As far as I remember the "dialog" sample shows a dialog with a statusbar (or even 2 statusbars). Have a look to see how it works.
OS: Windows XP Home, Compiler: MingW, Version: wxWidgets 2.8.0, IDE: wx-Devcpp

Post Reply