Search found 75 matches

by RealityMage
Thu Mar 22, 2007 8:31 pm
Forum: C++ Development
Topic: Destroying a modeless dialog on close
Replies: 10
Views: 6966

Cool. Thanks. I wrote a short variant of your solution, btw: void SmartDialog::ConnectEvents() { Connect(GetId(), wxEVT_SHOW, wxShowEventHandler(SmartDialog::OnShow)); Connect(GetId(), wxEVT_CLOSE_WINDOW, wxCloseEventHandler(SmartDialog::OnClose)); } void SmartDialog::OnShow(wxShowEvent & event)...
by RealityMage
Wed Mar 21, 2007 8:01 pm
Forum: C++ Development
Topic: Destroying a modeless dialog on close
Replies: 10
Views: 6966

That's odd. I'm not assigning handlers, and it's not sending a Close() when OK and cancel are clicked for modeless dialogs. I just get a "Hide()". Are you using wxDialog under 2.8.2?
by RealityMage
Wed Mar 21, 2007 12:09 am
Forum: C++ Development
Topic: Destroying a modeless dialog on close
Replies: 10
Views: 6966

Actually this doesn't work correctly. EVT_CLOSE is only sent when the system requests that the dialog end, i.e., if the user tries to close the dialog with the "x" button on the window decoration or from the taskbar. OK and Cancel buttons do not send this event.
by RealityMage
Tue Mar 20, 2007 7:26 pm
Forum: C++ Development
Topic: Destroying a modeless dialog on close
Replies: 10
Views: 6966

That sounds really good. Is the EVT_CLOSE thing processed after the other (like DoOK) things are done?
by RealityMage
Tue Mar 20, 2007 6:30 pm
Forum: wxCode
Topic: ANN: wxSQLite3 1.7.3 released
Replies: 2
Views: 1780

Is this version backwards compatible with older versions of the Sqlite library, specifically the ones in which the extended error codes aren't defined?
by RealityMage
Tue Mar 20, 2007 4:08 pm
Forum: C++ Development
Topic: Destroying a modeless dialog on close
Replies: 10
Views: 6966

I'm not getting a compile error, I'm just concerned as my modeless dialogs seem to never be destroyed and removed from memory.

I looked at the sample. In the sample, to close the modeless dialog, a Hide() command is issued. I never see the dialog actually destroyed.
by RealityMage
Tue Mar 20, 2007 4:29 am
Forum: C++ Development
Topic: Destroying a modeless dialog on close
Replies: 10
Views: 6966

Destroying a modeless dialog on close

Hello, If I create a wxDialog modelessly, then allow the user to press OK or Cancel, by default, the wxDialog is just hidden. Not destroyed. In 2.6, I had a "Destroy()" command in the overridden OnCancel() and OnOk() functions. Does anyone have a recommendation on the "right way"...
by RealityMage
Sun Nov 05, 2006 9:32 am
Forum: C++ Development
Topic: wxMozilla and XRC?
Replies: 1
Views: 1847

wxMozilla and XRC?

Hi, is there a way to use wxMozillaBrowser within an XRC control? I tried using AttachUnknownControl and nothing was shown until I loaded a URL, upon which a new browser window popped up.

Subclassing doesn't work either, as there is no XRC handler for it...
by RealityMage
Sun Sep 10, 2006 9:13 pm
Forum: C++ Development
Topic: trouble with wxDatePickerCtrl
Replies: 6
Views: 2110

This happens to me too. Except I get the event 4 times, and the first event has no valid date.
by RealityMage
Mon Sep 04, 2006 5:23 pm
Forum: C++ Development
Topic: wxTaskBarIcon: RemoveIcon not enough to trigger wxApp exit
Replies: 2
Views: 1457

Then is the correct way to handle this to delete the icon when the user requests to quit? If so, this should be updated in the documentation, which suggests that you simply need to call "RemoveIcon".
by RealityMage
Sun Sep 03, 2006 10:51 pm
Forum: C++ Development
Topic: wxTaskBarIcon: RemoveIcon not enough to trigger wxApp exit
Replies: 2
Views: 1457

wxTaskBarIcon: RemoveIcon not enough to trigger wxApp exit

Hello, On Windows, simply calling RemoveIcon when there are no other top level windows around on wxTaskBarIcon does not trigger application exit (wxApp::OnExit), however, if I RemoveIcon and then "delete this;" on the object, it does exit correctly. On Linux, simply calling RemoveIcon does...
by RealityMage
Sat Aug 05, 2006 12:46 am
Forum: Compiler / Linking / IDE Related
Topic: wxIFM compilation as DLL library
Replies: 7
Views: 3186

It's the same as creating a shared library under Linux, with a slightly modified command at the end. Refer to this:

http://www.cygwin.com/cygwin-ug-net/dll.html
by RealityMage
Wed Jul 26, 2006 9:33 pm
Forum: Compiler / Linking / IDE Related
Topic: wxIFM compilation as DLL library
Replies: 7
Views: 3186

It's definitely possible to build it as a DLL, as that's how I have it currently built. I'm not at my development machine though, so I can't say how right now. I can tell you I did it with mingw and msys though. I don't know how to do it with a different compiler.
by RealityMage
Tue Jul 18, 2006 5:57 am
Forum: Announcements and Discoveries
Topic: wxAUI integrated into wxWidgets CVS
Replies: 21
Views: 9681

Well, if dragging and dropping is implemented seperately, is it possible to drag a tab away and make it create a floating window?
by RealityMage
Thu Jul 13, 2006 11:55 pm
Forum: Announcements and Discoveries
Topic: wxAUI integrated into wxWidgets CVS
Replies: 21
Views: 9681

Has wxIFM also been integrated into CVS? I believe not, and if not, why not?

It came out earlier, has a comparable number of features...