Hi,
Is there a way to get wxDialog with minimize and maximize button?
i've gone through this http://forums.wxwidgets.org/viewtopic.p ... ize#p38790 ,
but i realy need to know whether its possible with dialog itself.
wxWidgets 2.8.10
RedHat enterprise client 5.6
Regards,
Rajan.M
wxDialog with minimize/maximize button in linux
wxDialog with minimize/maximize button in linux
Every exit is an entry somewhere else!
Re: wxDialog with minimize/maximize button in linux
Hi,
Try using the style wxDEFAULT_DIALOG_STYLE | wxMAXIMIZE_BOX | wxRESIZE_BORDER. That works for me (debian, kde). And no, I don't know why the wxRESIZE_BORDER is needed.
Regards,
David
Try using the style wxDEFAULT_DIALOG_STYLE | wxMAXIMIZE_BOX | wxRESIZE_BORDER. That works for me (debian, kde). And no, I don't know why the wxRESIZE_BORDER is needed.
Regards,
David
Re: wxDialog with minimize/maximize button in linux
Thanks for your reply and its not working for me. using gnome version 2.16.0DavidHart wrote:Hi,
Try using the style wxDEFAULT_DIALOG_STYLE | wxMAXIMIZE_BOX | wxRESIZE_BORDER. That works for me (debian, kde). And no, I don't know why the wxRESIZE_BORDER is needed.
tried
Code: Select all
: wxDialog( parent, id, title, pos, size,wxDEFAULT_DIALOG_STYLE | wxMAXIMIZE_BOX | wxRESIZE_BORDER)
Rajan.M
Every exit is an entry somewhere else!
Re: wxDialog with minimize/maximize button in linux
It looks as if it's a gnome issue. I tried running a dialog on FC15 (the oldest VirtualBox guest I have here) with wx2.8.12 and no buttons appear. On FC20 with wx3.0.0, again it fails with gnome. However exactly the same configuration of FC20 but with kde, the buttons appear, even with just wxDEFAULT_DIALOG_STYLE.
I don't think wx can (or should) interfere with a DE's setting; and even if you changed your local gnome configuration, you couldn't alter your users' ones. So if it's important enough to you, I suggest using a frame instead; perhaps wxMiniFrame.
I don't think wx can (or should) interfere with a DE's setting; and even if you changed your local gnome configuration, you couldn't alter your users' ones. So if it's important enough to you, I suggest using a frame instead; perhaps wxMiniFrame.
Re: wxDialog with minimize/maximize button in linux
The documentation for wxMiniFrame says that :
So it is not a solution.wxMINIMIZE_BOX:
Displays a minimize box on the frame (Windows and Motif only).
wxMAXIMIZE:
Displays the frame maximized (Windows only).
wxMAXIMIZE_BOX:
Displays a maximize box on the frame (Windows and Motif only).
Re: wxDialog with minimize/maximize button in linux
OK, but a wxFrame should work all right.