gratifiant > microsoft.* > microsoft.fox

Thierry Nivelet (30/10/2008, 14h27)
Bonjour,

J'ai 3 formulaires qui s'appellent en cascade

form1.ShowWindow = 2 && top-level form
|_form2.WindowType = 1 && modale
|_ form3.WindowType = 1 && modale

Comment faire pour que form3 soit au dessus de form2 ?
Pour l'instant il est entre form1 et form2

AlwaysOnTop = .T. && ne donne rien ...

merci
thn
Gregory (30/10/2008, 14h34)
a essayer dans l'init

..... dodefault()

if( m.this.WindowType = 1)
this.AlwaysOnTop = .F.
this.AlwaysOnTop = .T.
endif

"Thierry Nivelet" <none> wrote in message
news:1960
[..]
Gregory (30/10/2008, 14h36)
ps:

a verifier que showwindow = 1 dans form2 et form3

Gregory
_
"Thierry Nivelet" <none> wrote in message
news:1960
[..]
Thierry Nivelet (30/10/2008, 14h53)
Merci Gregory

Ca marche avec ces propriétés :

form1
ShowWindow = 2 && as top-level form
WindowType = 0 && modeless, implicite avec ShowWindow = 2
Desktop = .T.

form2 et form3
ShowWindow = 1 && in top-level form
WindowType = 1 && modale
Desktop = .T. && là était le problème pour form2

@ +
th

"Thierry Nivelet" <none> a écrit dans le message de news:1960
[..]
Thierry Nivelet (30/10/2008, 14h58)
En passant j'ai découvert une propriété intéressante pour éviter les ACTIVATE SCREEN en dev ...

@ +
thn

--------------------------------------------------------------------------------
AllowOutput Property

Specifies whether to allow default output to appear on a form.
Read/write at design time and run time.

Setting the AllowOutput property to False (.F.) on a form, changes the
following Visual FoxPro behavior :

a.. Painting of the form is redirected to the next output window or
desktop. This affects commands, such as ?, ??, DIR, LIST, DISPLAY, CLEAR,
and other commands that display output on a form.

b.. The WOUTPUT( ) function does not return the name of the active form.
It returns the name of the current output form or desktop.

c.. The BROWSE command does not inherit the window size and window
settings of the form.

d.. The MCOL( ) and MROW( ) functions, without the use of their optional
parameter, may not be relative to the form they are called on.

"Thierry Nivelet" <none> a écrit dans le message de
news:1960
[..]
Gregory (30/10/2008, 15h37)
Oui, je l'avais deja vu, mais j'ai peur des mrow(), mcol() que j'ai sans parametres

--------------------------------------------------------------------------------

"Thierry Nivelet" <none> wrote in message news:1144
En passant j'ai découvert une propriété intéressante pour éviter les ACTIVATE SCREEN en dev ...

@ +
thn

------------------------------------------------------------------------------
AllowOutput Property

Specifies whether to allow default output to appear on a form.
Read/write at design time and run time.

Setting the AllowOutput property to False (.F.) on a form, changes the
following Visual FoxPro behavior :

a.. Painting of the form is redirected to the next output window or
desktop. This affects commands, such as ?, ??, DIR, LIST, DISPLAY, CLEAR,
and other commands that display output on a form.

b.. The WOUTPUT( ) function does not return the name of the active form.
It returns the name of the current output form or desktop.

c.. The BROWSE command does not inherit the window size and window
settings of the form.

d.. The MCOL( ) and MROW( ) functions, without the use of their optional
parameter, may not be relative to the form they are called on.

"Thierry Nivelet" <none> a écrit dans le message de
news:1960
[..]
Discussions similaires