~ubuntu-branches/ubuntu/trusty/scilab/trusty

« back to all changes in this revision

Viewing changes to modules/gui/macros/createpopup.sci

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-02 11:02:49 UTC
  • mfrom: (1.4.6)
  • Revision ID: package-import@ubuntu.com-20120802110249-0v5953emkp25geuz
Tags: 5.4.0-beta-2-1~exp1
* New upstream release
* Remove libscilab-java (remove upstream). Use libscilab2-java instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2
 
// Copyright (C) 2008 - INRIA - Vincent COUVERT 
3
 
// 
 
2
// Copyright (C) 2008 - INRIA - Vincent COUVERT
 
3
//
4
4
// This file must be used under the terms of the CeCILL.
5
5
// This source file is licensed as described in the file COPYING, which
6
6
// you should have received as part of this distribution.  The terms
7
 
// are also available at    
 
7
// are also available at
8
8
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
9
 
10
10
// Create a popupmenu and waits for a user input
11
11
function Cmenu = createpopup(listOfMenus)
12
12
 
 
13
warnobsolete("uicontextmenu", "5.4.1");
 
14
 
13
15
// Example of use
14
16
if argn(2) <=0 then
15
17
  listOfMenus = list("menu1",..
16
18
                     "menu2",..
17
19
                     list("menuwithsubmenus", ..
18
 
                          "submenu1",..
19
 
                          list("submenu2", ..
20
 
                               "subsubmenu1",..
21
 
                               list("subsubmenu2", "subsubsubmenu"),..
22
 
                               "subsubumen3"), ..
23
 
                          "submenu3"),..
24
 
                     "menu3");
 
20
                          "submenu1",..
 
21
                          list("submenu2", ..
 
22
                               "subsubmenu1",..
 
23
                               list("subsubmenu2", "subsubsubmenu"),..
 
24
                               "subsubumen3"), ..
 
25
                          "submenu3"),..
 
26
                     "menu3");
25
27
end
26
28
 
27
29
// Create a contextmenu