Can I change a button’s value text to create an auto update ON/OFF toggle button? I also need this toggle button to make a call to RpSetRefreshTime() so that I can toggle web page updating either on or off.
I just added HTML as follows (not within an AWS tag or anything):
You then get the text from the ‘value’ definition in the stub c file:
char ValsCopy12 = “1 >> 2”;
So by allocating a fixed amount of space, you can copy various messages into that area.
Then in your submit handler, just check for which button called submit:
// get the value on the submit button presses (all submit button presses come to this function)
whichSubmitButton = RpGetSubmitButtonValue(theTaskDataPtr);
if(strstr(whichSubmitButton,“Enable”) != NULL) …
You can use RpFormNamedSubmit to dynamically change a button’s text.
You can use the callback function to call RpSetRefreshTime
citivic: I like the RpFormNamedSubmit method better, thanks for the comment. I’ll have to change the code when I get back into this project.