TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Ruskai
from: Mark Arvid Johnson
date: 1994-10-08 10:18:12
subject: VIO on PM

-=> Quoting Mike Ruskai to Mark Arvid Johnson <=-

 MAJ> If you want blinking characters in PM, you'll have to do it the same
 MAJ> way IBM makes the caret blink in a PM window-respond to WM_TIMER
 MAJ> messages...

MR> WM_TIMER?  Is that attached to the cursor blink rate?  It seems to
MR> be easy  enough, I guess.  So there is no need to redraw the screen
MR> to make a  blinking effect like so many others have said?
 
Yes, WM_TIMER. Take a look at the July/August 1994 OS/2 Developer. To
make a long story short, OS/2 uses the timer ID "TID_CURSOR", passed
on to WinDefaultWindowProc() to handle a blinking cursor.

At least in MS Windows (no tomatoes please) the fastest way to redraw
the screen is often to attempt to redraw the entire screen, letting
the invalid region clip the drawing commands. Here is some psuedocode.

    on WM_TIMER, TID_CURSOR, switch blink color on/off.
    invalidate screen areas containing blinking characters.
    redraw screen, allowing invalid area to clip redraw.

An easy way out is simply to treat blinking characters as if they were
non blinking (I'm not sure, but I think PMComm does this)

 * KWQ/2 1.2e * He's electroecephalographically challenged Jim.
--- Maximus/2 2.01wb

* Origin: * MacSavvy * Dallas * Mac * OS/2 * (214)250-4479 * (1:124/1208)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 124/1208 1111 1 396/1 3615/50 229/2 12/2442 711/409 54/54 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.