An earlier post may help...

>Earlier versions of the OS didn't care about this field and the current
>version of Constructor doesn't handle it properly.  The newer Palm OS
>version does use the underline field.
>I just added code so when I update any editable fields, I update change the
>attribute to 'grayUnderline'.  These changes won't effect fields in OS2.x
>and 3.0 but will get rid of the solid underline as chars are entered. (if
>thats what you're looking for)
>
>if(TextFieldPtr->attr.editable == 1)
>    TextFieldPtr->attr.underline = grayUnderline;
>else
>    TextFieldPtr->attr.underline = noUnderline;

-----Original Message-----
From: revcom <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Monday, April 17, 2000 2:45 AM
Subject: Underlining in fields?


>When I define an underlined field and enter text in it, the underlines only
>appear under each new character as it is entered.
>
>In contrast, the built in apps show a complete line of underlines before
any
>text entry takes place.
>
>Am I doing something wrong or is there some trick I am missing?
>
>Here is my code:
>
>  FldSetTextHandle(getObject(formP, SOUND_FIELD), soundH); //getObject:
does
>FrmGettObjectPtr
>  FldSetSelection(getObject(formP, SOUND_FIELD), 0, StrLen(soundStr));
>  FrmSetFocus(formP, FrmGetObjectIndex(formP, SOUND_FIELD));// Set the
>insertion point blinking in field
>
>Here is my .rcp file entry (PilRC/gcc)
>
> FIELD ID SOUND_FIELD AT (80 PREVTOP 90 10) MAXCHARS 12 UNDERLINED FONT 1
>USABLE
>
>
>Many thanks for your help
>Robert Crago
>Revelation Computing Pty Limited
>PO Box 459, ASPLEY
>Brisbane, Australia 4034
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to