如何创建闪烁的光标? [英] How can I create a blinking cursor?
本文介绍了如何创建闪烁的光标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通过重写某些方法并从控件类继承来创建原始文本框控件,而在重写onmouseenter
方法时,我想创建一个闪烁的光标.
I am creating the original textbox control by overriding some methods and inheriting from control class and while overriding onmouseenter
method, I want to create a blinking cursor. How can I do it?
推荐答案
您实际上想要一个闪烁的插入符号,它是文本标记;光标是由鼠标控制的图标.看一下此链接 [
You actually want a blinking caret which is the text marker; the cursor is the icon that is controlled by the mouse. Take a look at this link[^] or try a search here on CodeProject for any articles on the subject.
尝试使用API函数- CreateCaret [ ^ ], ShowCaret [HideCaret [
Try to use API functions - CreateCaret[^], ShowCaret[^], HideCaret[^].
I''ll let you know if I find something else with native methods.
这篇关于如何创建闪烁的光标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文