Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
Use as follows:
---------------------------------
hcmenu1 = uicontextmenu;
uimenu(hcmenu1,...);
uimenu(hcmenu1,...);
showcontextmenu(hObj,hcmenu1);
---------------------------------
Try test_showcontextmenu.m for usage example.
This also contains a number of trivial routine functions:
getParentFigure(hObject)
%returns hObject's parent figure
getPositionOnFigure( hObject,units )
%returns absolute position of object on a figure
getRelPosition( hObject,units )
%get(hObject,'Position') with specific 'units'
getCurrentPoint( hFigure,units )
%get(hFigure,'currentpoint') with specific 'units'
Citation pour cette source
Igor (2026). showcontextmenu (https://fr.mathworks.com/matlabcentral/fileexchange/31448-showcontextmenu), MATLAB Central File Exchange. Extrait(e) le .
Informations générales
- Version 1.4.0.0 (7,46 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.4.0.0 | added test_showcontextmenu4:
|
||
| 1.3.0.0 | Thanks to Jesse this now supports uipushtool and uitoggletool objects (toolbar items).
|
||
| 1.2.0.0 | +support for lines etc. (objects without 'units' property (menu would be displayed on click position)
|
||
| 1.0.0.0 |
