Search found 1287 matches

by tierra
Wed Dec 03, 2014 3:14 am
Forum: C++ Development
Topic: WxWidgets library of state machine
Replies: 11
Views: 4180

Re: State machine with wxWidgets

Maybe you should be a little more specific. In general, it's perfectly possible to use "state machine" type designs in C++, Python, and likely whatever programming language you're using. Nothing in wxWidgets prevents that from being possible, or really any other library out there. You ofte...
by tierra
Wed Dec 03, 2014 3:05 am
Forum: C++ Development
Topic: Can the CenterPane be floatable?
Replies: 5
Views: 2412

Re: Can the CenterPane be floatable?

There can only be one center pane. All docking positions are measured relative to the single center pane. I'm not sure what you're asking in regards to "transparent arrows", but it's possible you're referring to the "dock hint" displayed to the user before letting go of a pane. M...
by tierra
Tue Dec 02, 2014 5:03 pm
Forum: Platform Related Issues
Topic: images on buttons are not shown on Ubuntu
Replies: 1
Views: 1557

Re: images on buttons are not shown on Ubuntu

I didn't even look at your source code, but that's because I happen to know that the icons on standard buttons can be turned off through GTK settings through dconf, and have been turned off by default in some distros (and I believe even in some versions of Ubuntu). wxWidgets respects this setting, a...
by tierra
Tue Dec 02, 2014 4:57 pm
Forum: C++ Development
Topic: Can the CenterPane be floatable?
Replies: 5
Views: 2412

Re: Can the CenterPane be floatable?

The center pane is a special pane, and the layout for all other panes is based mainly on that pane. Without it, the window layout doesn't make much sense, or really work at all. Sometimes it's more interesting to think about it like this: The center pane is a floating pane, and it's the only pane th...
by tierra
Sun Nov 30, 2014 2:33 pm
Forum: C++ Development
Topic: Custom control OnPaint when control is disabled
Replies: 3
Views: 2008

Re: Custom control OnPaint when control is disabled

Just a doubt: If I call Enable() function on a window, does it call Enable() recursively to all of its children? I am guessing the answer should be yes but it would be great if you can confirm it. wxMSW and wxOSX/Carbon are the only two platforms I'm not entirely sure this is true. They have some a...
by tierra
Sat Nov 29, 2014 7:45 am
Forum: C++ Development
Topic: Custom control OnPaint when control is disabled
Replies: 3
Views: 2008

Re: Custom control OnPaint when control is disabled

wxWindow::Enable() is a virtual method, and calling Disable() just calls Enable(false). So I believe that if you override this method while still calling the parent method, you have the ability to tie into that, and trigger a repaint with your control disabled if you need to.
by tierra
Wed Nov 26, 2014 11:55 pm
Forum: C++ Development
Topic: Overlapping panels using wxAuiManager?
Replies: 8
Views: 3303

Re: Overlapping panels using wxAuiManager?

Ok, so it really is for the same purposes that wxInfoBar was designed to be used for. I would stick with that. It should be possible to use wxInfoBar in either the main frame AUI is used in (but not adding it to AUI), or it could be added to the managed center pane too (also not part of AUI). It all...
by tierra
Wed Nov 26, 2014 6:27 am
Forum: C++ Development
Topic: Overlapping panels using wxAuiManager?
Replies: 8
Views: 3303

Re: Overlapping panels using wxAuiManager?

It is possible to do exactly what you're describing with your own custom wxPanel within the AUI-managed frame (contained in the TLW, but overlapping lower windows), but it's really just a matter of how much work you want to put into it and how experienced you are with handling custom window layout a...
by tierra
Tue Nov 25, 2014 5:47 pm
Forum: C++ Development
Topic: Overlapping panels using wxAuiManager?
Replies: 8
Views: 3303

Re: Overlapping panels using wxAuiManager?

Or maybe you're using this panel as a notification, in which case, you can probably consider using wxNotificationMessage: http://docs.wxwidgets.org/3.0/classwx_n ... ssage.html
by tierra
Sun Nov 23, 2014 5:23 am
Forum: Announcements and Discoveries
Topic: There's a Steam game built on WxWidgets
Replies: 3
Views: 2746

Re: There's a Steam game built on WxWidgets

Congrats, that's awesome.
by tierra
Mon Nov 17, 2014 11:23 am
Forum: C++ Development
Topic: Foreground Color resets after Enable [wx Cocoa]
Replies: 3
Views: 1488

Re: Foreground Color resets after Enable [wx Cocoa]

Please report any bugs to the wxWidgets issue tracker:
http://trac.wxwidgets.org/wiki/HowToSubmitTicket
by tierra
Sun Nov 16, 2014 9:10 pm
Forum: C++ Development
Topic: wxConfig
Replies: 3
Views: 1387

Re: wxConfig

I'm pretty sure that example is actually just supposed to be "config->". Some people like to implement their own method, usually called "GetConfig()" somewhere in their application that handles fetching different types of wxConfig (or separately configured versions) depending on ...
by tierra
Fri Nov 07, 2014 10:38 pm
Forum: C++ Development
Topic: Exceptions
Replies: 5
Views: 1719

Re: Exceptions

Another likely mistake is that you're calling some method that queues an event that you're expecting to throw the exception, but that event isn't processed until after your try()/catch() block is done executing. At that point, you're no longer in the same call stack as the try/catch, so a throw is n...
by tierra
Fri Nov 07, 2014 10:36 pm
Forum: C++ Development
Topic: Exceptions
Replies: 5
Views: 1719

Re: Exceptions

wxWidgets doesn't use exceptions, and won't catch any exceptions you throw. So if you throw an exception in an event handler anywhere that you don't catch in wxApp::OnRun, or in any secondary thread, it is treated as an unhandled exception, which will crash your application. I'm guessing whatever yo...