Bicho
12-06-2006, 15:33:10
Para que cuando visualicemos un form lo podamos hacer de forma animada simplemente:
TheForm.BringToFront;
AnimateWindow(TheForm.Handle,Retardo, AW_HOR_NEGATIVE); //retardo en milisegundos
TheForm.Show;
Los parámetros son:
- El handle al form que queremos animar.
- El retardo, que es el tiempo que queremos que dure la animación.
- Y el tipo de animación podemos elegir entre estas:
AW_HOR_NEGATIVE
AW_VER_POSITIVE
AW_VER_NEGATIVE
AW_BLEND
AW_CENTER
AW_HOR_POSITIVE, pueden hacerse además combinaciones: AW_HOR_POSITIVE + AW_VER_POSITIVE
TheForm.BringToFront;
AnimateWindow(TheForm.Handle,Retardo, AW_HOR_NEGATIVE); //retardo en milisegundos
TheForm.Show;
Los parámetros son:
- El handle al form que queremos animar.
- El retardo, que es el tiempo que queremos que dure la animación.
- Y el tipo de animación podemos elegir entre estas:
AW_HOR_NEGATIVE
AW_VER_POSITIVE
AW_VER_NEGATIVE
AW_BLEND
AW_CENTER
AW_HOR_POSITIVE, pueden hacerse además combinaciones: AW_HOR_POSITIVE + AW_VER_POSITIVE