Re: Decimal field validation...

2006-11-14 Thread Alan Ingleby
ahh... that was it.  Hence my hand rolled version...On 11/15/06, News <[EMAIL PROTECTED]> wrote: It doesn't allow "-" characters.Regards,Steve Mann# # #On Nov 14, 2006, at 3:43 PM, Alan Ingleby wrote: I always thought a numeric field didn't allow "-" and "." symbols.On 11/15/06, Efrenk <[EMAIL PRO

Detecting Treo ringer switch state and earpiece insertion?

2006-11-14 Thread Stefan Mohr
Hi guys,   Trying to get my head into the Treo space and haven’t found much in the way of a dedicated reference manual.. Is there anything beyond the Palm Developer Guide?   Right now I’m specifically trying to detect a couple of states on the device:     How can I determine if the r

Re: Decimal field validation...

2006-11-14 Thread News
It doesn't allow "-" characters.Regards,Steve Mann# # #On Nov 14, 2006, at 3:43 PM, Alan Ingleby wrote:I always thought a numeric field didn't allow "-" and "." symbols.On 11/15/06, Efrenk <[EMAIL PROTECTED] > wrote:Add this to the form's frmOpenEventFieldType *yourfield; FieldAttrType attr

Re: Decimal field validation...

2006-11-14 Thread Alan Ingleby
I always thought a numeric field didn't allow "-" and "." symbols.On 11/15/06, Efrenk <[EMAIL PROTECTED] > wrote:Add this to the form's frmOpenEventFieldType *yourfield; FieldAttrType attr1;yourfield = (FieldType *)FrmGetObjectPtr(FrmGetActiveForm(), FrmGetObjectIndex(FrmGetActiveForm()

re: Decimal field validation...

2006-11-14 Thread Efrenk
Add this to the form's frmOpenEvent FieldType *yourfield; FieldAttrType attr1; yourfield = (FieldType *)FrmGetObjectPtr(FrmGetActiveForm(), FrmGetObjectIndex(FrmGetActiveForm(), yourfield'sname)); FldGetAttributes(yourfield,&attr1); attr1.numeric = 1; FldSetAttributes(yo

Looking for a Palm developer experienced in C++

2006-11-14 Thread Paulo Raffaelli
Hello all,I apologize in advance if this seems off-topic, so I'll keep it short. We're looking for a Palm developer who likes a challenge and who is looking to expand (or already has experience with) PocketPC. Intrigued? Go toto find out more. Please, principals only. No recruiters.Paulo RaffaelliS

Re: Decimal field validation...

2006-11-14 Thread Alan Ingleby
Scan thru looking for char values >=0 or <= 9.  The only other chars allowed must be a single decimal point, and possibly a '-' sign.  pretty easy really.AlanOn 11/14/06, Jorge Vasquez <[EMAIL PROTECTED]> wrote: Regards,Anybody has any idea on how to validate a field to guarantee that theuser has

Re: typecasting LstGetSelection for C++

2006-11-14 Thread Greg
Mode = LstGetSelection (static_cast(FrmGetObjectPtr (frmP, FrmGetObjectIndex (frmP, SetSyncModeList; seemed to do the trick. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: typecasting LstGetSelection for C++

2006-11-14 Thread JamesSturdevant
LstGetSelection returns Int16, not Int32. JamesS Greg wrote: I am trying (without much luck to convert my C code: Int32 Mode; Mode = LstGetSelection (FrmGetObjectPtr (frmP, FrmGetObjectIndex (frmP, SetSyncModeList))); to C++ The compilier does not like the casting (or lack there of). Coul

typecasting LstGetSelection for C++

2006-11-14 Thread Greg
I am trying (without much luck to convert my C code: Int32 Mode; Mode = LstGetSelection (FrmGetObjectPtr (frmP, FrmGetObjectIndex (frmP, SetSyncModeList))); to C++ The compilier does not like the casting (or lack there of). Could someone give me a hand casting the above correctly. Thanks G

Re: external device connectivity

2006-11-14 Thread Douglas Handy
sriram, >i wanted to know if it is possible to connect an external device such as a >camera to a Palm PDA and fetch data from the camera? External devices such as a camera are (nearly always) a USB client device, so must attach to a USB host device such as a PC. Current Palm OS based devices ar