Hello Guest it is June 17, 2019, 01:37:08 PM

Author Topic: Making a DRO read-only?  (Read 3690 times)

0 Members and 1 Guest are viewing this topic.

Making a DRO read-only?
« on: April 22, 2009, 12:45:02 PM »
I'm trying to find a way to make a given DRO read only.  I'm populating the DRO with the results of a formula using values input from other DRO's and it seems that allowing this particular DRO to be edited just causes confusion for users - it doesn't really harm anything, since the user-input value is just overwritten, but for usability's sake I'd love to make the DRO non-editable.

Is this possible?

Apologies if this one's obvious - I've tried searching with a few different terms, but the results of a search for DRO and edit aren't exactly helpful in this case.

-Matt

Offline Hood

*
  •  25,843 25,843
  • Carnoustie, Scotland
    • View Profile
Re: Making a DRO read-only?
« Reply #1 on: April 22, 2009, 02:01:17 PM »
Dont think it is possible I am afraid.
Hood

Offline zealous

*
  •  492 492
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Making a DRO read-only?
« Reply #2 on: April 24, 2009, 10:26:15 AM »
you might try to put a transparent button over the top of the DRO  ;)
Re: Making a DRO read-only?
« Reply #3 on: April 24, 2009, 10:27:12 AM »
I haven't tested this yet.... but you might try to put a transparent button over the top of the DRO  ;)

Thanks for the idea.  I'll give that a shot and let you know if it works.

Offline ger21

*
  • *
  •  6,261 6,261
    • View Profile
    • The CNC Woodworker
Re: Making a DRO read-only?
« Reply #4 on: April 24, 2009, 11:05:58 AM »
If it works, you can make the button run a script to alert the user that the DRO is read only.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Making a DRO read-only?
« Reply #5 on: April 24, 2009, 12:23:38 PM »
This program and it's capabilities constantly amazes me!
Seems you can do everything with it.

Offline zealous

*
  •  492 492
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Making a DRO read-only?
« Reply #6 on: April 24, 2009, 07:39:30 PM »
Acualy,
Since you are writing the code...send it to a User Label they are read only from the GUI.

Code: [Select]
myResults = "some stuff"
SetUserLabel(10, myResults)
« Last Edit: April 24, 2009, 07:42:01 PM by zealous »
Re: Making a DRO read-only?
« Reply #7 on: April 25, 2009, 01:06:57 AM »
Sorry for this stupid question.

What is GUI?

Offline zealous

*
  •  492 492
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Making a DRO read-only?
« Reply #8 on: April 25, 2009, 01:16:38 AM »
GUI is = Graphical User Interface

You can write to UserLabels using script but you can not click on them with the mouse to enter in values from the Mach screen.