Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Mattb on April 22, 2009, 12:45:02 PM

Title: Making a DRO read-only?
Post 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
Title: Re: Making a DRO read-only?
Post by: Hood on April 22, 2009, 02:01:17 PM
Dont think it is possible I am afraid.
Hood
Title: Re: Making a DRO read-only?
Post by: zealous on April 24, 2009, 10:26:15 AM
you might try to put a transparent button over the top of the DRO  ;)
Title: Re: Making a DRO read-only?
Post by: Mattb 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.
Title: Re: Making a DRO read-only?
Post by: ger21 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.
Title: Re: Making a DRO read-only?
Post by: SteinarN on April 24, 2009, 12:23:38 PM
This program and it's capabilities constantly amazes me!
Seems you can do everything with it.
Title: Re: Making a DRO read-only?
Post by: zealous 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)
Title: Re: Making a DRO read-only?
Post by: SteinarN on April 25, 2009, 01:06:57 AM
Sorry for this stupid question.

What is GUI?
Title: Re: Making a DRO read-only?
Post by: zealous 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.