I'm asking a question that makes me feel like I'm back
to elementary school, after almost 13 years of using B4X!
Very simple layout, containing Pane1 and two buttons.
I resize Pane1 programmatically; all good. I use the mouse to resize the Form and... Pan1 returns to its original size and position.
Since it's impossible for my project to be a bug—it's too small!—this is evidently a "normal" behavior of B4J.
This means, however, that it would be the same for any view I create with Designer (and all custom views MUST be created with Designer, unless they're specially created—I won't explain further here).
After changing the button position through code, I found that when the window size changes, the button position will return to its initial position. How can I fix its current position?
After changing the button position through code, I found that when the window size changes, the button position will return to its initial position. How can I fix its current position?
I suspect, perhaps I'm wrong, that if I want to programmatically change the size of a View, I have to create it programmatically, because if I use the Designer, with the two default anchors, I will always have that problem.