Hi.
I'm creating a GUI using GUIDE that has a table, whose first column format is a pop-up menu. In each pop-up menu there's a line "new label".
I want that every time the user picks "new label", a new dialog box will open, that would allow entering a new string and update the label list stored in handles.
I'm able to do something with cellSelectionCallback, but it only executes when I select a cell, not when I pick a value from the cell's pop-up menu. It seems the popupmenu1_callback never fires.
Also, there's not handle to a pop-up menu in the handles.
Attached is the code section in the cellSelection callback:
function uitable1_CellSelectionCallback(hObject, eventdata, handles)
CellChoice = eventdata.Indices;
Tiss = eventdata.Source.Data;
TisChoice = Tiss{CellChoice};
if strcmp(TisChoice,'new label')
NewLabel = inputdlg('Please Enter the New Label Name');
handles.TissueDataBase(end+1) = NewLabel;
handles.uitable1.ColumnFormat = {handles.TissueDataBase(2,:),[]};
end
Kind regards,
Ariel