What are the Consequences of RectControl.lockleft = false?
If I want a control to be centrally located (both sided are then locked) and then resize the window,
then the control’s width changes to reflect the window’s width.
If I unlock a direction instead of locking both, then it will stay centered, and I cannot move the control in the compiled version. (On a Mac)
So, what are the consequences of unlocking?
I just noticed you responded. I probably wouldn’t have asked.
It now seems a little different question.
I don’t think it matters, but for some reason XOJO requires it in the IDE. Does it?
OK… I give up… you obviously are not paying attention…
Why would you avoid the Resize event? when two of us specifically told you that was the event you WANT to use?
in this situation, forget about Lockxxx (except maybe for top or bottom (but not both))
MOVE your code from OPEN to RESIZE… or better yet, put it in a method and call that method from OPEN AND RESIZE (or RESIZED if you don’t care if its is “live”)
Just for clarity, the desktop behavior is different from the web in this circumstance. On web, you can unlock both left and right to have a control float at a certain percentage. You cannot do that on the desktop and getting that functionality requires doing it in code which fires in the Resize event(s) of the Window.