Search found 26 matches

by Mampfred
Sat Aug 11, 2007 2:42 pm
Forum: C++ Development
Topic: Trying to catch the enter-key in a KEY_EVT from a wxListBox
Replies: 16
Views: 4612

*bump*

I'm having exactly the same problem and still can't find a way to solve this. Only difference: I'm using wxMSW. Any chance someone can have anoher look at this?
by Mampfred
Mon Oct 18, 2004 8:00 pm
Forum: C++ Development
Topic: Noob problem about sizers
Replies: 6
Views: 1678

Certainly not a bug, just something a lot of people stumble across I'm afraid (including me a long time ago). Have a quick look at wxWindow and wxPanel in the docs and you realize that too: wxWindow: wxWindow is the base class for all windows and represents any visible object on screen. All controls...
by Mampfred
Sun Oct 17, 2004 6:12 pm
Forum: C++ Development
Topic: modal dialog freeze
Replies: 1
Views: 905

As always it would be useul to know your wx version. What do you use as the parent window of the dialogs? I could imagine that if you create them both with the frame as the parent window and ShowModal() the second one from inside the first one that the second one tries to disable it's parent which a...
by Mampfred
Sat Oct 16, 2004 10:21 pm
Forum: C++ Development
Topic: Newbie trying to draw a bitmap
Replies: 4
Views: 1509

Couple of pointers: Use wxStaticBitmap ( http://www.wxwidgets.org/manuals/2.5.2/wx_wxstaticbitmap.html#wxstaticbitmap ) rather than drawing it yourself. Make sure your code can find the bitmap (full path?). Try calling bilde.Ok() and see what it returns before you draw it. Or create a wxBitmap objec...
by Mampfred
Sat Oct 16, 2004 10:14 pm
Forum: C++ Development
Topic: Question about events.
Replies: 5
Views: 1603

No, you don't need to derive from wxTextCtrl to receive the event. Your code (the tiny part you posted anyway) looks perfect. If you got a dynamic range of wxTextCtrls with differing IDs, you could try using EVT_CUSTOM_RANGE(wxEVT_COMMAND_TEXT_UPDATED, first_id, last_id, MyWindow::MyHandler) and the...
by Mampfred
Sat Oct 16, 2004 9:25 am
Forum: C++ Development
Topic: Catching stdout from functions written in other language??
Replies: 3
Views: 1313

Well, what wxStreamToTextRedirector does is redirecting a given ostr to a text ctrl. By giving it cout (the default) it's routing everything written to cout (note that I'm not saying standard output) to a textctrl. You will still be able to do a write(1, "Monkey") which writes "Monkey" to standard o...
by Mampfred
Fri Oct 15, 2004 8:07 pm
Forum: C++ Development
Topic: Noob problem about sizers
Replies: 6
Views: 1678

Still nothing, but thanks anyway for che advice. Pheraphs it's a very stupid mistake, something I don't know, if you have alredy done something like this and you could copy here that part of source code, if would be very helpful. It's either a stupid mistake or you just don't read what others write...
by Mampfred
Fri Oct 15, 2004 7:50 pm
Forum: C++ Development
Topic: Probably stupid question.
Replies: 8
Views: 2191

Exactly, use wxSingleInstanceChecker to find a previous instance.

Then use IPC (inter process communication) to send the new files across. You need to derive from wxClient, wxServer and wxConnection. Have a look at the IPC sample or ask again if you can't get it working :)
by Mampfred
Fri Oct 15, 2004 4:12 pm
Forum: C++ Development
Topic: Processing a TAB for text controls.
Replies: 4
Views: 1532

What version of wx on what platform? If you're not using it already, try using the latest devel 2.5.3 and see if the flicker goes away.
by Mampfred
Fri Oct 15, 2004 4:08 pm
Forum: C++ Development
Topic: Noob problem about sizers
Replies: 6
Views: 1678

Off the top of my head, try deriving from wxPanel rather than wxWindow. I always do that and never had problems getting sizers to do what I want them to ...

Then again, I set all my sizers using SetSizerAndFit(sizer), maybe that makes a difference?

HTH
by Mampfred
Thu Oct 14, 2004 12:05 pm
Forum: General Development
Topic: "About" dialog box with NO bell ring?
Replies: 4
Views: 1441

I never get a bell on either showing a modal wxDialog or a wxMessageBox. Can you provide OD, wx version, compiler and some sample code of what you're doing?
by Mampfred
Mon Oct 11, 2004 8:59 am
Forum: C++ Development
Topic: Calling a function when the Dialog is shown
Replies: 4
Views: 1559

EVT_INITDIALOG and wxInitDialogEvent are your friends. As per the wx docs the default implementation of the wxInitDialogEvent is what is calling TransferDataToWindow() which obviously is unsuitable. Rather than that, I would suggest to try to catch the wxShowEvent (EVT_SHOW). I couldn't find this o...
by Mampfred
Mon Oct 11, 2004 8:45 am
Forum: C++ Development
Topic: No complete repaint?
Replies: 1
Views: 916

Catch the wxEventErase for the window (http://www.wxwidgets.org/manuals/2.5.2/wx_wxeraseevent.html#wxeraseevent). Make sure to not skip the event. BEGIN_EVENT_TABLE(MyWindow, wxWindow) // ... EVT_ERASE_BACKGROUND(MyWindow::OnEraseBackground) // ... END_EVENT_TABLE() // ... void MyWindow::OnEraseBack...
by Mampfred
Thu Oct 07, 2004 6:45 pm
Forum: Compiler / Linking / IDE Related
Topic: VC++ 6.0 IDE Configuration
Replies: 5
Views: 1793

Jorg wrote:You need to copy the setup.h from the lib/msw/setup.h to the include dir.
Well that's another possibility :)
by Mampfred
Thu Oct 07, 2004 4:52 pm
Forum: Compiler / Linking / IDE Related
Topic: VC++ 6.0 IDE Configuration
Replies: 5
Views: 1793

I moved on to use VC7 but judging by the error message you get you forgot to include the wx path somewhere in your project settings. Apart from the places you mentioned there should be an additional tab (called "C/C++" in VC7, don't remember the name in VC6) where you can specify include directories...