Page 1 of 1

why check box does not move when stack is resized?

Posted: Tue Dec 10, 2013 12:11 pm
by keram
Hello,

I made a stack that displays lines of text that change their width when the stack is resized.
The Category columns is changing its position on resizing but the check box does not.

What am I missing in the code? What changes have to be made?

Thanks in advance.

keram

Re: why check box does not move when stack is resized?

Posted: Thu Dec 08, 2016 4:02 pm
by Ledigimate
In the datagrid's behavior script, change

Code: Select all

## Expand field to fill available width
put the rect of btn "btnCheck" of me into theFieldRect
put item 3 of pControlRect - 5 into item 3 of theFieldRect
set the rect of btn "btnCheck" of me to theFieldRect
to

Code: Select all

## Reposition the check box
set the left of btn "btnCheck" of me to (item 3 of pControlRect - item 1 of pControlRect) - 36

Re: why check box does not move when stack is resized?

Posted: Sun Dec 11, 2016 2:01 am
by keram
Thanks, it works perfectly now.