I need image button as menubutton

Hi
I have one requirement in which i will be using an image ( imagebutton) as a menubutton.

Currently in the existing MenuButton it is giving a button with options to set icon.

But i need exactly an image as a menu button. Simply i need the ImageButton of smartclient should work like a MenuButton.

Is there any way to achive this?

Thanks,
Rajadurai T

Hi Rajadurai,

You can do this by creating an ImgButton instance, and setting the click handler to simply move the menu into place and show it. Something like:

click:function () {
    myMenu.moveTo(this.getPageLeft(), this.getPageBottom());
    myMenu.show();
}

Working

Hi
Thanks. Its working fine