Setting Form minimum width and height

Post your Gambas programming questions here.
Post Reply
User avatar
BruceSteers
Posts: 485
Joined: Thursday 23rd July 2020 5:20pm

Setting Form minimum width and height

Post by BruceSteers » Thursday 04th February 2021 5:55am

Now it is possible to set a form.MinWidth and form.MinHeight or form.MinW and form.MinH setting
:D

https://gitlab.com/gambas/gambas/-/comm ... b7a264fcd6

So good , now those layout issues that wouldn't be an issue if the form shrinking could be limited have an answer :)

I'm adding it to my apps like this...

Public Sub Form_Open()

   ' most initialization code here

  NewGambassettings()

End

Public Sub NewGambassettings()
  
  FMain.MinWidth = 750
  FMain.MinHeight = 300
  
  Catch
    ' nothing to report,  just not using gambas that supports these features so catching the error
End


that way if app is loaded using an older gambas the new function calls just harmlessly fail.
Wishing well
Bruce

If at first you don't succeed , try it differently.

Post Reply