Your other option would be to make your frame a Button object instead of a Frame object; it won't look any different (unless you also have it inherit from some kind of button template) and users won't be able to tell the difference, but it will support an actual OnClick script. This will only matter if what you want to do on "click" requires a hardware event -- if it does, then you need OnClick; you can't do that stuff in OnMouseDown/OnMouseUp.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
|