Return to Snippet

Revision: 25160
at March 22, 2010 06:15 by shiningdev


Initial Code
{
    // create a confirm dialog with a yes and no button. Specif
    $response = `confirmDialog -title "Confirm"
    -message "Yes or No? It's your choice..."
    -button "Yes"
    -button "No"
    -defaultButton "Yes"
    -cancelButton "No"
    -dismissString "No"`;
    // check response
    if( $response == "Yes" ) {
        print("User says yes\n");
        } else if( $response == "No" ) {
        print("User says no\n");
    }
}

Initial URL
http://nccastaff.bournemouth.ac.uk/jmacey/RobTheBloke/www/mel/GUI_dialogs.html

Initial Description
2-button dialog code

Initial Title
mel - interaction - 2-button dialog code

Initial Tags

                                

Initial Language
Mel