If I resize a window I would my controls to stay in a relative position.
If however, I want them to move, it seems RectControl.LockLeft will override a new positioning.
For Instance these 2 controls don’t appear relative to the center and next to each other relatively,
but on the other side, because of horizontal locking
Any/All sides that you LOCK will remain in place during a normal RESIZE event.
however if you explictily change ANY of the values (left, top,width or right), then those values will be changed
Yes. I’m trying to get the controls 50 off from the center.
I have the Locks on opposite ends. The CloseBtn has the lock on the left and the others are right.
They flip sides, and override the new resized locations.
If you do nothing but lock bottom and left , the Prev/Next and arrow buttons will stay at a certain distance from the left
If you lock the close button right and bottom, it will move to keep pace with the right edge
A big window ill have a big gap between them.
A small window may cause them to overlap
If you want them to all stay in a group, and have the group move around,
probably best put them in a container control, and just move that in code, after the resize event
Thanks Jeff. For some reason I was trying to do it cheaply and didn’t think of a containerControl. That is what I need to do.
Thanks. So that is expected behavior.