I'm updating a label during a calculation, and then when the calculation is done, I'm hiding the label, and showing a button. The way I'm doing it now seems stupid. (writing blanks). There must be a better way, but simply hiding the label doesn't seem to work.
What is the best way to hide a label once it has been shown on the screen?

{
/// Hide the Feedback label

fieldIndex = FrmGetObjectIndex(MainfrmP,MainCompareNowLabel);
Control = (ControlType *)FrmGetObjectPtr(MainfrmP,fieldIndex);
CtlSetLabel(Control," "); <<<< This is the only way it will clear the area
FrmShowObject(MainfrmP,fieldIndex);
FrmHideObject(MainfrmP,fieldIndex);

/// Show Button
fieldIndex = FrmGetObjectIndex(MainfrmP,MainCompareNowButton);
FrmShowObject(MainfrmP,fieldIndex);
FrmUpdateForm(FrmGetObjectIndex(MainfrmP,MainForm),frmRedrawUpdateCode);

}

Chris Bruner
Compulife Software Inc.
==============================================

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

Reply via email to