[Gambas-user] Window minimum dimensions

Tobias Boege taboege at ...626...
Fri Oct 24 20:20:47 CEST 2014


On Fri, 24 Oct 2014, Beno?t Minisini wrote:
> Le 24/10/2014 12:10, Tobias Boege a ?crit :
> > 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
> >
> 
> It's only internally supported for modal windows: the initial size of a 
> modal window becomes automatically its minimal size.
> 

It seems (from a quick search of someone who has no idea of QT or GTK
programming) you can set minimum dimensions in QT and GTK. Do you think
it's good to add corresponding properties to Gambas' Window (and would
you do it)?

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list