Jump to content
Tuts 4 You
Sign in to follow this  
starzboy

Start And Close Up Style !

Recommended Posts

starzboy

i saw a couple of works by a team...where the main dialog box opened from a point......

i mean froma point to the dialog box....

i was wondering how does one proceed to attain this !

thanx

*

Share this post


Link to post
KrUeGeR

mess around with the "AnimateWindow"

The AnimateWindow function enables you to produce special effects when showing or hiding windows. There are three types of animation: roll, slide, and alpha-blended fade.

_http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/animatewindow.asp

heres an example

invoke AnimateWindow,hWnd,1000,AW_CENTER+AW_ACTIVATE
invoke AnimateWindow,hWnd,1000,AW_CENTER+AW_HIDE

an example app using this method

hhh.rar

Source here

Animate.rar :thumbsup:

I hope this helps :^

also dont forget you can change how long it takes it to expand/shrink

invoke AnimateWindow,hWnd,1999,AW_CENTER+AW_ACTIVATE  - Slow
invoke AnimateWindow,hWnd,199,AW_CENTER+AW_ACTIVATE -Fast
Edited by KrUeGeR (see edit history)

Share this post


Link to post
Ehtyar

Also try the SetLayeredWindowAttribute API, it will fade in/out smoother than AnimateWindow if used in a loop.

Share this post


Link to post
starzboy

Thanx all....

Animate window is kool to play around with

btw....When using AnimateWindow the transparent buttons are not handled well and are drawn as visible in the foreground.

is there anyway to handle this situation !

*

Share this post


Link to post
Ehtyar

Try using RedrawWindow with the RDW_UPDATENOW flag before u call AnimateWindow.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...