Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

GDI+ - small fade out for an element

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 knos991   Members   

112
Like
0Likes
Like

Posted 04 September 2014 - 01:20 AM

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



#2 / slalrbalr   Banned   

2008
Like
1Likes
Like

Posted 04 September 2014 - 01:52 AM

SetTimer



#3 knos991   Members   

112
Like
0Likes
Like

Posted 04 September 2014 - 01:55 AM

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..






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.