1. Win32Lib: Blinking Text Cursor?

Hi all,

Question:  is there an "easy" way to provide a blinking TEXT CURSOR in a
program?

In an app I'm writing using Win32Lib, I let the user edit horiz. & vert.
CENTERED text, &  because it's centered, I put it directly into a window
instead of a MLE box; so I made my own blinking cursor from a timer, & have
been making little handlers for it for various key presses, until it dawned
on me that maybe there was some kind of inherent cursor display/control
within Euphoria or Win32Lib. (I've been defining screen display positions
for text & cursor by using getTextExtent & getExtent(Window) for each line.)

I looked at Pete Eberlein's "WEE" editor as a referent, but couldn't see how
to use what he did.

Any suggestions would be appreciated.

Dan Moyer

new topic     » topic index » view message » categorize

2. Re: Win32Lib: Blinking Text Cursor?

Dan Moyer wrote:

> is there an "easy" way to provide a blinking
> TEXT CURSOR in a program?

The way that it's supposed to be done is with a 'caret'. The routines of
interest are:

   CreateCaret
   GetCaretBlinkTime
   SetCaretBlinkTime
   DestroyCaret
   HideCaret
   ShowCaret
   SetCaretPos
   GetCaretPos

Hope this helps!

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32Lib: Blinking Text Cursor?

David,

Great!  Thanks.

Dan Moyer


-----Original Message-----
From: Cuny, David at DSS <David.Cuny at DSS.CA.GOV>



>Dan Moyer wrote:
>
>> is there an "easy" way to provide a blinking
>> TEXT CURSOR in a program?
>
>The way that it's supposed to be done is with a 'caret'. The routines of
>interest are:
>
>   CreateCaret
>   GetCaretBlinkTime
>   SetCaretBlinkTime
>   DestroyCaret
>   HideCaret
>   ShowCaret
>   SetCaretPos
>   GetCaretPos
>
>Hope this helps!
>
>-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu