summaryrefslogtreecommitdiff
path: root/modules/gui/demos/dialogs/messagebox.sce
blob: fe22d116349c28ad67020f0612eb1d5532fb2960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2014 - Scilab Enterprises - Paul Bignier
//
// This file is released under the 3-clause BSD license. See COPYING-BSD.

function demo_messagebox()

    res = messagebox(_(["Simple example of message";
    "First row of comments";
    "Second row";
    "etc...";]), _("Title"), "info", _(["Button 1" "Button 2"]), "modal");

    if res == 1 then
        disp(_("Button 1 clicked."));
    else
        disp(_("Button 2 clicked"));
    end

endfunction

demo_messagebox()
clear demo_messagebox;