Search found 19089 matches

by doublemax
Tue Jan 03, 2012 1:25 pm
Forum: C++ Development
Topic: Loading WAV from Char Array or Resource
Replies: 7
Views: 2634

Re: Loading WAV from Char Array or Resource

Does the same sound file play correctly when loaded at runtime?

I don't think many people have ever used this function, you probably have to file a bug report if it doesn't work properly. There are not many things you can do wrong.
by doublemax
Tue Jan 03, 2012 1:24 pm
Forum: C++ Development
Topic: App Won't Shut Down After Constructing wxJoystick
Replies: 3
Views: 1457

Re: App Won't Shut Down After Constructing wxJoystick

That code doesn't make much sense to me, you probably wanted to return "js" here:

Code: Select all

wxJoystick MainWindow::GetJoysticks()
{
    return js();
}
But even then, i don't think it's a good idea. Returning a reference or creating the instance on the heap seems better to me.
by doublemax
Mon Jan 02, 2012 5:05 pm
Forum: C++ Development
Topic: wxwidgetize a console app
Replies: 7
Views: 2272

Re: wxwidgetize a console app

Yes, sorry that was a typo. I meant 3rd party library.

If you have no control over that library, you must match the CRT settings for wxWidgets and your project to that of this library.
by doublemax
Mon Jan 02, 2012 4:48 pm
Forum: C++ Development
Topic: wxwidgetize a console app
Replies: 7
Views: 2272

Re: wxwidgetize a console app

Still looks to me like a mix of different CRT configurations between the wxWidgets libs and your project.

Or are you maybe linking any other 3rd time libraries too?
by doublemax
Mon Jan 02, 2012 4:28 pm
Forum: C++ Development
Topic: wxwidgetize a console app
Replies: 7
Views: 2272

Re: wxwidgetize a console app

First of all: Can you build the "minimal" sample from wxWidgets? tried changing run time library for multi threaded debug to multi threaded debug DLL In general, it's important that you use the same settings for your project that were used when building wxWidgets. Did you add all needed wx...
by doublemax
Mon Jan 02, 2012 12:03 pm
Forum: C++ Development
Topic: have context menu, need control id
Replies: 3
Views: 1519

Re: have context menu, need control id

If i understand you correctly, you want a pointer to the underlying button?

There are these methods in wxMenu:

Code: Select all

wxWindow * 	GetInvokingWindow () const
wxWindow * 	GetWindow () const 
by doublemax
Mon Jan 02, 2012 11:46 am
Forum: C++ Development
Topic: KeyEvent
Replies: 8
Views: 2817

Re: KeyEvent

Are you using the Unicode version of wxWidgets?
by doublemax
Mon Jan 02, 2012 11:45 am
Forum: C++ Development
Topic: Transparent Images and Events
Replies: 6
Views: 3428

Re: Transparent Images and Events

Each image's wxPanel is a child of the last one to avoid overlapping siblings. Well, technically that's true, but children are supposed to be inside their parent's rectangle. I don't think it's a good idea that MyImage still derives from wxPanel, it will always flicker this way. wxBufferedPaintDC c...
by doublemax
Mon Jan 02, 2012 2:07 am
Forum: C++ Development
Topic: KeyEvent
Replies: 8
Views: 2817

Re: KeyEvent

Which platform, wxWidgets version?

I just tested the "keyboard" sample from wx 2.9.3 under Windows and it seems to work with Russian keyboard layout.
by doublemax
Sun Jan 01, 2012 12:32 pm
Forum: wxDev-C++
Topic: wxHtmlWindow LoadPage
Replies: 1
Views: 1739

Re: wxHtmlWindow LoadPage

Did you call this anywhere in your code?

Code: Select all

wxFileSystem::AddHandler(new wxZipFSHandler);
by doublemax
Fri Dec 30, 2011 9:05 pm
Forum: Platform Related Issues
Topic: Improved wxDirDialog for Windows Vista and newer
Replies: 4
Views: 3938

Re: Improved wxDirDialog for Windows Vista and newer

I'm almost certain that Vadim will integrate it differently, but that's normal.

He'll just be happy that anyone contributed anything, take the parts he can use and do the rest himself ;)
by doublemax
Fri Dec 30, 2011 7:27 pm
Forum: Platform Related Issues
Topic: Improved wxDirDialog for Windows Vista and newer
Replies: 4
Views: 3938

Re: Improved wxDirDialog for Windows Vista and newer

Thanks, but this is just a user-forum.

I think you should post this directly as comment to the trac entry or to the wx-dev mailing list.
by doublemax
Fri Dec 30, 2011 4:58 pm
Forum: C++ Development
Topic: wxMediaCtrl play an Audiofile
Replies: 1
Views: 2064

Re: wxMediaCtrl play an Audiofile

If you just want to play a sound file without any more control over it, wxSound is easier to use: http://docs.wxwidgets.org/stable/wx_wxsound.html When using wxMediaCtrl, the file may not be ready to play right away, so you have to catch the EVT_MEDIA_LOADED and start the file from that event handle...
by doublemax
Fri Dec 30, 2011 12:49 pm
Forum: C++ Development
Topic: Buttons changing position
Replies: 3
Views: 1284

Re: Buttons changing position

Do the buttons also snap into their correct position if you resize the frame manually? Without seeing code it's hard to tell what's wrong. I usually use code like this: mainFrame::mainFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size) :w...