button Menu oddity?
Posted: Tue Jan 31, 2017 5:36 pm
I make a new card with, say, an option menu and a pulldown, whatever. I clear the scripts of both buttons and apply.
Now if I examine the script of either of them again, I find that the standard boilerPlate "menuPick" handler has been reinstated. I cannot clear those scripts and make them stick.
LC v.6.7, but I bet it matters not if I try v.8
Here is the odder part. The "menuPick" message is passed out of those buttons, because I can trap them in the card script. That is what I originally wanted anyway, with a bunch of pullDowns and a single card level handler.
So, are these "ghost" menuPick handlers, a la the "mouse up" handler in a newly created ordinary button? But that handler can be explicitly cleared (or applied, making it "real"), and stays clear, or applied.
If I add some gadgetry to the menuPick handler, I have to then pass "menuPick" explicitly, what I would consider "normal" behavior.
Ultimately, since an unadorned "menuPick" message is passed to the card, it does not bother me overmuch. I assume it is a "ghost", which is fine, I just never knew about it.
Craig Newman
Now if I examine the script of either of them again, I find that the standard boilerPlate "menuPick" handler has been reinstated. I cannot clear those scripts and make them stick.
LC v.6.7, but I bet it matters not if I try v.8
Here is the odder part. The "menuPick" message is passed out of those buttons, because I can trap them in the card script. That is what I originally wanted anyway, with a bunch of pullDowns and a single card level handler.
So, are these "ghost" menuPick handlers, a la the "mouse up" handler in a newly created ordinary button? But that handler can be explicitly cleared (or applied, making it "real"), and stays clear, or applied.
If I add some gadgetry to the menuPick handler, I have to then pass "menuPick" explicitly, what I would consider "normal" behavior.
Ultimately, since an unadorned "menuPick" message is passed to the card, it does not bother me overmuch. I assume it is a "ghost", which is fine, I just never knew about it.
Craig Newman