开发者

RichTextBox text blinking

开发者 https://www.devze.com 2023-03-29 00:05 出处:网络
does someone know, how to make various parts of RichTextBox text to blink in .NET on Winforms? Or mayb开发者_JS百科e this is already done?(Google gave no help)

does someone know, how to make various parts of RichTextBox text to blink in .NET on Winforms? Or mayb开发者_JS百科e this is already done?(Google gave no help)

Thank you


First you need a timer. after selecting a text and click the blink button save the region of the text (startposition:endposition) to an array. With the timer change every second(for example) the color of the text in regions saved in the array. if the text is changed check if the change occured in a region and inrecrease or shrink the region. if the text is change outside a region check if the blinking text is moved and move the region also backward/foreward.

0

精彩评论

暂无评论...
验证码 换一张
取 消