It's a neat piece of code. ;) I still prefer my though due to two reasons:
- It is more obvious which conditions need to be satisfied for the menu to get displayed.
- Each menu caption is written only once. It is easier to maintain interface consistancy.
Thank you for the idea anyway.