Setting Form minimum width and height

Post your Gambas programming questions here.
Post Reply
User avatar
BruceSteers
Posts: 1505
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Setting Form minimum width and height

Post by BruceSteers »

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.
If at first you don't succeed , try doing something differently.
BruceS
Post Reply