How to permanently save a textfield?

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

How to permanently save a textfield?

Postby silverdog » Mon May 24, 2021 2:43 pm

Hi,
I would like to add some textfields where I want to store the offset of the cross laser led from the center of the mill.
Actually, the code works properly, but the values are lost every time the software is restarted even if Apply and save buttons are used. I would like to save the offsets like any of the textfields used for the motor settings.
Any solutions?
silverdog
 
Posts: 11
Joined: Thu Jan 19, 2017 10:10 pm

Re: How to permanently save a textfield?

Postby ger21 » Mon May 24, 2021 4:04 pm

Values in User Textfields are stored in the Profile when UCCNC closes.
You can use the Constructor macro to load the values when UCCNC starts.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2671
Joined: Sat Sep 03, 2016 2:17 am

Re: How to permanently save a textfield?

Postby silverdog » Mon May 24, 2021 6:28 pm

Thank you very much, it works! :-)
silverdog
 
Posts: 11
Joined: Thu Jan 19, 2017 10:10 pm


Return to Custom Screensets

Who is online

Users browsing this forum: No registered users and 7 guests