Okay, I've finally got it working...

Important to note that if you're testing through POSE on Windows it seems
the
Graffiti shifting setup doesn't work in conjunction with your physical
keyboard, so
you may need to test on the actual hardware.

Also, I'm testing on a Symbol SPT 1700 and had to do a hard reset before
each
new test to ensure the newest prc was installed.

Anywhoo...here's what I did.

     // Set the focus
     FrmDrawForm(frmP);
     FrmSetFocus(frmP, FrmGetObjectIndex(frmP,MainProdNoField));

     GsiInitialize();
     GsiSetLocation(120,145);
     GsiEnable(true);
     GsiSetShiftState(glfCapsLock, 0);

     GrfInitState();
     GrfSetState(true,false, false);

Hope this helps...
ciao.




                                                                                       
                             
                    Nole Mailey                                                        
                             
                                         To:     "Palm Developer Forum" <[EMAIL 
PROTECTED]>            
                    07/18/2003           cc:                                           
                             
                    03:24 PM             Subject:     RE: Setting field to AUTO 
SHIFT...(Document link: Nole        
                                         Mailey)                                       
                             
                                                                                       
                             



Thanks for your feedback Rob.

I've added the shift indicator and have the field in focus,

I'm trying to set the field to CAPS on startup.

I'm currently exploring:
     GsiSetShiftState(const UInt16 lockFlags, const UInt16 tempShift)
     and
     GrfSetState(Boolean capsLock, Boolean numLock, Boolean upperShift)

Anything else anyone can suggest I try???
None of the default apps have this option that I can see...




                                                                                       
                                                 
                    <[EMAIL PROTECTED]>                                                
                                          
                    Sent by:                                 To:     "Palm Developer 
Forum" <[EMAIL PROTECTED]>            
                    [EMAIL PROTECTED]        cc:                                       
                                 
                    palmos.com                               Subject:     RE: Setting 
field to AUTO SHIFT...                            
                                                                                       
                                                 
                                                                                       
                                                 
                    07/18/2003 02:30 PM                                                
                                                 
                    Please respond to "Palm Developer                                  
                                                 
                    Forum"                                                             
                                                 
                                                                                       
                                                 
                                                                                       
                                                 




Nole,

You should use FrmSetFocus to set the focus to this field when you
initialize the form.  Also, you may need to add a graffiti shift
indicator to the form to get the autoshift to function correctly.

Very truly yours,

Rob G.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 1:53 PM
To: Palm Developer Forum
Subject: Re: Setting field to AUTO SHIFT...


Just read my post... let me try that again..

When the form loads I want the first field to default to
be in focus and also default to upper case.

So when the user is entering text it will start them
out in upper-case, and they'll have set it to lower manually.

Any suggestions ???

Nole






                    [EMAIL PROTECTED]

                    Sent by:                                 To:
"Palm Developer Forum" <[EMAIL PROTECTED]>
                    [EMAIL PROTECTED]        cc:
(bcc: Nole Mailey/pmc)
                    palmos.com                               Subject:
Setting field to AUTO SHIFT...




                    07/18/2003 12:02 PM

                    Please respond to "Palm Developer

                    Forum"









For OS 3.xx I'm trying to get the the field that I set the focus on
to also have the GSI set to default typing in CAPS.

     FieldPtr = GetObjectPtr(MainProdNoField);
     FldGetAttributes(FieldPtr, &attr);
     attr.autoShift = true;
     FldSetAttributes(FieldPtr, &attr);

I set AutoShift also in PilRC...

Am I going about this correctly, and if so why wouldn't this be
working???

Thanks

Nole


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





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


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







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

Reply via email to