why invisible panel is visible while printing?

Hi,
I have 2 panels in my GUI overlapping each other, visibility of one of them is set to 'off', however when I print the figure both panels are visible. My code:
function Print_Callback(hObject, eventdata, handles)
% hObject handle to Print (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
orient landscape
printpreview(gcf)
printdlg(gcf);
Any ideas appreciated.
Thanks,
Dominika

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Asked:

on 24 Jul 2014

Answered:

on 25 Jul 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!