Search found 180 matches

by spamiam
Fri May 16, 2014 7:54 pm
Forum: C++ Development
Topic: Capture all events for wxApp
Replies: 2
Views: 971

Re: Capture all events for wxApp

I am no expert on events. That much is definite. But maybe you could approach this in a different manner. Don't use a specific event to reset the timer, use the idle loop to check the timer. Upon entry into a new window or with any major user interaction, start off by resetting the timer. If the tim...
by spamiam
Fri May 16, 2014 2:47 pm
Forum: C++ Development
Topic: wxValidator not writing edited value back from a wxTextCtrl
Replies: 1
Views: 810

wxValidator not writing edited value back from a wxTextCtrl

I am using a wxFloatingPointValidator with a wxTextCtrl in a dialog. I give it a reference to a variable within the main frame. It works properly when creating the textctrl: It fills the control with the proper value from the main frame, but when it is time to close the dialog, it does not update th...
by spamiam
Fri May 16, 2014 2:29 pm
Forum: C++ Development
Topic: get edited value out of wxTextCtrl?
Replies: 4
Views: 1555

Re: get edited value out of wxTextCtrl?

Ah, yes. My mistake. I had TRIED GetLineText() with no arg. For some reason the class reference I was looking at did not show GetValue()!. But GBetValue() and GetLineText(0) seem to function the same for a single line text control. I am now, for some reason (I made no changes to the code reading the...
by spamiam
Fri May 16, 2014 11:38 am
Forum: C++ Development
Topic: get edited value out of wxTextCtrl?
Replies: 4
Views: 1555

Re: get edited value out of wxTextCtrl?

Did you try without setting a validator? Do you still get the old value then? You're using a single line text control, what happens if you do AttrBCtrl->GetValue() ? Calling GetValue() without a line arg gives an error, it does not appear to default to zero. After messing around with the code, I wa...
by spamiam
Fri May 16, 2014 12:53 am
Forum: C++ Development
Topic: get edited value out of wxTextCtrl?
Replies: 4
Views: 1555

get edited value out of wxTextCtrl?

I have a wxTextCtrl that I am able to edit, but when I use the GetLineValue() function, I get the original value, not the edited value. I am using this in a popup dialog box. It gets the data via public getter (and setter) functions in the main frame. It all compiles fine, and APPEARS to function pr...
by spamiam
Tue May 06, 2014 5:39 pm
Forum: C++ Development
Topic: GUI not updating when there is a reiterative calculation
Replies: 7
Views: 1432

Re: GUI not updating when there is a reiterative calculation

Thanks, I will try it both ways. Any individual iteration does not take long at all, instead it is likely to simply require lots of iterations. It is OK to take a few seconds as the graphic display may be interesting and informative as the iterations progress.

-Tony
by spamiam
Tue May 06, 2014 5:01 pm
Forum: C++ Development
Topic: GUI not updating when there is a reiterative calculation
Replies: 7
Views: 1432

Re: GUI not updating when there is a reiterative calculation

Is using the idle event going to get me the highest frequency of reiterations without interfering with the GUI itself? I was thinking of using the wxApp::OnRun or some other similar wxApp function where I might be able to run a foreground task continuously with whatever multitasking interruptions th...
by spamiam
Tue May 06, 2014 3:33 pm
Forum: C++ Development
Topic: GUI not updating when there is a reiterative calculation
Replies: 7
Views: 1432

Re: GUI not updating when there is a reiterative calculation

Maybe I have a good answer. I made the display function an "idle event". void LayoutFrm::Display_Positions(wxIdleEvent& evt) { TextPanel->AppendText(_(" this is a test")); evt.RequestMore(); } I found an example of something generally similar. They used the RequestMore() function. Does this increase...
by spamiam
Tue May 06, 2014 2:39 pm
Forum: C++ Development
Topic: GUI not updating when there is a reiterative calculation
Replies: 7
Views: 1432

Re: GUI not updating when there is a reiterative calculation

From where do you call this function? From an event handler or from wxApp::OnInit() during initialization? In the latter case, the event loop is not running yet, so you won't see any update. Yes, the function is called when the frame is created in the wxApp::OnInit(). Not in an event handler, as th...
by spamiam
Tue May 06, 2014 12:49 pm
Forum: C++ Development
Topic: GUI not updating when there is a reiterative calculation
Replies: 7
Views: 1432

GUI not updating when there is a reiterative calculation

I have a simple program that does an iterative calculation and is supposed to send text of values from each iteration to a rich text control. To keep it simple for a test case, I just send some characters without any actual calculation. I used wxDev C++ to do the preliminary simple layout. There is ...
by spamiam
Tue Aug 20, 2013 10:23 am
Forum: C++ Development
Topic: WxSpinCtrlDouble event: another question
Replies: 5
Views: 1529

Re: WxSpinCtrlDouble event: another question

I had thought about using an "apply" button and that veils certainly work and spare mecdrom writing code to handle each of the controls individually. But it would be nice to hsbebitcall workvaitomatocallybon the background Normally I would not mind too much doing the intermediate changes over and ov...
by spamiam
Tue Aug 20, 2013 1:24 am
Forum: C++ Development
Topic: WxSpinCtrlDouble event: another question
Replies: 5
Views: 1529

Re: WxSpinCtrlDouble event: another question

Yes, these are my issues exactly. I may need to go to a combo box and just run on use input rather then a not too useful scroll event. The range of values is large and it would take a long time to scroll anyway. I would expect most usage to be typed in. -Tony
by spamiam
Mon Aug 19, 2013 9:13 pm
Forum: C++ Development
Topic: WxSpinCtrlDouble event: another question
Replies: 5
Views: 1529

WxSpinCtrlDouble event: another question

Is there a way to hook into other events in the wxSpin CtrlDouble control. I don't need to know every time the arrows or typing occurs. Just when it is complete. So I need to know when it loses focus and if it has changed when that happens. Maybe also when the enter key is hit, and it would be good ...
by spamiam
Fri Aug 16, 2013 11:18 pm
Forum: C++ Development
Topic: problem with events from wxSpinCtrlDouble
Replies: 2
Views: 846

Re: problem with events from wxSpinCtrlDouble

Ah, yes. It is amazing how these errors can be totally invisible until someone else points it out. Thank you.
by spamiam
Fri Aug 16, 2013 9:41 pm
Forum: C++ Development
Topic: problem with events from wxSpinCtrlDouble
Replies: 2
Views: 846

problem with events from wxSpinCtrlDouble

I have a wxSpinCtrlDouble control. It all compiles fine until I add the event EVT_SPINCTRLDOUBLE(ID_CH1VPOS, V_ScopeFrame::OnCh1VPosUpdated) It is placed in the event table with a bunch of other events from other controls which work fine. This one generates the following compiler error: 2 C:\Enginee...