I want to start an action in a GUI by double-clicking on a cell in a table (created by uitable). I can capture the selection through the CallSelectionCallback function but I can not capture the double-clicking.
Usually after a double click the SelectionType property of the figure changes to Open but in this case it remains at Normal.
Any suggestions?
Iman
"Iman " <iza...@yahoo.com> wrote in message <hj2ahe$jrk$1...@fred.mathworks.com>...
switch get(cbData,'ClickCount')
case 1
SingleClickHandler(handles,cbData);
case 2
DoubleClickHandler(handles,cbData);
otherwise
% unhandled for now
end
end
function main()
h=figure;
table = uitable;
set(table,'Data',rand(3))
uitablepeer = findjobj(h, '-nomenu', 'class', 'uitablepeer');
set(uitablepeer,'MouseClickedCallback',@MouseClickHandler)
end