can a property change trigger an event or method ?

Planning app. stages.

Am wanting to have 1 method to do all the ‘look and feel’ work for a window, setting button captions, etc.

I also want to set some custom Properties for the window that will store the settings.

eg . property xMyButtonChoice as integer

In the method : if self.xMyButtonChoice = 1 then self.Button1.caption = “x”

Is there a way without a timer to detect if a property has changed, or a way to call the Method when the property changes ?
Kind of like a ‘change event’ for the custom property.

Yes, look at computed properties. You can raise an event from the set method.

Computed Property is your friend. You can add any code for Get and Set.

Thanks both for the replies.

That’s what I was looking for !