function setup_figure(hXP)
%SETUP_FIGURE Setup the figure for the Export Dialog

%   Author(s): J. Schickler
%   Copyright 1988-2010 The MathWorks, Inc.

% This can be a private method

sz   = export_gui_sizes(hXP);
cbs  = dialog_cbs(hXP);
hFig = figure('Position', sz.fig, ...
    'IntegerHandle','Off', ...
    'NumberTitle', 'Off', ...
    'Name', 'Export', ...
    'MenuBar', 'None', ...
    'HandleVisibility', 'Callback', ...
    'CloseRequestFcn', cbs.cancel, ...
    'Resize', 'Off', ...
    'Color',get(0,'DefaultUicontrolBackgroundColor'), ...
    'Visible', hXP.Visible);

set(hXP, 'FigureHandle', hFig);


% [EOF]
