attachposition vs attachconttrol attribute ? (formlayout)


#1

attachposition vs attachconttrol attribute ? (formlayout)
formlayout have attachform/attachposition/attachcontrol properties.
attachform : attaches inner controls relevant to formlayout its ok.
attachposition: attach an inner control to another innercontrol.

what attachcontrol is for ? isnt it acts same as attachform ?


#2

What you wrote is incorrect. It should be…

attachcontrol: attach an inner control to another innercontrol.

and then…

attachposition: attach an inner control by specifying the position within the formLayout.

I think the default formLayout grid is 100 units square, so you can think of the attachPosition args as percentages, so 50, 50 is the center of the formLayout, and 0,0 is the top-left corner, 100,100 is the bottom-right corner. There are some other args that also contribute to the final placement, but I’ll stop here before I confuse things.

David