Integrated Application Platform › Forums › General › Newb Window Canvas Question › Re: Re: Newb Window Canvas Question
Sorry, my mistake.
Here’s what I ran from the WorkSpace:
w = Window(#(Vert (Canvas)))
w.Vert.Canvas
I missed that you’re using a Controller, so it becomes:
w = Window(Controller { Controls: (Vert (Static hello)) })
w.Ctrl.Vert.Canvas
(the top level control in a window can be referenced as Ctrl)
You can always do Inspect(w) to see what you’re getting.
It is often better is to use FindControl
w.FindControl(‘Canvas’)
This will search through the control tree for a control with that name, so it won’t break when you change your layout.
If you have multiple controls of the same type you need to give them unique names:
(Vert (Field name: one) (Field name: two))