I'm trying to duplicate MiddleCapsHack capabilities under OS5
(capitalize strokes the cross center line).  My base code is Capper,
which actually has code for MiddleCapsHack type of stuff, though
that code is buggy.  I've fixed the obvious bug and now it usually
works.  It registers for sysNotifyProcessPenStrokeEvent, and then
uses GrfGetPoint() to interrogate the graffiti point queue.
However, under some circumstances, the graffiti point queue only has
two items (and I think they're both (0,0)), even though a proper
stroke has been entered (and the default recognizer will recognize it).
This happens, for instance, when entering
a new memo after entering a whole bunch of lowercase letters and
then trying to enter an uppercase one by drawing it in the middle of
the graffiti area.  In such a case, I can't check for whether the
stroke crosses the center line.

(Any thoughts on what's going on?  Why would the graffiti point
queue only contain two items after a normal stroke?)

Is there any way I can look into the pen queue non-destructively?  There is
no
GetPenQueuePtr().  I could dequeue all the points from the queue and
re-queue them (in reverse order, I suppose, so I'll need a temp
storage area), but this won't work if the user has started to enter
something else into the pen queue--it'll get things out of order.

Thanks!
Alex Pruss

--
Dr. Alexander R. Pruss
Department of Philosophy
Georgetown University
Washington, DC 20057-1133  U.S.A.
e-mail: [EMAIL PROTECTED]
online papers and home page: www.georgetown.edu/faculty/ap85
--------------------------------------------------------------------------
   "Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur."
       - Paul of Worczyn (1424)


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to