Setting Form minimum width and height

Post

Posted
Rating:
#1 (In Topic #573)
Guru
BruceSteers is in the usergroup ‘Guru’
Now it is possible to set a form.MinWidth and form.MinHeight  or form.MinW and form.MinH setting
 :D

Window: MinWidth and MinHeight are two new properties that allow to define the... (2980bef4) · Commits · Gambas / gambas · GitLab

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…

Code (gambas)

  1.  
  2. Public Sub Form_Open()
  3.  
  4.    ' most initialization code here
  5.  
  6.   NewGambassettings()
  7.  
  8.  
  9. Public Sub NewGambassettings()
  10.  
  11.   FMain.MinWidth = 750
  12.   FMain.MinHeight = 300
  13.  
  14.     ' nothing to report,  just not using gambas that supports these features so catching the error
  15.  
  16.  


that way if app is loaded using an older gambas the new function calls just harmlessly fail.
Online now: No Back to the top
1 guest and 0 members have just viewed this.