B4J Question [Solved] Resizing Views programmatically

LucaMs

Expert
Licensed User
Longtime User
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
    2.2 KB · Views: 19

aeric

Expert
Licensed User
Longtime User
A question asked 2 days ago.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
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

Expert
Licensed User
Longtime User
So do I.
B4X tools have many features that we can't always remember all of them.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…