Gambas-it

Gambas dal mondo esterno => Mailing List => Topic aperto da: vuott - 24 Ottobre 2014, 19:46:00

Titolo: Dimensioni minime di una finestra
Inserito da: vuott - 24 Ottobre 2014, 19:46:00
Vi riporto questa discussione:


" 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:


  
Codice: gambas [Seleziona]
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
"


" Normally it will work on tool boxes

Fabien
"


" It's only internally supported for modal windows: the initial size of a
modal window becomes automatically its minimal size.

--
BenoƮt Minisini
"


" [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/color]
"