The MASM Forum

General => The Campus => Topic started by: gelatine1 on July 02, 2014, 11:23:49 PM

Title: How do I make a flickering line ?
Post by: gelatine1 on July 02, 2014, 11:23:49 PM
How should I make this line that's flickering in almost all text fields ? Should I keep track of the position and set some kind of timer that draws and removes this line ? How would I set this timer ?
Title: Re: How do I make a flickering line ?
Post by: Tedd on July 03, 2014, 02:45:29 AM
I'm going to translate this to "how do I get a flashing caret?" - I assume that's what you mean.

Start with CreateCaret (http://msdn.microsoft.com/en-us/library/windows/desktop/ms648399%28v=vs.85%29.aspx) and explore the related functions, specifically SetCaretPos and DestroyCaret.
Title: Re: How do I make a flickering line ?
Post by: gelatine1 on July 03, 2014, 07:47:31 PM
yes, thank you. Just what I need :)