[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44748] Mouse click callbacks of a 'listbox' u
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #44748] Mouse click callbacks of a 'listbox' uicontrol |
Date: |
Mon, 06 Apr 2015 18:02:37 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 |
URL:
<http://savannah.gnu.org/bugs/?44748>
Summary: Mouse click callbacks of a 'listbox' uicontrol
Project: GNU Octave
Submitted by: gyom
Submitted on: Mon 06 Apr 2015 06:02:36 PM GMT
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
F = figure;
H = uicontrol(F,...
'style','listbox',...
'units','normalized',...
'Position',[0.05 0.05 0.9 0.9],...
'Callback','disp(''select'');',...
'String',{'aaaaaa','bbbbbb','cccccc','dddddd'});
C = uicontextmenu('Parent',F);
set(H,'uicontextmenu',C);
uimenu('Label','Do something', 'Parent',C,'Callback','disp(''menu'')');
With this figure, MATLAB behaviour is:
* callback triggered only on key-up of left click, even if item already
selected.
(in Octave, if an item is already selected, a click on it does not trigger
callback)
* nothing happens with middle click.
* right click dislays contextual menu but does not trigger callback nor change
the selected item.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44748>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44748] Mouse click callbacks of a 'listbox' uicontrol,
Guillaume <=