10-30-2012 02:37 AM
any idea how to achieve this? thanks
Solved! Go to Solution.
10-30-2012 03:01 AM
Hi,
You can check the sample from the github and project name is CascadeCookBookqml.
Link: https://github.com/blackberry/Cascades-Samples
In the Assets folder button.qml contain the ImageButton Demo you can refer that.
Thanks,
Megha.
feel free to accept as a solution or like the post.
10-30-2012 05:10 AM - edited 10-30-2012 05:10 AM
Hi itcraps,
You can use onTouch slot to do so.
onTouch :
{
if(event.touchType == TouchType.Up)
doYourStuffHere();
}
You may use other TouchType too.
Regards,
Nishant Shah
10-30-2012 05:26 AM
Hi itscrap,
You can use ImageButton in this case. Provide defaultImageSource to it. & in its onClicked event you can handle its tap just like in Button.
ImageButton {
defaultImageSource: "asset:///myDefaultImage.png"
pressedImageSource: "asset:///myPressedImage.png"
disabledImageSource: "asset:///myDisabledImage.png"
onClicked: {
\\ your stuffs
}
}
you can refer this link: https://developer.blackberry.com/cascades/referenc
10-30-2012 05:32 AM
thanks Meghas ![]()