ven. 14 août 2015, 11h18
ybenam
Algérie
atoutfox.public.association
Re: Fenetre principale VFP
exécuter ce code :
[vfp]
With _Screen
.Left=-10000
Endwith
Publi oo
oo=Newobject("asup")
oo.Show
Return
&&créer un formulaire
Define Class asup As Form
Desktop = .T. &&mandatory
Caption = "Form1"
AutoCenter=.T.
ShowWindow=2 &&0,1,2 peut importe la modalité prend toujours le dessus
WindowType = 1 &&modal
Name = "Form1"
Add Object command1 As CommandButton With ;
Top = 48, ;
Left = 48, ;
Height = 168, ;
Width = 265, ;
FontName = "Courier New", ;
WordWrap = .T., ;
Caption = "Command1", ;
SpecialEffect = 2, ;
ForeColor = Rgb(128,0,64), ;
Name = "Command1"
Procedure Unload &&make vfp visible on screen
_Screen.Left=0
Endproc
Procedure command1.Init
TEXT to this.caption noshow
Ceci est une méthode pour cacher la fenêtre principale de Visual Foxpro
tout en laissant visible les fenêtres enfants "child".
Attention il faut remttre la position original de vfp car elle est
sauvegardée par le système (pour le re démarage de vfp)
ENDTEXT
Endproc
Enddefine
[vfp]
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000016647