1. Caret cursor in Win32Lib: how do I use it?

David,

I can't get the caret based cursor to do anything in my program; when I use
the
following, it doesn't make any cursor in my program, just changes the blink
rate of cursors in other window programs like Outlook Express.  What am I
doing wrong?

Dan Moyer

-- "caret" based cursor:
atom CaretReturn
constant MyCursor = 1 -- ?? just pick a number ??

CaretReturn = c_func( xCreateCaret,{MyCursor,0,5,20})-- 0 is for bmp?
CaretReturn = c_func( xSetCaretBlinkTime,{300})

CaretReturn = c_func( xShowCaret,{MyCursor})
CaretReturn = c_func( xSetCaretPos,{50,50})-- tried various numbers here,
--    from  10,10  to 100,100

new topic     » topic index » view message » categorize

2. Re: Caret cursor in Win32Lib: how do I use it?

Dan,
If I recall your situation, your using a custom
component for a textfield.  The caret functions
only work with components designed for text on a
lower level.  However, you should be able to
sample the system caret rate for use in your
timer. That way it matches the rest of your
system.  In short it looks like reinventing the
wheel.

-E.Allen Soard
E.S.P. Software

---- Begin Original Message ----
 From: Dan B Moyer <DANMOYER at PRODIGY.NET>
Sent: Thu, 13 Jan 2000 22:30:28 -0800
To: EUPHORIA at LISTSERV.MUOHIO.EDU
Subject: Caret cursor in Win32Lib: how do I use
it?

David,

I can't get the caret based cursor to do anything
in my program; when I use
the
following, it doesn't make any cursor in my
program, just changes the blink
rate of cursors in other window programs like
Outlook Express.  What am I
doing wrong?

Dan Moyer

-- "caret" based cursor:
atom CaretReturn
constant MyCursor = 1 -- ?? just pick a number ??

CaretReturn = c_func(
xCreateCaret,{MyCursor,0,5,20})-- 0 is for bmp?
CaretReturn = c_func( xSetCaretBlinkTime,{300})

CaretReturn = c_func( xShowCaret,{MyCursor})
CaretReturn = c_func( xSetCaretPos,{50,50})--
tried various numbers here,
--    from  10,10  to 100,100

---- End Original Message ----


Bookmark the HyperMart Small Business Center. All the tools you need to
succeed!
http://www.hypermart.net/center/

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

3. Re: Caret cursor in Win32Lib: how do I use it?

Just a note: if i run Borland's Turbo Pascal for win3.x in win95, it also
changes the cursor blink rate, speeding it up at least 50%. This isn't
really a problem, since i use the pascal only in writing dos code anymore,
since discovering Eu.

Kat

----- Original Message -----
From: Allen Soard <esp-software at MAIL.HYPERMART.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Friday, January 14, 2000 8:27 AM
Subject: Re: Caret cursor in Win32Lib: how do I use it?


> Dan,
> If I recall your situation, your using a custom
> component for a textfield.  The caret functions
> only work with components designed for text on a
> lower level.  However, you should be able to
> sample the system caret rate for use in your
> timer. That way it matches the rest of your
> system.  In short it looks like reinventing the
> wheel.
>
> -E.Allen Soard
> E.S.P. Software
>
> ---- Begin Original Message ----
>  From: Dan B Moyer <DANMOYER at PRODIGY.NET>
> Sent: Thu, 13 Jan 2000 22:30:28 -0800
> To: EUPHORIA at LISTSERV.MUOHIO.EDU
> Subject: Caret cursor in Win32Lib: how do I use
> it?
>
> David,
>
> I can't get the caret based cursor to do anything
> in my program; when I use
> the
> following, it doesn't make any cursor in my
> program, just changes the blink
> rate of cursors in other window programs like
> Outlook Express.  What am I
> doing wrong?
>
> Dan Moyer
>
> -- "caret" based cursor:
> atom CaretReturn
> constant MyCursor = 1 -- ?? just pick a number ??
>
> CaretReturn = c_func(
> xCreateCaret,{MyCursor,0,5,20})-- 0 is for bmp?
> CaretReturn = c_func( xSetCaretBlinkTime,{300})
>
> CaretReturn = c_func( xShowCaret,{MyCursor})
> CaretReturn = c_func( xSetCaretPos,{50,50})--
> tried various numbers here,
> --    from  10,10  to 100,100
>
> ---- End Original Message ----
>
>
> Bookmark the HyperMart Small Business Center. All the tools you need to
> succeed!
> http://www.hypermart.net/center/
>

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

4. Re: Caret cursor in Win32Lib: how do I use it?

Allen,

Nope, I'm just writing text to a regular window; I use the window & text
metrics to figure where to put things so they're centered, but it's just a
regular window, & no cursor appears in it from what I thought should create
it.

Any thoughts as to why what I wrote  doesn't make a cursor appear in a
regular window??

Dan
-----Original Message-----
From: Allen Soard <esp-software at MAIL.HYPERMART.NET>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Friday, January 14, 2000 6:23 AM
Subject: Re: Caret cursor in Win32Lib: how do I use it?


>Dan,
>If I recall your situation, your using a custom
>component for a textfield.  The caret functions
>only work with components designed for text on a
>lower level.  However, you should be able to
>sample the system caret rate for use in your
>timer. That way it matches the rest of your
>system.  In short it looks like reinventing the
>wheel.
>
>-E.Allen Soard
>E.S.P. Software
>
>---- Begin Original Message ----
> From: Dan B Moyer <DANMOYER at PRODIGY.NET>
>Sent: Thu, 13 Jan 2000 22:30:28 -0800
>To: EUPHORIA at LISTSERV.MUOHIO.EDU
>Subject: Caret cursor in Win32Lib: how do I use
>it?
>
>David,
>
>I can't get the caret based cursor to do anything
>in my program; when I use
>the
>following, it doesn't make any cursor in my
>program, just changes the blink
>rate of cursors in other window programs like
>Outlook Express.  What am I
>doing wrong?
>
>Dan Moyer
>
>-- "caret" based cursor:
>atom CaretReturn
>constant MyCursor = 1 -- ?? just pick a number ??
>
>CaretReturn = c_func(
>xCreateCaret,{MyCursor,0,5,20})-- 0 is for bmp?
>CaretReturn = c_func( xSetCaretBlinkTime,{300})
>
>CaretReturn = c_func( xShowCaret,{MyCursor})
>CaretReturn = c_func( xSetCaretPos,{50,50})--
>tried various numbers here,
>--    from  10,10  to 100,100
>
>---- End Original Message ----
>
>
>Bookmark the HyperMart Small Business Center. All the tools you need to
>succeed!
>http://www.hypermart.net/center/

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

5. Re: Caret cursor in Win32Lib: how do I use it?

Dan, Windows can't themselves handle text. If you
want a text curser in a window, you have to
explicitly draw it.
-Allen

Allen,

Nope, I'm just writing text to a regular window;
I use the window & text
metrics to figure where to put things so they're
centered, but it's just a
regular window, & no cursor appears in it from
what I thought should create
it.

Any thoughts as to why what I wrote  doesn't make
a cursor appear in a
regular window??

Dan


Bookmark the HyperMart Small Business Center. All the tools you need to
succeed!
http://www.hypermart.net/center/

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

6. Re: Caret cursor in Win32Lib: how do I use it?

Allen,

Oh, I had been writing text to the window, so I didn't realize the caret
cursor wouldn't work there too; thanks.

Dan
-----Original Message-----
From: Allen Soard <esp-software at MAIL.HYPERMART.NET>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Friday, January 14, 2000 7:01 PM
Subject: Re: Caret cursor in Win32Lib: how do I use it?


>Dan, Windows can't themselves handle text. If you
>want a text curser in a window, you have to
>explicitly draw it.
>-Allen
>
>Allen,
>
>Nope, I'm just writing text to a regular window;
>I use the window & text
>metrics to figure where to put things so they're
>centered, but it's just a
>regular window, & no cursor appears in it from
>what I thought should create
>it.
>
>Any thoughts as to why what I wrote  doesn't make
>a cursor appear in a
>regular window??
>
>Dan
>
>
>Bookmark the HyperMart Small Business Center. All the tools you need to
>succeed!
>http://www.hypermart.net/center/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu