Page 1 of 1

wxDialog

Posted: Thu Dec 08, 2005 10:36 pm
by theWolf
Hello,
I created a wxDialog and the exit X box in the upper right corner stays gray. How can I activate it?

Thank you.

Posted: Fri Dec 09, 2005 1:06 am
by lowjoel
in the ctor, pass wxCLOSE_BOX (or the like) in styles.

wxDialog

Posted: Fri Dec 09, 2005 1:48 am
by theWolf
Thank you for the suggestion.
I had used wxDEFAULT_DIALOG_STYLE which included wxCLOSE_BOX

Anyway, I changed it to the following:
wxDEFAULT_DIALOG_STYLE|wxCLOSE_BOX

No change.
the "X" box is still grayed.

wxDialog

Posted: Fri Dec 09, 2005 2:52 am
by theWolf
OK, this is strange.
When I was having the trouble with the "X" box grayed I was using an old Dell Laptop (Windows98se).

Wife came home, so I sent my project to my office computer and drove to the office. At the office I use Windows2000pro. I works fine.

The "X" box is grayed using Windows98se.
The "X" box is active when run on Windows2000pro.

Strange. :?

Dev-cpp 4.9.9.2, WXWidgets 2.6.1 packet

Posted: Fri Dec 09, 2005 7:02 am
by Jorg
Sounds like a clash of flags. Maybe you should (if you have the time) check if the flags translated to Win98 API are the same as the flags for the Win2000 API.

Especially the close blox flag, maybe something changed in the API for WinNT (2K and XP)

Regards,
- Jorgen

wxDialog - It works now!

Posted: Sun Dec 11, 2005 10:57 pm
by theWolf
When I returned home the "X" box was showing up on the wxdialog running on the Windows98se laptop???

It must be a problem with the old Windows98se or the laptop.

I guess when it comes to Windows it always a good idea to
REBOOT! first.

Sorry for the trouble.