From: Screwdriver223 on
Hi

I have a GUI which uses uitabpanel (available from the file
exchange). The GUI runs fine from the MATLAB command prompt
(R2007B). However, when I compile it and then run the executable I
get the following error:

??? Error using ==> uipanel
An object and its uicontextmenu must be in the same figure.

Error in ==> uitabpanel at 130

Error in ==> sticsgui at 35

This is frustrating to troubleshoot since I cannot reproduce it from
within MATLAB. Anyone have any ideas for possible solutions or
workarounds?

Thanks,
Dave

From: Screwdriver223 on
On Nov 2, 5:45 pm, Screwdriver223 <david.ko...(a)gmail.com> wrote:
SNIP> uitabpanel complains in compiled GUIs

If anyone else has the same problem, I avoided it by removing all
references to the uicontextmenu (cmenu) in uitabpanel.m. The compiled
program now runs fine. Of course, there is no context menu on the tab
panel, but it was never really necessary. I still don't know why it
would only throw an error when compiled, but not when run from MATLAB.

Dave

 | 
Pages: 1
Prev: Are these exceptions harmful
Next: FXLMS Demo