Writing ° to text field

If you think you've found a bug post it here.

Re: Writing ° to text field

Postby ger21 » Sat Dec 17, 2016 5:30 pm

My mistake. I thought it was working when the screen loaded, but the problem was when saving the screen.

I'm using the 1.2029 release version from today, as the 1.2030 version was too buggy for me to use.
Thanks.
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 418
Joined: Sat Sep 03, 2016 2:17 am

Re: Writing ° to text field

Postby ger21 » Wed Jan 11, 2017 1:36 am

ger21 wrote:While this is fixed in the .ssf file, it's not working when called from a button.

M20545.txt
AS3jog.Setfieldtext("0.0°", 20349); // Write angle to DRO

gives me 0.0°


This is still not working in version 1.2031
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 418
Joined: Sat Sep 03, 2016 2:17 am

Re: Writing ° to text field

Postby cncdrive » Wed Jan 11, 2017 1:51 pm

I still can't reproduce this, but I looked through everything about the Textfields and I think I found the cause for the problem.
Because I can't reproduce the issue I've made a test .exe for you which I'm attaching here.
There is the text exe and the API for that, please replace these files in your installation and let me know if this fixes the issue?
Attachments
UCCNCtest.zip
(2.18 MiB) Downloaded 16 times
cncdrive
Site Admin
 
Posts: 730
Joined: Tue Aug 12, 2014 11:17 pm

Re: Writing ° to text field

Postby ger21 » Wed Jan 11, 2017 4:17 pm

After I posted this last night, I changed all of my macros to use this method, which works correctly.
Code: Select all
string test = "25.405" ;
string degree = ((char)0x00B0).ToString();
AS3jog.Setfieldtext(test + degree, 20349); // Set Edge Angle


But I'll try the test version later today.
Thanks.
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 418
Joined: Sat Sep 03, 2016 2:17 am

Re: Writing ° to text field

Postby cncdrive » Thu Jan 12, 2017 10:52 am

OK, please let me know if this solved it or not when you will have some time to test it.
cncdrive
Site Admin
 
Posts: 730
Joined: Tue Aug 12, 2014 11:17 pm

Re: Writing ° to text field

Postby ger21 » Thu Jan 12, 2017 11:34 pm

No, it did not solve the problem.
You don't really need to look into this further, as I can use the method from my previous post, which works fine.
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 418
Joined: Sat Sep 03, 2016 2:17 am

Previous

Return to Report a bug

Who is online

Users browsing this forum: No registered users and 1 guest