Setting Form minimum width and height

Post your Gambas programming questions here.
Post Reply
User avatar
Posts: 685
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 ... 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



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

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

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

Post Reply