Where are buttons explained, I see good use of a button in the example EFS, Alerts/AlertMaWithReset.efs, but when I look up drawTextRelative there is no information on buttons.
OK, that was fun, I see that for drawTextRelative(.., Text, ..)
Text - This is the text that will appear on the study. You can associate a URL with this text. When the user clicks on the text, a browser will be invoked. To associate a URL, add (eg) "@URL=http://www.yoururl.com/index.asp?parmeter1=abc¶meter2=xyz" to the end of your text string.
a browser can be invoked.
Looking at the example code I see that that this is set to:
"Reset@URL=EFS:ResetCallBack"
And also in the example there is a stand-alone function:
function ResetCallBack(nButtonPressed) {
bIsLong = false;
}
So, if I fill in the blanks, using EFS:<function name>, eg.
"@URL=EFS:ResetCallBack"
to the button text invokes my function when the user clicks it.
Here are several efs's that you may find of interest. If you use the search tool, I am sure you can find several other efs's that can help you as well.
Comment