% textfield/slider

If you created a new screenset and want to share it with others then please post it here. You can talk about screens here.

% textfield/slider

Postby 3d0g » Fri Nov 29, 2019 3:18 am

OK, properly chagrined, I upgraded to 1.2112 today.

Only thing is, now I see these nifty percentage sliders and I want one for manually setting laser power!

Linking a textfield to a slider is no problem but how is it working with a % value? My test slider goes to 0 as soon as a percent sign is entered.
3d0g
 
Posts: 75
Joined: Sat Apr 14, 2018 1:52 am

Re: % textfield/slider

Postby dezsoe » Fri Nov 29, 2019 6:19 am

Yes. Sliders work only with numeric fields. Put the % on the backgrond and align your numeric field to right.
dezsoe
 
Posts: 2049
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: % textfield/slider

Postby 3d0g » Fri Nov 29, 2019 1:21 pm

Yeah, that's how I've got it working now but I wanna know how the feed and spindle overrides are doing %!
3d0g
 
Posts: 75
Joined: Sat Apr 14, 2018 1:52 am

Re: % textfield/slider

Postby ger21 » Fri Nov 29, 2019 1:45 pm

They are hard coded to work that way.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2663
Joined: Sat Sep 03, 2016 2:17 am

Re: % textfield/slider

Postby 3d0g » Mon Dec 02, 2019 10:33 pm

Cheaters! :D

% on the background worked good enough.

uccnc.png
3d0g
 
Posts: 75
Joined: Sat Apr 14, 2018 1:52 am


Return to Custom Screensets

Who is online

Users browsing this forum: No registered users and 12 guests