How to disable a Button – So that it shows but can not be clicked

How to disable a Button – So that it shows but can not be clicked

BY 08 Aug 2013 Native Application Development

Hi,

I want to disable buttons so that they are visible but cannot be clicked.

If i use the following :
pButton[i]->RemoveActionEventListener(*this);
i can make sure that they do not generate any event on Pressing.
But,i want to know if they can be disabled so that they can not be clicked at all.
Also,there are API’s for disbled state of Button such as setdisabledbitmap etc.So.just wanted to know how can the button be send to disbled state?

Regards,

Written by