Try using the following... // FldSetSelection (FieldType *fldP,UInt16 startPosition, UInt16 endPosition)
pField = (FieldType*)GetObjectPtr(myControlID); FldCompactText(pField); currentText = FldGetTextPtr(pField); FldSetSelection (pField,0, StrLen(currentText)); //This will select from position 0 to the end of the text string. Dan ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, May 25, 2004 1:28 PM Subject: Focus with selection on edit fields > > > > > Hi! > > I would like that when a edit field gained focus, all the field would be > selected. > > Does anyone know how to do it? > > Thanks! > > > -- > 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/
