What is the recommended way in code to refer to the objects in a layout?
I’ll ask by way of an example of two DesktopTextAreas (TA1, TA2) and one button in a layout where the button assigns a color to the DesktopTextArea with the focus like: ApplyRandomColorTo(TAWithFocus).
Each DesktopTextArea assigns TAWithFocus to itself as the DesktopTextArea gets the focus.
The question is, should TAWithFocus be the pointer TA1.Handle?
If so, how are pointers dereferenced? ApplyRandomColorTo would receive VAR inPointer as Ptr.
or
Can objects be referenced by name and TAWithFocus can be a string with the DesktopTextArea’s name?
If so, what is the syntax to use the name?
or
Is there a different approach to this?
Thanks - KC
1 post - 1 participant