Search found 122 matches

by Xangis
Thu Nov 03, 2011 5: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: 863

dlopen on Library Works on OSX 10.5 and 10.6 but not 10.7

I have a dynamic library called screens.so that contains my wxWidgets dialogs. It works great on Linux, OSX 10.5 Leopard, and OSX 10.6 Snow Leopard. On OSX 10.7 Lion it fails to find the wx libraries when opening my screens with dlopen: ERROR: Unable to open screens.so: dlopen(screens.so, 2): Librar...
by Xangis
Sat Oct 22, 2011 10:46 pm
Forum: Platform Related Issues
Topic: EVT_ERASE_BACKGROUND and wxMac
Replies: 3
Views: 2148

Re: EVT_ERASE_BACKGROUND and wxMac

I ended up just attaching a wxStaticBitmap to a panel at the root of the dialog. It is a shame that EVT_ERASE_BACKGROUND isn't universal to all OSes.
by Xangis
Sat Oct 22, 2011 1:06 am
Forum: Platform Related Issues
Topic: Need Help With Visual Inconsistencies on wxMac
Replies: 5
Views: 3259

Re: Need Help With Visual Inconsistencies on wxMac

To get buttons how I want I had to create a wxBitmapButton.

http://forums.wxwidgets.org/viewtopic.p ... ht#p102403
by Xangis
Fri Oct 21, 2011 9:27 pm
Forum: Platform Related Issues
Topic: Need Help With Visual Inconsistencies on wxMac
Replies: 5
Views: 3259

Re: Need Help With Visual Inconsistencies on wxMac

Here's another:

5. When I set foreground and background color on a button, the button and its text does not change color. Only the corners in the "rounding area" change color.
by Xangis
Fri Oct 21, 2011 4:59 pm
Forum: Platform Related Issues
Topic: Need Help With Visual Inconsistencies on wxMac
Replies: 5
Views: 3259

Need Help With Visual Inconsistencies on wxMac

I'm working on an app that needs to work with the built-in wx libraries on OSX 10.5 (wxWidgets 2.5). The app looks great on Win32 and Linux, but needs some help on OSX. There are a few things that look a little off: 1. I can set a button's width, but no matter what I set the height to, it seems to t...
by Xangis
Fri Aug 19, 2011 9:02 pm
Forum: Platform Related Issues
Topic: EVT_ERASE_BACKGROUND and wxMac
Replies: 3
Views: 2148

Re: EVT_ERASE_BACKGROUND and wxMac

I don't have a paint event handler since I'm using default drawing otherwise. I'll have to create one. Thanks for the tip, will give it a try.
by Xangis
Thu Aug 18, 2011 11:53 pm
Forum: Platform Related Issues
Topic: EVT_ERASE_BACKGROUND and wxMac
Replies: 3
Views: 2148

EVT_ERASE_BACKGROUND and wxMac

I have a dialog-based application with a custom background. Drawing works fine on Windows and Linux, but not on Mac. I don't seem to ever receive the EVT_ERASE_BACKGROUND event even though I have called SetBackgroundStyle(wxBG_STYLE_CUSTOM). Is there anything different about how wxMac handles window...
by Xangis
Fri Jul 15, 2011 9:31 pm
Forum: Platform Related Issues
Topic: Stack Overflow in wxMutexGuiLeave?
Replies: 4
Views: 1457

Re: Stack Overflow in wxMutexGuiLeave?

Sounds like a good hint. I'll dig around in event handling for me app and see if I can find anything odd.
by Xangis
Fri Jul 15, 2011 7:10 pm
Forum: Platform Related Issues
Topic: Stack Overflow in wxMutexGuiLeave?
Replies: 4
Views: 1457

Re: Stack Overflow in wxMutexGuiLeave?

Quite a few - separate send and receive threads for handling data into and out of a few different network and SSL connections, a thread for audio, and the main thread where the GUI runs.
by Xangis
Fri Jul 15, 2011 6:13 pm
Forum: Platform Related Issues
Topic: C++ Portable Executable Files
Replies: 5
Views: 4354

Re: C++ Portable Executable Files

I used to use "Multi-Threaded DLL" builds, but switched to "Multi-Threaded" right around the time of Windows Vista so I didn't need to deploy the Visual C++ redistributable. It creates slightly larger executables, but is less of an installation hassle. With installer packagers like InnoSetup, you ca...
by Xangis
Fri Jul 15, 2011 5:56 pm
Forum: Platform Related Issues
Topic: Stack Overflow in wxMutexGuiLeave?
Replies: 4
Views: 1457

Stack Overflow in wxMutexGuiLeave?

On Ubuntu Linux 10.4, with GCC 4.4.3 and wxWidgets 2.8.10, I get a stack overflow in wxMutexGuiLeave() in my application. I never call wxMutexGuiLeave myself. The program just explodes randomly with a stack overflow that looks like this: #0 __pthread_mutex_unlock_usercnt (mutex=0x8262300, decr=1) at...
by Xangis
Mon Jul 04, 2011 4:50 pm
Forum: Component Writing
Topic: wxSlider Processing Problem With wxKeyEvent (ding)
Replies: 3
Views: 2583

Re: wxSlider Processing Problem With wxKeyEvent (ding)

I ended up creating a control that was not derived from slider, but rather wxControl. Since I already had code to handle OnPaint, all I really needed to do was add methods to handle values and key/mouse events. In my case it was a constructor, Set/Get min/max/value, and event handlers for enter, lea...
by Xangis
Fri Jul 01, 2011 10:23 pm
Forum: C++ Development
Topic: Fixed or proportional sizer
Replies: 5
Views: 889

Re: Fixed or proportional sizer

Depending on what you're doing, using the wxGROW flag could be helpful. Or not.
by Xangis
Fri Jul 01, 2011 10:18 pm
Forum: C++ Development
Topic: wxTextCtrl Click Event?
Replies: 2
Views: 769

Re: wxTextCtrl Click Event?

OK, I was looking in the parent so that explains it. Thank you for the Connect() tip.
by Xangis
Fri Jul 01, 2011 7:55 pm
Forum: C++ Development
Topic: wxTextCtrl Click Event?
Replies: 2
Views: 769

wxTextCtrl Click Event?

I have a wxTextCtrl that has some "Enter value here" help text. When a user clicks on it I want to clear the text if it hasn't already been cleared. I can't for the life of me figure out what the heck event is sent when a wxTextCtrl is left-clicked. Clicking doesn't seem to send an EVT_LEFT_DOWN or ...