Wednesday, December 9, 2009

Setting Hand Cursor in Label

Lot of people have asked me this one question. While the answer is relatively simple, I have not found it mentioned at a lot of places. So here goes,

How to set a hand cursor in a label?

There are 3 properties put together that do this (Most places might tell you only 2).
1. useHandCursor = true;
2. buttonMode = true;
3. mouseChildren = false;

And lo and behold. All done.

No comments :