Page 1 of 1

New event - mouse click on the textfield

PostPosted: Fri Oct 14, 2016 6:11 am
by shad
Balazs, Is it possible to add new mouse left click event like Buttonpress_event(int buttonnumber, bool onscreen) for textfield?
Just I want to optimize screen for touchscreen display - add popup autocalculator for manual data input.
Thank you!

Re: New event - mouse click on the textfield

PostPosted: Fri Oct 14, 2016 2:37 pm
by cncdrive
Hi Andrew,

Yes, I think I can implement this relatively easily.
Just to verify you need a function call to the plugins which activates if the user enters a Textfield (DRO), e.g. with a mouseclick or touch tapping?
What name would be optimal?

Textfieldentered(int fieldnumber, bool onscreen)

Will it be OK like that?

Re: New event - mouse click on the textfield

PostPosted: Fri Oct 14, 2016 3:20 pm
by shad
Yes, it's will be great. Textfieldentered(int fieldnumber, bool onscreen) is ok.
Main thing - this event must be triggered on when operator click on the textfield (not text changes)
Thank you!

Re: New event - mouse click on the textfield

PostPosted: Thu Oct 27, 2016 8:35 pm
by shad
In the new version mouse click on the textfield works great. Thank you!
One question - when I click on the textfield my new MDI window open for input of the value. Value on the textfield replaced to the "|".
When I input value and close MDI form I am write new value to the textfield and validate. But as you guess, in the textfield still "|".
Clicking on the another control makes visible in this edited textfield correct new value.
Is it possible to find a way to solve this?
Thanks!