B4J Question Set hard dimensions of layout-form

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends,

please, how to set HARD dimensions of layout - form.
I have set Project Attributes:
#MainFormWidth: 760
#MainFormHeight: 461

but when I run the APP I can move window to the right and down. I can
do the window bigger and smaller. I want set the hard dimension and I want
disable the possibility to have window smaller and bigger.

Thank you very much
Best regards
p4b4j
 

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

possibility is to use in AppStart:
B4X:
MainForm.SetFormStyle("UNDECORATED")
MainForm.Show
 
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
It was dumb question from my site, excuse me
It is very simple
B4X:
MainForm.Resizable=False
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
There are no dumb questions!

Be aware while setting Resizeable to False, you can still move the Window. It is not fixed positioned as you mentioned in your first post.
 
Upvote 0
Top