B4J Question Main AnchorPane Lock dimensions

Aysic4Bandroid

Member
Licensed User
Longtime User
hi,
I want to prevent my main form from being resized - i.e. the sizes set thus :

B4X:
#Region  Project Attributes
    #MainFormWidth: 869
    #MainFormHeight: 765
#End Region

I want locked so user cannot resize. Cant find a way to do it in JavaFX scene Builder - can i do it in B4J??
 

Aysic4Bandroid

Member
Licensed User
Longtime User
Done It! no replies required
Better to post the solution ;)

I guess that you set Form.Resizable = False.


hi Erel,

I used:
B4X:
MainForm.SetWindowSizeLimits(869,765,869,765)

Quick 'n dirty but it worked though resizable is better since it disables the resize cursor when hovering over the edges - even better.

BTW: its nice to be back - had some time away and was tempted back when i saw my email invitation to try B4J - this could seriously temp me away from my web work and back to desktop app dev again were i started many years ago. I didnt think B4A could be improved upon.

Nice one Erel
 
Upvote 0
Top