LINECMENU

버전 1.3.0.0 (6.37 KB) 작성자: Matt Fig
Utility for creating a standard uicontextmenu for line objects.
다운로드 수: 1.1K
업데이트 날짜: 2011/4/13

라이선스 보기

LINECMENU Creates a uicontextmenu or submenu to a pre-existing uicontextmenu for a line object.
U = LINECMENU; creates a uicontext menu for a line object. U can then be
put in the 'uicontextmenu' property of any (or several) line object(s).

LINECMENU(H) appends a line menu to uicontextmenu or submenu in handle H.

The sample image shows the menu which comes up when a line is clicked.

The code should be easy enough to follow that it is extensible. For
example, one could add more sizes to the MarkerSize menu by following the
pattern laid out in the code.

Also included is another M-file, DEFAULTLINECREATEFCN. This file is meant to be called from the STARTUP file so that LINECMENU is automatically placed in the uicontextmenu for all subsequently created lines. This is optional, and will result in all future lines created by the user having the LINECMENU options. The directions for performing this simple, optional operation are included in the help for DEFAULTLINECREATEFCN. If you want to do this and are unable to figure it out, feel free to contact me and I will help you.

Also included is a bonus function, DUALCOLORPLOT. This function uses LINECMENU, and so serves as a demo for LINECMENU. DUALCOLORPLOT was inspired by a recent post on Doug Hull's video page.

인용 양식

Matt Fig (2024). LINECMENU (https://www.mathworks.com/matlabcentral/fileexchange/30989-linecmenu), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.3.0.0

Implemented Oleg's suggestions.

1.2.0.0

Added the optional default file.

1.1.0.0

Abandoned nested functions in bonus file.

1.0.0.0