Set the dependence of the size and position of the element on the size of the panel on which it is installed.

If the user resizes the dialog box, the element can stay in place, move left-right, up-down, expand, etc.

Call:
ts_dialogcontrol(iDialogcontrolDescr, "SetAnchorToPanelResize", int leftanchor, int topanchor, int rightanchor, int bottomanchor);


Here:

leftanchor, topanchor, rightanchor, bottomanchor - numeric values ​​0/1 of the left, top, right and bottom anchors, respectively.

With a value of 0, the edge stays in place. With a value of 1, the edge is shifted in accordance with the change in the size of the window.