> displayed.  Is there a
> way to display a selection from a list when a form is first drawn?


In your form init you need to set the value of the trigger.

As an example, I have the values for my list choices in a string
list and I want it to default to item number 0, so in my form's
init routine I did this:

        SysStringByIndex(ModifiersStringList, 0, str, sizeof(str));

        if (gTriggerLabel != NULL)
                MemPtrFree(gTriggerLabel);
        
        gTriggerLabel = MemPtrNew(StrLen(str) + 1);
        StrCopy(gTriggerLabel, str);
        CtlSetLabel(GetObjectPtr(EditDetailsModifiersPopTrigger),
gTriggerLabel);


gTriggerLabel is a global Char *


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

Reply via email to