Slave control?

Is there such a thing as a control that is slave to another control and / or each other?

For example :i have a setting in my App that indicates which office the computer is located. Because these computers are all laptops, the office could change or i may want to put myself/my laptop in a particular location to look at a schedule or something.

rather than find the control that selects the location (when i am not on that screen), can a control be slaved to another so they are always on the same setting. I know i could write some code for that but i am just wondering if that might be built in somewhere ….

thanks

Well, sounds like you are looking for sub classing

https://documentation.xojo.com/getting_started/object-oriented_programming/subclassing_examples.html

But maybe I’m not understanding what you are asking :grin:

You should have a property somewhere that both controls use to get / store their value, rather than using the control as a data store.

Store a unique ID, the Location and whatever else you like into a Database from which all resources pull and in which all ressources push the needed Informations regarding a Device with ID=X.