[Gambas-user] Window minimum dimensions

Fabien Bodard gambas.fr at ...626...
Fri Oct 24 17:46:53 CEST 2014


Normally it will work on tool boxes

2014-10-24 12:10 GMT+02:00 Tobias Boege <taboege at ...626...>:
> Hi list,
>
> did anyone succeed in restricting a window to minimum dimensions, like "my
> window shall not be smaller than (w,h) = (100,100)".
>
> I tried quite some variations of the same idea:
>
>   Private $iMinW As Integer
>   Private $iMinH As Integer
>
>   Public Sub Form_Resize()
>     Me.W = Max(Me.W, $iMinW)
>     Me.H = Max(Me.H, $iMinH)
>   End
>
> but they have no effect at all on my system. On anyone else's? Is this not
> supposed to work?
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list