Sign in to follow this  
knos991

GDI+ - small fade out for an element

Recommended Posts

I'm trying to use GDI+ to create a small text editor and I'd like the caret to blink in and out with a small transparency in the middle (i.e. from a complete visible caret | to an invisible one passing through a semi-transparent one)

 

Anyway I don't know how to "time" things in GDI+. How can I achieve such an effect? I think there's no guarantee of a timed response when invoking InvalidateRect or the like

Share this post


Link to post
Share on other sites

That's probably the best thing to do and now I feel stupid for not having thought of it in the first place.. thanks tonemgub! It's really been a while since I used win32 stuff..

Share this post


Link to post
Share on other sites

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