Yes, I'm using FrmGetObjectIndex() for the indeces. I
use this method all over my app and the other 99.9% of
the time it works fine.

It may even be a method that shipped with the CW 8
tutorial and I just started using it; there's a
comment above it referring to CW 8.

Here it is, in case you're interested:

void setLabelText( FormPtr frm, int labelid, CharPtr s
)
{
        int objindex;
        objindex = FrmGetObjectIndex( frm, labelid );
        
        FrmHideObject(frm, objindex);
        FrmCopyLabel(frm, labelid, s);
        FrmShowObject(frm, objindex);
}

Brian

> > I use a method, setLabelText(), that simply does
> > FrmHideObject, FrmCopyLabel, and FrmShowObject. I
> use
> > this method to set all the labels in this form. 
> When I
> > want to 'hide' a label, I simply pass an empty 
> string.
>
> are you using FrmGetObjectIndex() for your index's?
> or,
> just assuming that first index is 0, then 1, 2, 3 
> etc :)
>
> ---
> Aaron Ardiri


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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

Reply via email to