Machsupport Forum

Mach Discussion => Mach Screens => Screen designer tips and tutorials => Topic started by: CoreyCoop on May 02, 2020, 05:54:02 AM

Title: Is there a way to make an OEM DRO read-only?
Post by: CoreyCoop on May 02, 2020, 05:54:02 AM
I would like to make it impossible for the user to change some OEM DROs, and only update them from scripts.  Any way to do this?

Or, alternatively is there a mechanism to get a notification when a DRO is modified by the user so that other dros can be suitable updated?

Thanks
Title: Re: Is there a way to make an OEM DRO read-only?
Post by: TPS on May 03, 2020, 04:07:21 AM
put a transparent button with no code over the dro.
Title: Re: Is there a way to make an OEM DRO read-only?
Post by: CoreyCoop on May 03, 2020, 04:21:30 AM
I tried that, it didn't seem to work.
Title: Re: Is there a way to make an OEM DRO read-only?
Post by: Klaus1311 on May 03, 2020, 01:02:18 PM
Hi CoreyCoop

Try to change levels (perhaps the DRO is on top of the image button).

Klaus
Title: Re: Is there a way to make an OEM DRO read-only?
Post by: CoreyCoop on May 05, 2020, 09:42:31 AM
Quote
Try to change levels (perhaps the DRO is on top of the image button).

I have looked, and can't figure out how to change levels!  One would think there would be a Z-order, like "move Back" or whatever.  How is this done?
Title: Re: Is there a way to make an OEM DRO read-only?
Post by: TPS on May 05, 2020, 10:08:28 AM
i assume you are using MachScreen from Klaus

if you left click on the dro you get a small window with all the controls witch are located at this place.
now select the transparent button, witch is normaly at the  bottom of the list, hold left mouse button
down and shift the selected line upwards in the list. it ust be higher as the dro.
Title: Re: Is there a way to make an OEM DRO read-only?
Post by: Klaus1311 on May 05, 2020, 03:11:44 PM
Hi

TPS has already pointed out how to change levels. Please make sure the second icon from the right of the toolbar shows "M", if shows "1" click at it to toggle.

Klaus
Title: Re: Is there a way to make an OEM DRO read-only?
Post by: CoreyCoop on May 05, 2020, 05:19:38 PM
Yes, I poked around and finally figured it out, I hadn't used the multiple selection up until now.  I then was embarrassed to find the "Swap Layer" under the Edit menu.
  Thanks!