Archive for August 20, 2010

Prevent executing menu items

Well, this is almost ‘Most Wanted’ snippet around 😀 Have you ever wanted user to prevent executing some menu item? I did, but I didn’t had answer how to do it. There is no way to disable menu item, but what we can do is to cancel executing it. What we are going to do is to add event to ‘menuActions’. So, let’s take a look.

Read more…