MATLAB: Tabbed GUI: How to make a panel visible on all tabs

guiguide

I'm working on a tabbed GUI, and I have a specific panel that I want to be visible on every tab.
The tabs work fine, but I can't figure out how to keep the designated panel visible on all tabs. I tried manually setting the position and visibility of the designated panel, as well as reassigning the parent of the designated panel as the overall figure with no luck. (see below)
function SolutionPanel_CreateFcn(hObject, eventdata, handles)
hObject = set('Parent', handles.figure1);
hObject.Position = [0 0 150 15.5];
hObject.Visible = 'On';
Any ideas on how to make this work?

Best Answer

The easiest way is to put the panel outside of the area covered by the tabs.
Otherwise, you can either put a copy of the panel on every tab, or you can arrange to have the SelectionChangedFcn of the uitabgroup set the parent of the panel to be the current tab, which would move it from whichever tab it was at, into the current tab.