Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: Mattb 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
-
Dont think it is possible I am afraid.
Hood
-
you might try to put a transparent button over the top of the DRO ;)
-
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.
-
If it works, you can make the button run a script to alert the user that the DRO is read only.
-
This program and it's capabilities constantly amazes me!
Seems you can do everything with it.
-
Acualy,
Since you are writing the code...send it to a User Label they are read only from the GUI.
myResults = "some stuff"
SetUserLabel(10, myResults)
-
Sorry for this stupid question.
What is GUI?
-
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.