Search found 122 matches

by Xangis
Sat Mar 09, 2013 11:43 pm
Forum: C++ Development
Topic: Assert Call Stack -- Disable or Modify Behavior?
Replies: 3
Views: 2977

Re: Assert Call Stack -- Disable or Modify Behavior?

I'm not actually getting the dialog, just a bunch of console spam. I'm used to seeing it pop up when something goes wrong on Windows, but don't get the assert dialog on my 64-bit Ubuntu 12.10 box with wx 2.9.4. I normally compile/link with wx-config --cxxflags and wx-config --libs and debug the app ...
by Xangis
Sat Mar 09, 2013 7:12 pm
Forum: C++ Development
Topic: Assert Call Stack -- Disable or Modify Behavior?
Replies: 3
Views: 2977

Assert Call Stack -- Disable or Modify Behavior?

I have a glitch that I'm trying to track down. It's related to the more strict string format specifier requirements of wxWidgets 2.9 and I'm on a Linux box. In this particular case, rather than helping, the wx assert call stack is getting in the way. Here's what I see on the console: [00] ShowAssert...
by Xangis
Fri Mar 08, 2013 7:56 am
Forum: Platform Related Issues
Topic: Help With XPM Images Not Showing on Linux
Replies: 3
Views: 3915

Re: Help With XPM Images Not Showing on Linux

Thank you. For whatever reason, creating the bitmap beforehand the way I did didn't work. I changed it to this:

_btnForward = new wxBitmapButton( dlg, ID_BUTTON_FORWARD, wxBitmap(forward_xpm), wxDefaultPosition, wxDefaultSize, wxBORDER_NONE );

And now the button shows up fine.
by Xangis
Mon Mar 04, 2013 8:40 pm
Forum: Platform Related Issues
Topic: Help With XPM Images Not Showing on Linux
Replies: 3
Views: 3915

Re: Help With XPM Images Not Showing on Linux

Code snippet: #include "forward.xpm" wxBitmap* bmpForward = new wxBitmap( forward_xpm, wxBITMAP_TYPE_XPM ); if( bmpForward->Ok()) { bmpForward->SetMask(new wxMask(*bmpForward, *wxWHITE)); } _btnForward = new wxBitmapButton( dlg, ID_BUTTON_FORWARD, *bmpForward, wxDefaultPosition, wxDefaultS...
by Xangis
Mon Mar 04, 2013 8:37 pm
Forum: Platform Related Issues
Topic: Help With XPM Images Not Showing on Linux
Replies: 3
Views: 3915

Help With XPM Images Not Showing on Linux

I have an app that uses XPM images for icon buttons. They display fine on Windows with 2.8.12, but fail to display on either of my linux boxes, a 32-bit Mint machine with 2.8.12 (from apt), and a 64-bit Ubuntu machine with 2.8.12 (from apt). I'm calling wxInitAllImageHandlers() in the app's construc...
by Xangis
Thu Aug 30, 2012 10:28 pm
Forum: Platform Related Issues
Topic: Need Help With Visual Inconsistencies on wxMac
Replies: 5
Views: 4260

Re: Need Help With Visual Inconsistencies on wxMac

I just ended up using ifdefs combined with building newer wx (that fixed some problems, but not font sizes). Not pretty but it worked. For example, #ifdef __WXMAC__ int fontSize = 16; #else int fontSize = 14; #endif Then I created controls using that variable, used fontSize+4 for title text, fontSiz...
by Xangis
Fri Jan 20, 2012 9:48 pm
Forum: Platform Related Issues
Topic: Need Some Help With Windows Cross-Program Focus Issue
Replies: 2
Views: 1505

Re: Need Some Help With Windows Cross-Program Focus Issue

Yes, the addon is wx and the one I control.

I'll try the dummy window trick. Thanks. :)
by Xangis
Fri Jan 20, 2012 8:47 pm
Forum: Platform Related Issues
Topic: Need Some Help With Windows Cross-Program Focus Issue
Replies: 2
Views: 1505

Need Some Help With Windows Cross-Program Focus Issue

I have two applications, one is a wxWidgets-based add-on to another that communicates over the network. The two apps have to remain separate codebases/processes (one's mine and one isn't). At a certain point, when the user clicks a button in the main application, I need to bring up a file browse dia...
by Xangis
Thu Dec 15, 2011 6:51 pm
Forum: Platform Related Issues
Topic: dlopen on Library Works on OSX 10.5 and 10.6 but not 10.7
Replies: 1
Views: 1343

Re: dlopen on Library Works on OSX 10.5 and 10.6 but not 10.

Simple, stupid solution that I should have noticed to begin with:

OSX 10.7 does not ship with wxWidgets libraries, so it couldn't find them.
by Xangis
Tue Dec 13, 2011 11:41 pm
Forum: Platform Related Issues
Topic: wxDialog + Default Menu Bar on OSX: Quit App?
Replies: 1
Views: 1917

wxDialog + Default Menu Bar on OSX: Quit App?

I have a wxDialog-based application on OSX that shows a single modal dialog window. My understanding is that a dialog-based app cannot have a menu bar. However, I do get the default system menu bar on the app. The Cmd-Q option (Quit) shows up on the default system menu bar, but it is grayed out. How...
by Xangis
Fri Nov 25, 2011 2:28 am
Forum: General Forum Issues
Topic: Searching For Long Words
Replies: 4
Views: 23331

Re: Searching For Long Words

No worries, thank you for checking. :)
by Xangis
Thu Nov 24, 2011 6:05 pm
Forum: General Forum Issues
Topic: Searching For Long Words
Replies: 4
Views: 23331

Re: Searching For Long Words

OK. When it didn't find anything the search results page specifically told me "words more than 14 letters are ignored". It must have been kidding.
by Xangis
Thu Nov 24, 2011 2:02 am
Forum: General Forum Issues
Topic: Searching For Long Words
Replies: 4
Views: 23331

Searching For Long Words

Search ignores all words more than 14 characters long.

That's no good since wxWidgets has quite a lot of functions that are more than 14 characters long.

For instance, wxEnableTopLevelWindows is 23 characters long. Can't be searched for.
by Xangis
Wed Nov 16, 2011 1:17 am
Forum: Platform Related Issues
Topic: wxFileDialog Works on Linux, Hangs on Windows
Replies: 4
Views: 2849

Re: wxFileDialog Works on Linux, Hangs on Windows

Thank you. I apparently need to ShowModal() on OSX and Linux but not on Windows.

What's the fundamental difference between Destroy() and delete? What happens in Destroy() that doesn't happen in the destructor?
by Xangis
Tue Nov 15, 2011 5:02 am
Forum: Platform Related Issues
Topic: wxFileDialog Works on Linux, Hangs on Windows
Replies: 4
Views: 2849

wxFileDialog Works on Linux, Hangs on Windows

I have a mostly-command-line application that uses a wxFileDialog as a file chooser at one point (to select a file to upload via FTP). This works great on Linux, but on Windows it hangs when I call ShowModal() on wxFileDialog. There is no root window in this application and I have no idea whether th...