LucaMs Expert Licensed User Longtime User May 18, 2026 #1 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). ["Project" attached] Attachments SomePane.zip SomePane.zip 2.2 KB · Views: 157
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). ["Project" attached]
aeric Expert Licensed User Longtime User May 18, 2026 #2 A question asked 2 days ago. How to fixed control postion 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? www.b4x.com Upvote 0
A question asked 2 days ago. How to fixed control postion 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? www.b4x.com
LucaMs Expert Licensed User Longtime User May 18, 2026 #3 aeric said: A question asked 2 days ago. How to fixed control postion 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? www.b4x.com Click to expand... Thanks @aeric but I'm not looking for a solution, I'd like to try to understand that strange behavior and how to avoid it, if possible. Upvote 0
aeric said: A question asked 2 days ago. How to fixed control postion 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? www.b4x.com Click to expand... Thanks @aeric but I'm not looking for a solution, I'd like to try to understand that strange behavior and how to avoid it, if possible.
LucaMs Expert Licensed User Longtime User May 18, 2026 #4 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. Upvote 0
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.
aeric Expert Licensed User Longtime User May 18, 2026 #5 LucaMs said: I suspect Click to expand... I suspect you didn't read the thread especially the last post. Upvote 0
LucaMs said: I suspect Click to expand... I suspect you didn't read the thread especially the last post.
LucaMs Expert Licensed User Longtime User May 18, 2026 #6 aeric said: I suspect you didn't read the thread especially the last post. Click to expand... 100% right! It's very sad that I now remember having had a response like that before (uncheck "Handle Resize Event"). My poor memory... has become zero! Upvote 0
aeric said: I suspect you didn't read the thread especially the last post. Click to expand... 100% right! It's very sad that I now remember having had a response like that before (uncheck "Handle Resize Event"). My poor memory... has become zero!
aeric Expert Licensed User Longtime User May 18, 2026 #7 So do I. B4X tools have many features that we can't always remember all of them. Upvote 0
LucaMs Expert Licensed User Longtime User May 18, 2026 #8 aeric said: So do I. B4X tools have many features that we can't always remember all of them. Click to expand... Thank you for your compassion. That's actually crucial; I shouldn't have forgotten it. Upvote 0
aeric said: So do I. B4X tools have many features that we can't always remember all of them. Click to expand... Thank you for your compassion. That's actually crucial; I shouldn't have forgotten it.
MrKim Well-Known Member Licensed User Longtime User Oct 4, 2026 #9 LucaMs said: My poor memory... has become zero! Click to expand... Welcome to my world. Upvote 0