On MouseUp with a parameter question
Posted: Mon May 29, 2017 2:56 pm
When I use the following code, what actually happens?
This is the code for a button object:
on MouseUp pBtnNum
--answer pBtnNum
if pBtnNum = 3 then answer "ok"
end MouseUp
I am assuming that by adding the parameter pBtn to the “on MouseUp” command that this allows me to access the pBtn in the script.
This parameter is different for buttons vs. fields.
The results were:
Left Click :nothing
Right Click : Message box
This is the script for a field object:
on mouseUp pBtn
answer pBtn
end mouseUp
The results were:
Left Click : nothing
Right Click : message box with the number 3
I am just trying to understand this and I can’t seem to find documentation about this.
This is the code for a button object:
on MouseUp pBtnNum
--answer pBtnNum
if pBtnNum = 3 then answer "ok"
end MouseUp
I am assuming that by adding the parameter pBtn to the “on MouseUp” command that this allows me to access the pBtn in the script.
This parameter is different for buttons vs. fields.
The results were:
Left Click :nothing
Right Click : Message box
This is the script for a field object:
on mouseUp pBtn
answer pBtn
end mouseUp
The results were:
Left Click : nothing
Right Click : message box with the number 3
I am just trying to understand this and I can’t seem to find documentation about this.