Autore Topic: Dimensioni minime di una finestra  (Letto 319 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.725
  • Ne mors quidem nos iunget
    • Mostra profilo
Dimensioni minime di una finestra
« il: 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]
"
« Ultima modifica: 24 Ottobre 2014, 21:56:08 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »