Based on what Mike Gagnon direction for animating a pageframe, I just thought of providing a quick code to enable a similar animation to the forms built by VFP form wizard. 
The steps are detailed below..
Step 1. Cut and copy the following code as ANIPRG.PRG and include this PRG in your project.
******************************************************
******************************************************
** AniPrg.PRG Form animation
******************************************************
LPARAMETER tcDirection, tnHeight, tnLeft, tnTop, tnWidth
Local jnAt As Integer, myForm As Object, ;
nDuration as Integer, jnHwnd AS Integer
nDuration = 300 && change if needed - smaller is faster.
DO CASE
CASE tcDirection = "TOP"
JnAT = 1
CASE tcDirection = "NEXT"
JnAT = 8 && or 10
CASE tcDirection = "END"
JnAT = 2
CASE tcDirection = "PREV"
JnAT = 4 && or 5
OTHERWISE
JnAT = 16
ENDCASE
Define Window PaperPage At 1,1 Size 2,2 Name myForm
With myForm
.Height = tnHeight
.Left = tnLeft
.Top = tnTop
.Width = tnWidth
.caption = "ani"
.titlebar = 0
Endwith
Declare Integer AnimateWindow In WIN32API ;
Integer HWnd, Integer dwTime, Integer dwFlags
**************************VFP6/VFP7 option
** If you are using VFP6.. then...
* Set Library To home()+"FoxTools.Fll" Additive
* jnHwnd = _WhToHwnd( _WFindTitl("ani"
)
*
** If you are using VFP7.. the code is default..
jnHwnd = myForm.HWnd
**************************
= AnimateWindow(jnHwnd, nDuration, Jnat)
myForm.Show()
myForm.Release()
myForm = .F.
******************************************************
** EOF
******************************************************
** Note: If you are using VFP6,
** suitably change the above code.
******************************************************
Step 2. In the wizard created form, highlight the ButtonSet1.. i.e. the navigation bar provided by the wizard, then.. in its NAVIGATE method, add the following code..(you can again cut and paste the following).
******************************************************
LPARAMETER cDirection
=AniPrg(cDirection, ThisForm.Height-106,ThisForm.Left, ;
ThisForm.Top+72,ThisForm.Width)
DODEFAULT(cDirection)
******************************************************
Note 1. I have not tested under VFP6, but some user can confirm the accuracy for the benefit of others.
Note 2. It is quite easy to do the animation similarly for the entire form, and if users like it, I will post that also in another thread.
And that is it. Have a nice day.
ramani
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
The steps are detailed below..
Step 1. Cut and copy the following code as ANIPRG.PRG and include this PRG in your project.
******************************************************
******************************************************
** AniPrg.PRG Form animation
******************************************************
LPARAMETER tcDirection, tnHeight, tnLeft, tnTop, tnWidth
Local jnAt As Integer, myForm As Object, ;
nDuration as Integer, jnHwnd AS Integer
nDuration = 300 && change if needed - smaller is faster.
DO CASE
CASE tcDirection = "TOP"
JnAT = 1
CASE tcDirection = "NEXT"
JnAT = 8 && or 10
CASE tcDirection = "END"
JnAT = 2
CASE tcDirection = "PREV"
JnAT = 4 && or 5
OTHERWISE
JnAT = 16
ENDCASE
Define Window PaperPage At 1,1 Size 2,2 Name myForm
With myForm
.Height = tnHeight
.Left = tnLeft
.Top = tnTop
.Width = tnWidth
.caption = "ani"
.titlebar = 0
Endwith
Declare Integer AnimateWindow In WIN32API ;
Integer HWnd, Integer dwTime, Integer dwFlags
**************************VFP6/VFP7 option
** If you are using VFP6.. then...
* Set Library To home()+"FoxTools.Fll" Additive
* jnHwnd = _WhToHwnd( _WFindTitl("ani"
*
** If you are using VFP7.. the code is default..
jnHwnd = myForm.HWnd
**************************
= AnimateWindow(jnHwnd, nDuration, Jnat)
myForm.Show()
myForm.Release()
myForm = .F.
******************************************************
** EOF
******************************************************
** Note: If you are using VFP6,
** suitably change the above code.
******************************************************
Step 2. In the wizard created form, highlight the ButtonSet1.. i.e. the navigation bar provided by the wizard, then.. in its NAVIGATE method, add the following code..(you can again cut and paste the following).
******************************************************
LPARAMETER cDirection
=AniPrg(cDirection, ThisForm.Height-106,ThisForm.Left, ;
ThisForm.Top+72,ThisForm.Width)
DODEFAULT(cDirection)
******************************************************
Note 1. I have not tested under VFP6, but some user can confirm the accuracy for the benefit of others.
Note 2. It is quite easy to do the animation similarly for the entire form, and if users like it, I will post that also in another thread.
And that is it. Have a nice day.
ramani
(Subramanian.G),FoxAcc, ramani_g@yahoo.com