New event - mouse click on the textfield

This is where you talk about Plugins. How they are made and how they work, show examples.

New event - mouse click on the textfield

Postby shad » Fri Oct 14, 2016 6:11 am

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!
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 268
Joined: Thu Sep 15, 2016 5:23 pm

Re: New event - mouse click on the textfield

Postby cncdrive » Fri Oct 14, 2016 2:37 pm

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?
cncdrive
Site Admin
 
Posts: 2130
Joined: Tue Aug 12, 2014 11:17 pm

Re: New event - mouse click on the textfield

Postby shad » Fri Oct 14, 2016 3:20 pm

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!
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 268
Joined: Thu Sep 15, 2016 5:23 pm

Re: New event - mouse click on the textfield

Postby shad » Thu Oct 27, 2016 8:35 pm

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!
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 268
Joined: Thu Sep 15, 2016 5:23 pm


Return to Plugins

Who is online

Users browsing this forum: No registered users and 1 guest

cron