Hiya
I just did a tally which was based on a simple label that changed style (colour) based on the key state; but you can tailor to your cut button.
My label had an ID of "CG1-tally". Nothing else special about it, other than a suitable size and shape.
Then I made an Ogscript in the 'meta' folder called CG1 Tally. It has event types of onchange and onload. Doesn't always work on first opening the panel, but because of the onchange it is reliable after the first time.
This is the contents of my script - (in Source, not Attributes). Forgive any typing errors as I cannot copy/paste.
<ogscript handles="onchange,onload" name="CG1 Tally" oid="0x9A1">var keystate = params.getValue(0x9A1, 0):
if (keyState == 2)
{
ogscript.setStyle('CG1-tally', "#FF0000");
}
else
{
ogscript.setStyle('CG1-tally', "#000000");
}</ogscript>
Clearly the 0x9A1 along with other details will need to be tailored, but hope this helps.
PS remind me how to correctly post script? Ha
Paul
#DashBoard