Michael,
This works in my app. Just send it the ID of the Button and the text you
wish to have displayed.

/***********************************************************************
 * FUNCTION:            LblChangeText
 * DESCRIPTION: Changes Label Text
 * PARAMETERS:          wID: ID of Label, s: Text String for Label  
 * RETURNED:            nil
 ***********************************************************************/

void LblChangeText (Word wID, char *s)
 {
 FormPtr pForm;
 Word wIndex;

 if (s == NULL) // Bad arg, do nothing
 return;

 pForm = FrmGetActiveForm();
 wIndex = FrmGetObjectIndex (pForm, wID);
 FrmHideObject (pForm, wIndex);
 FrmCopyLabel (pForm, wID, s);
 FrmShowObject (pForm, wIndex);
 }




At 07:40 31/03/99 -0800, you wrote:
>Like the subject says.  I have a button, on which I 
>want to change it's text when the button is clicked.
>
>How is that done?
>
>
>----------------------------------------------------
>Shoot-to-Win
>
>Protect the 2nd Amendment
>----------------------------------------------------
>
>
>

-- -- -- -- -- -- -- -- --
Robert Baglin
Southern Cross University
P.O. Box 157
Lismore
2480
ph  +61 2 6620 3658
fax +61 2 6620 3880
-- -- -- -- -- -- -- -- --

Reply via email to