Search found 867 matches

by eranon
Sun Apr 08, 2018 2:56 pm
Forum: C++ Development
Topic: Can't set default button
Replies: 9
Views: 777

Re: Can't set default button

Works, not perfect What does not work? If it's about positioning, it's your job to fine tune the layout (it's not the subject of this thread). Here, I only pushed the concept: your controls have to be on a panel and you have to force the focus if you want an immediat (just after launch) response to...
by eranon
Sun Apr 08, 2018 11:47 am
Forum: C++ Development
Topic: Can't set default button
Replies: 9
Views: 777

Re: Can't set default button

I tried this code below and it seems to be better: the Help button is well the default button as you want on launch and if I hit ENTER it well triggers the handler behind the help button. MyFrame::MyFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size,...
by eranon
Sat Apr 07, 2018 3:48 pm
Forum: C++ Development
Topic: Can't set default button
Replies: 9
Views: 777

Re: Can't set default button

Hello, No time to test and write down code just now, but you should add your sizer in a panel. It should solve the fact the button doesn't respond (no event propagation). If I'm right, after this, it should just remains the issue about help button as default rather than the OK one.
by eranon
Sat Apr 07, 2018 8:48 am
Forum: C++ Development
Topic: Can't set default button
Replies: 9
Views: 777

Re: Can't set default button

Hello, A wxStdDialogButtonSizer should already force a default button (I guess OK or CANCEL, don't remember)... But, this said, what do you mean by "this does not work as expected"? Does the button not visually appear as the default (bold border)? Does not respond to the enter key? What is the style...
by eranon
Wed Apr 04, 2018 4:32 pm
Forum: C++ Development
Topic: Call to SetMenuBar() Results in Segmentation Fault
Replies: 23
Views: 1392

Re: Call to SetMenuBar() Results in Segmentation Fault

I don't know the wxSmith's internal, it depends how the file is parsed and the eventual level of corruption. I guess you should see some missing controls or a complete reject on parsing... I would be more inclined to think your .wxs file is right, but something prevent to overwrite it. It's relative...
by eranon
Mon Apr 02, 2018 10:01 pm
Forum: Platform Related Issues
Topic: Running app crashes if screensaver kick in
Replies: 7
Views: 882

Re: Running app crashes if screensaver kick in

Hello, Considering it's not an issue in your code (like dereferencement of a NULL pointer for example), I would say that crash in an SSE implementation of memcpy is sometime/often due to an issue about memory alignment. Also, I already seen some issues when several versions of glibc are mixed, but i...
by eranon
Fri Mar 30, 2018 3:44 pm
Forum: C++ Development
Topic: Call to SetMenuBar() Results in Segmentation Fault
Replies: 23
Views: 1392

Re: Call to SetMenuBar() Results in Segmentation Fault

Yes, I think it should have something wrong in your context because when I switch ON/OFF a default size in the wxSmith I have here (SVN head), the code is well regenerated (while it sounds to be not on your side). So, in your case, there're two issues : the first one is the one we all see (the one a...
by eranon
Thu Mar 29, 2018 11:41 am
Forum: C++ Development
Topic: Showing images from a video stream
Replies: 85
Views: 4895

Re: Showing images from a video stream

I would like to use CGrabResultPtr because it is a more complex object holding either the image buffer but also other properties..it would be easier to use to me..but I cannot find the way to pass it from the acquisition thread to the main thread.. So, maybe you should just pass a pointer to the bu...
by eranon
Thu Mar 29, 2018 11:26 am
Forum: Platform Related Issues
Topic: Running app crashes if screensaver kick in
Replies: 7
Views: 882

Re: Running app crashes if screensaver kick in

Hello, Some additional ideas as it comes: - Maybe you have something under /var/log/ (eg. in syslog) - What if you launch your app from the terminal (maybe a chance to see some error output you don't see usually)? - You can try to generate a core dump (eg. https://blog.xojo.com/2015/08/17/take-a-cor...
by eranon
Thu Mar 29, 2018 10:59 am
Forum: C++ Development
Topic: Appcrash on shutdown and exception handling
Replies: 10
Views: 709

Re: Appcrash on shutdown and exception handling

Hello, For me, when you rethrow from your override of OnExceptionInMainLoop, you obtain the standard Windows message: it's the "normal" behavior. It simply replaces the message provided by wxWidgets by another. Maybe a useful link in case you don't saw it: http://docs.wxwidgets.org/3.0/overview_exce...
by eranon
Thu Mar 29, 2018 10:11 am
Forum: C++ Development
Topic: Showing images from a video stream
Replies: 85
Views: 4895

Re: Showing images from a video stream

Hello, Why do you have to cast the long to a CGrabResultPtr? You already have a pointer to the buffer containing the image data and you just have to convert this raw array to a wxWidgets-oriented image. Basically you just need to know the image's width, height and the number of bytes per pixel (3 if...
by eranon
Wed Mar 28, 2018 8:41 am
Forum: Component Writing
Topic: wxSlider with two thumbs
Replies: 10
Views: 3870

Re: wxSlider with two thumbs

unfortunately it seemed unpractical to inherit from wxSlider because it seems to be only a shell (is this the correct word?!) for os specific controls. i did not see an easy way to add a second thumb there. It's not an issue, it's a feature! It's one of the top quality of wxWidgets to rely on nativ...
by eranon
Tue Mar 27, 2018 8:16 pm
Forum: Compiler / Linking / IDE Related
Topic: OSX linking error, architecture-related?
Replies: 7
Views: 720

Re: OSX linking error, architecture-related?

To test your wxWidgets is ready, you can simply issue this command: wx-config --version If you used a custom prefix, you have to be in the concerned directory and do: ./wx-config --version or indicate the full path upstream: /Users/eln/Dev/devlibs/wxWidgets-3.1.0/static_release_clang_x64/wx-config -...
by eranon
Tue Mar 27, 2018 8:00 pm
Forum: Component Writing
Topic: wxSlider with two thumbs
Replies: 10
Views: 3870

Re: wxSlider with two thumbs

In last resort, you could manage a double-thumb slider in a wxWebView (e.g. http://jsfiddle.net/abhitalks/a1f1k8d0/2/ and a lot of ways around searching on keywords like "javascript slider two thumbs") then acquire back the values at every change... But, of course, it's a little convoluted :wink:
by eranon
Tue Mar 27, 2018 7:53 am
Forum: C++ Development
Topic: Showing images from a video stream
Replies: 85
Views: 4895

Re: Showing images from a video stream

Thank you for your reply. I never call explicitly the function OnPaint. I didn't say you directly called OnPaint (nobody calls an event handler directly), but you explicitely induce an indirect call to the WM_PAINT event handler by your Refresh(), then wxYield() to immediately proceed with the queu...