Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
My Carrier: Telus
Accepted Solution

Get SystemDialog Result

 

 

How do we get the result of what the user choose? I am able to show the dialog but I have no idea how to capture what the user choose.

 

    dialog = new SystemDialog("Yes","No",this);
    dialog->setTitle(title);
    dialog->setBody(message);
    dialog->show();

 

Thank you!!!

www.jackdevora.com
Please use plain text.
Developer
simon_hain
Posts: 16,113
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Get SystemDialog Result

you can execute it blocking, using exec, which returns a result right away.
or you use show and connect to the finished signal:
https://developer.blackberry.com/cascades/reference/bb__system__systemdialog.html#finished
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
My Carrier: Telus

Re: Get SystemDialog Result

Thank you!!!!!!!!!

www.jackdevora.com
Please use plain text.