09-07-2012 06:17 AM
Hi,
I want Action on Label. plz suggest me.
09-07-2012 11:24 AM
Hi,
I am not sure I understand what you want. What do you mean by action? Do you want to register a callback for when the user touches the label?
Martin
09-10-2012 01:06 AM
09-10-2012 01:51 AM
Hi,
Try this code.
import bb.cascades 1.0
Page {
attachedObjects: [
CustomDialog {
id: myCustomDialog
content: Container {
Button {
text: "Yes"
onClicked: myCustomDialog.visible = false
}
Button {
text: "No"
onClicked: myCustomDialog.visible = false
}
}
}
]
content: Container {
Label {
id: labelID
text: "text"
onTouch: {
myCustomDialog.visible = true
}
}
}
}
09-10-2012 09:13 AM