Quote: Originally Posted by
IandI 
Actually, I think it is just not working in the overlay. I think it's working fine in the module. The options.sdo is there. Did you fix that bug in the overlay also? I don't think there are many examples using overlays, so maybe no one tried yet. Yes, I am running 1.1.0.0 (release version). Do these type of options read and write the hard drive each time or do they get stored in memory?
I want to release the speed volume digitalmod I made and this is holding me up. I will triple check my code again to see if it is my mistake.
Please comment on the other items when you have time. Thanks.
Return values are working in 1.1.0.0 for overlays, so is saving of options.
Does the following code work for you if you implement it. Basically, you should see a message box when the back function happens and the back function should be cancelled since TRUE was returned. The count should be incremented in the message box every time it is called and the count should continue incrementing after restarting StreetDeck from where it left off.
Code:
'*******************************************************************************
'Overlay_OnFunction
'DESC: event OnFunction - Called when a function is sent to the panel, return true if the panel processes it
'*******************************************************************************
Function Overlay_OnFunction(eFunction)
If eFunction = eFUnctionBack Then
overlay.MsgBox "Back", overlay.GetIntOption(1)
overlay.SetIntOption 1, overlay.GetIntOption(1) + 1
Overlay_OnFunction = TRUE
ElseIf eFunction = eFunctionStop Then
overlay.SetIntOption 1, 0
else
Overlay_OnFunction = FALSE
End If
End Function