Hi,
I have a label on the form which I need to change dynamically to achieve
this I wrote a function
as listed below
void SetLabelTextFromStr(Word fieldID,CharPtr strP)
{
ControlPtr ctl;
ctl = (ControlPtr)GetObjectPtr (fieldID);
ErrNonFatalDisplayIf(!ctl, "missing field");
CtlSetLabel (ctl, strP);
}
my problem is the label changes dynamically only after I call
SetLabelTextFromStr(ListIssuesBiteLabel,"BITE ");
FrmDrawForm(FrmGetActiveForm());
If i call
SetLabelTextFromStr(ListIssuesBiteLabel,"BITE ");
the label does not change.
Any reasons as to why I need to call FrmDrawForm everytime If I wish to
change the label dynamically?
or I'am missing something?
I'am using CW6 with Palm OS 3.5.
--amit
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/