Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - 日本語


uicontextmenu

コンテキストメニューを作成

呼び出し手順

h = uicontextmenu()

説明

この関数は空のコンテキストメニューを作成します. なお,メニューはuimenuにより 追加できます.

The menu appears on the screen each time that an item is created.

It is displayed exactly where the mouse pointer is, even if the pointer is out of any Scilab element. If the pointer is out of the computer's screen, the menu is displayed on the screen's edge beyond which the pointer is located.

It remains at the top level foreground, in front of any Scilab GUI or any external GUI of external applications, as long as no mouse button is clicked anywhere, on the menu or outside.

// コンテキストメニューを作成
hMenu = uicontextmenu();

// サブメニューを作成
hItem1 = uimenu("Label", "Item1", "Parent", hMenu, "Callback", "disp(""Item1 clicked!"")");
hItem2 = uimenu("Label", "Item2", "Parent", hMenu, "Callback", "disp(""Item2 clicked!"")");
hItem3 = uimenu("Label", "Item3", "Parent", hMenu, "Callback", "disp(""Item3 clicked!"")");

参照

  • uimenu — 図にメニューまたはサブメニューを作成する
  • addmenu — 対話的にボタン/メニューを定義
  • uicontrol — グラフィックユーザーインターフェイスオブジェクトを作成
Report an issue
<< setmenu Menus uimenu >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jun 17 17:54:19 CEST 2024