I have a field defined in a form and in certain cases I need to hide the
field.  The field is defined with the 'Underline' property checked (true) in
the Constructor.  I need to hide this line when I hide the field.  I am not
able to successfully do with the following code altenatives.

I am using Palm OS 3.1 include path in my application and using the Release
6 of Codewarrior and the Constructor that came with it.

I searched the archives but I am not completely sure what is going on in
terms of releases and versions of the constructor.  According to the
archives there appears to have been a problem only in the pre-R6 Codewarrior
version.

        // alternative 1
        fld = (FieldPtr) FrmGetObjectPtr (frm, FrmGetObjectIndex(frm, id));
        fld->attr.underlined = 0;

        // alternative 2
        FieldAttrType attr;
        FldGetAttributes(fld, &attr);
        attr.underlined = 0;   //noUnderline??
        FldSetAttributes(fld, &attr);
        
....

        CtlEraseControl (ctl);
        CtlSetUsable (ctl, false);

....

        FrmDrawForm(frm);




Thank You

- Srinivas

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

Reply via email to