opensubscriber
   Find in this group all groups
 
Unknown more information…

p : palm-dev-forum@palm.lyris.net 5 May 2005 • 6:16AM -0400

Graffiti state always up on T5 Simulator
by Stadin, Benjamin

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi,

I've a strange problem with the Graffiti shift on the T5 Simulator. I set the state down in the event handler on the form after the first char is received and move the Graffiti shift for landscape and dia state. It's working on other normally on the Garnet SDK  5.4 Simulator, but not on T5 sim. Any ideas what's going wrong?

// sniplet from form event handler
else if (TxtCharIsPrint(event->data.keyDown.chr))
{
Boolean capsLock, numLock, autoShifted;
UInt16 tempShift;

if ((GrfGetState(&capsLock, &numLock, &tempShift, &autoShifted) == 0)
&& (autoShifted))
{
GrfSetState(capsLock, numLock, false);
}
}

// sniplet from form resize function. moves dia correctly, but shift state is always up on T5.

Coord x, y;
UInt16 cnt;

if (formHasChanged)
{
// Graffiti verschieben
index = FrmGetNumberOfObjects(frmP);
while (index--)
{
if (FrmGetObjectType(frmP, index) == FrmGraffitiStateObj)
{
FrmGetObjectPosition (frmP, index, &x, &y);
x += horizontalOffset;
y += verticalOffset;
FrmSetObjectPosition (frmP, index, x, y);
break;
}
}
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.