[Gambas-user] Maximum Form dimensions
Tobias Boege
taboege at ...626...
Sat Oct 13 20:24:08 CEST 2012
Hi Benoit,
I supposed that
---
Public Sub Form_Resize()
If Me.Width > $iMaxWidth Then Stop Event
End
---
could hinder the user of scaling a Form above a certain width. This was
proven wrong, so I tried:
---
Public Sub Form_Resize()
Me.Width = Min($iMaxWidth, Me.Width)
End
---
which works only when the user clicks on the Maximise button but not the
least when dragging the window border to enlarge. Test project is attached.
IMHO,
a) it should work
b) intuitively, it should work via STOP EVENT.
What do you think?
Regards,
Tobi
More information about the User
mailing list