Search found 1281 matches

by tierra
Tue Dec 16, 2014 2:26 pm
Forum: C++ Development
Topic: Sum some days to wxDateTime Object
Replies: 3
Views: 958

Re: Sum some days to wxDateTime Object

You can use several built-in operators between wxDateTime and wxTimeSpan.
by tierra
Wed Dec 10, 2014 7:52 pm
Forum: C++ Development
Topic: Changes between 3.0.1 and 3.0.2
Replies: 6
Views: 1347

Re: Changes between 3.0.1 and 3.0.2

by tierra
Wed Dec 10, 2014 7:51 pm
Forum: C++ Development
Topic: Changes between 3.0.1 and 3.0.2
Replies: 6
Views: 1347

Re: Changes between 3.0.1 and 3.0.2

Sometimes it helps to look through the changelog too:
https://github.com/wxWidgets/wxWidgets/ ... #L577-L624
by tierra
Wed Dec 10, 2014 6:45 pm
Forum: General Development
Topic: Architecture problems with C++
Replies: 1
Views: 959

Re: Architecture problems with C++

Coming from an MVC-based framework, this concept should actually be a little easier for you to wrap your mind around... Try to think of each of your frames and dialogs as a view. Your timer is actually a service itself. Your views (i.e. each frame, dialog, window, control, etc) need to subscribe the...
by tierra
Tue Dec 09, 2014 5:18 pm
Forum: C++ Development
Topic: wxFrame to Front
Replies: 1
Views: 657

Re: wxFrame to Front

Raise() is supposed to do this, however, it intentionally won't work if the top (in z-index) frames are special types such as modal dialogs, or popup windows.
by tierra
Tue Dec 09, 2014 5:12 pm
Forum: Platform Related Issues
Topic: EVT_ICONIZE not working on Mac
Replies: 1
Views: 749

Re: EVT_ICONIZE not working on Mac

Bugs should be reported to the issue tracker:
http://trac.wxwidgets.org/

Please remember to mention your build configuration too. Is it wxMac, wxOSX/Carbon, or wxOSX/Cocoa? What version of OSX?
by tierra
Thu Dec 04, 2014 10:19 pm
Forum: Open Discussion
Topic: Congratulations, doublemax!
Replies: 6
Views: 3357

Re: Congratulations, doublemax!

I'm just slightly curious to know how well your post count stacks up to Vadim's mailing list posts, heh.
by tierra
Wed Dec 03, 2014 6:24 pm
Forum: C++ Development
Topic: WxWidgets library of state machine
Replies: 11
Views: 2375

Re: WxWidgets library of state machine

I've merged your duplicate post from the General forum over to here.
by tierra
Wed Dec 03, 2014 9:16 am
Forum: Announcements and Discoveries
Topic: wxSQLitePlus source code on Github
Replies: 9
Views: 2897

Re: wxSQLitePlus source code on Github

I believe that legally speaking, copyright law in many countries would expect you to leave those in the individual files for what it's worth, and especially if that's where they were placed on the code distributed to you. Besides that though, I generally find that it's a pain in the neck to maintain...
by tierra
Wed Dec 03, 2014 3:14 am
Forum: C++ Development
Topic: WxWidgets library of state machine
Replies: 11
Views: 2375

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 often might us...
by tierra
Wed Dec 03, 2014 3:05 am
Forum: C++ Development
Topic: Can the CenterPane be floatable?
Replies: 5
Views: 1663

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. Maybe you're looking ...
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: 1025

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: 1663

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: 1294

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: 1294

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.