Search found 47 matches

by denarced
Fri Jul 06, 2012 11:48 am
Forum: C++ Development
Topic: Overlay busy/loading animation
Replies: 2
Views: 2452

Re: Overlay busy/loading animation

rakeshthp wrote:Probably you can write your own class inheriting from wxBusyInfo

http://docs.wxwidgets.org/2.8/wx_wxbusyinfo.html

Hope that helps :-)

Regards
Seems pretty perfect, I'll give it a shot.
Thanks!
by denarced
Fri Jul 06, 2012 11:20 am
Forum: C++ Development
Topic: Overlay busy/loading animation
Replies: 2
Views: 2452

Overlay busy/loading animation

Hello, Is this possible: Create a largish 'loading' animation on top of the primary UI when a long operation is executing. The rest of the UI would be grayed out, still visible but couldn't be used. This is pretty fancy stuff so if you can think of something close to this I'm also interested. Is it ...
by denarced
Fri Jul 06, 2012 11:10 am
Forum: C++ Development
Topic: How to call method immediately when GUI is visible?
Replies: 3
Views: 1496

Solution

The solution I ended up using is very simple:
Register the idle event.
Catch the first and do what must be done.
Ignore the rest (could've also unbind).

Works like a charm.
I don't think it's "elegant" but it's close enough.
by denarced
Fri Jul 06, 2012 4:27 am
Forum: C++ Development
Topic: How to call method immediately when GUI is visible?
Replies: 3
Views: 1496

Re: How to call method immediately when GUI is visible?

doublemax wrote:There is no easy/elegant way to do this. You can try catching the first idle event or use a one-shot timer.
http://docs.wxwidgets.org/trunk/classwx_idle_event.html
Thanks! Even if not elegant, it's something. Before I had nothing. That's an infinite improvement :)
by denarced
Thu Jul 05, 2012 10:55 am
Forum: C++ Development
Topic: How to call method immediately when GUI is visible?
Replies: 3
Views: 1496

How to call method immediately when GUI is visible?

Hello, I have a refresh button in my GUI, and in all use cases the first thing the user does is push that button. I'm now trying to automatically do it. But refreshing takes a couple of seconds. During that time many users will go to start menu and click again. How can I show the GUI and then immedi...
by denarced
Tue Mar 20, 2012 3:07 pm
Forum: C++ Development
Topic: How to change UI language at runtime
Replies: 2
Views: 1580

Re: How to change UI language at runtime

doublemax wrote:I personally don't think it's that important to be able to switch the language at runtime, because a user normally does it only once. So i just ask the user to restart after he changed the language.
Seems like the way to go. Thanks!
by denarced
Tue Mar 20, 2012 11:55 am
Forum: C++ Development
Topic: How to change UI language at runtime
Replies: 2
Views: 1580

How to change UI language at runtime

Hello,

what is the way to switch between UI languages at runtime by e.g. selecting a menu item? Apparently you can set the locale only once .. Currently I'm setting the localization when the app starts.
by denarced
Sun Mar 04, 2012 4:10 am
Forum: C++ Development
Topic: Object attributes and events
Replies: 6
Views: 3361

Re: Object attributes and events

Thank you PB and JimFairway! The part about event sinks is simple enough and easy to remember. I just didn't consider the possibility that when you define an event handler, it'll execute the method in question in another object entirely! Didn't know that was even possible because to my under- standi...
by denarced
Sat Mar 03, 2012 4:51 pm
Forum: C++ Development
Topic: Object attributes and events
Replies: 6
Views: 3361

Re: Object attributes and events

Hi, I think you want: button->Connect(wxEVT_COMMAND_BUTTON_CLICKED,wxCommandEventHandler(App::buttonClicked),NULL,this); That tells the button to send its event to the wxApp object. Hope that helps, Jim Hmm .. thanks for the advice. I believe your way is exactly the same as mine, just formulated in...
by denarced
Sat Mar 03, 2012 3:08 pm
Forum: C++ Development
Topic: Object attributes and events
Replies: 6
Views: 3361

Object attributes and events

The problem was that I was connecting a button clicked event with the button itself. When I did that, the boost::weak_ptr attribute was messed up. Why does it matter will I connect to the button or to the object which holds the weak_ptr? The code should illustrate. I have commented out the problemat...
by denarced
Sat Mar 03, 2012 2:56 pm
Forum: C++ Development
Topic: How to wait for hardware to appear
Replies: 3
Views: 2066

Re: How to wait for hardware to appear

Do you need a cross-platform solution? If it was MSW only, i'd catch the WM_DEVICECHANGE message and check for the USB device from there: http://forums.wxwidgets.org/viewtopic.php?f=23&t=22811 In general i think i would solve it slightly differently: I'd disable the "next" button, hav...
by denarced
Sat Mar 03, 2012 2:49 pm
Forum: C++ Development
Topic: How to draw colored border around wxTextCtrl ?
Replies: 2
Views: 1872

Re: How to draw colored border around wxTextCtrl ?

Youka wrote:Border Colors
That does it .. thanks :)
by denarced
Fri Feb 24, 2012 7:06 am
Forum: C++ Development
Topic: How to draw colored border around wxTextCtrl ?
Replies: 2
Views: 1872

How to draw colored border around wxTextCtrl ?

Hello,

I was thinking about what's the best way to let the user know that value inserted into a text control is invalid. Draw a red border around the control of course. What are the ways in which this can be done ?
by denarced
Fri Feb 10, 2012 10:33 am
Forum: C++ Development
Topic: Disabled scrollbar in wxScrolledWindow
Replies: 1
Views: 1007

Solution: disabled scrollbar in wxScrolledWindow

I have solved the problem.
Here's hierarchical structure without sizers:
wxPanel
wxChoicebook
wxScrolledWindow
many other wid

The problem was that when adding the wxScrolledWindow instances, their parent
wasn't the wxChoicebook but the wxPanel.
by denarced
Fri Feb 10, 2012 9:45 am
Forum: C++ Development
Topic: Disabled scrollbar in wxScrolledWindow
Replies: 1
Views: 1007

Disabled scrollbar in wxScrolledWindow

Hello,

I have wxScrolledWindows inside wxChoiceBook.
They are added as pages at runtime.
I am able to scroll with mouse wheel after getting
the focus by pressing tab enough times. I cannot
however use the vertical scrollbar in any way.

Any ideas why ?