Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Show form maximized problem
Message
 
 
À
21/11/2003 15:29:21
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00852423
Message ID:
00852591
Vues:
7
You should be able to do this with no flicker. Note I won't even bother putting the code in the Init(), just in the Resize(). Don't put it in the Activate unless you have other reasons to do it.
do form mike noshow name mike
mike.myresize()
mike.show()
... shouldn't be any flicker, because it's happening before the form shows.

you can do the same thing with a class of course, but it's a bit tricker for no good reason <g>:
PUBLIC ox
ox = CREATEOBJECT("myform")
ACTIVATE  WINDOW (ox.Name) NOSHOW 
ZOOM WINDOW (ox.Name) MAX
ox.MyResize()
ox.Show()
RETURN

DEFINE CLASS myform AS Form

  WindowState = 2

  ADD OBJECT Container1 AS Container

  PROCEDURE MyResize()
   thisform.Container1.Left = 0
   thisform.Container1.Width = thisform.Width/2
   thisform.Container1.Top = 0
   thisform.Container1.Height = thisform.Height/2
  ENDPROC
  
  PROCEDURE Resize()
    THIS.MyResize()
  ENDPROC
ENDDEFINE
HTH,

>L<
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform