11-11-2016 08:30 AM
Hi,
I wrote a program that emulates a simple calculator.
String control (String.c) for input and output and a number of operating controls.
I would like to do so, the String.c will be in focus all the time from starting the program.
I mean that, upon clicking on one of the other controls ('+' || '-' || '*' and so..) - Automatically I can enter a new input into the String.c without the need to click on the screen and create an Event_Comit.
I am sure that the possibility exists. I greatly appreciate guidance how to do it.
UIR attached.
Thank you!
Eliran
Solved! Go to Solution.
11-11-2016 10:29 AM
Hello Eliran
You can use SetActiveCtrl for this purpose.
If you use a string control, when it gets focus the contents is selected which might not be desirable. If you relplace it with a text box you might get better results. Take care that SetCtrlVal on textboxes append text rather than replacing the text.
11-11-2016 10:30 AM
Focus can be moved from the active control to another one by calling SetActiveCtrl function.
So the data flow of your application could be the following:
It's ot a difficult task but requires a bit of attention to properly handle all events.