Skip to content
Snippets Groups Projects
Commit 9ae2e669 authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

set 'BackgroundColor' propertie on panel handle

parent 41411a4b
No related branches found
No related tags found
No related merge requests found
......@@ -15,9 +15,23 @@ function display_QC( hGUI, hAxes )
% -------------------------------
tsg = getappdata( hGUI, 'tsg_data');
% get panel handle
% ----------------
hdlPanel = findobj(hGUI, 'tag', 'TAG_QC_DISPLAY_PANEL');
% get color axes and set 'BackgroundColor' properties of panel handle
% give a transparency effect
% -------------------------------------------------------------------
bgColor = get(hAxes(1), 'Color');
set(hdlPanel, 'BackgroundColor', bgColor);
% and to his chlidren uicontrol
% -----------------------------
set(findobj(get(hdlPanel,'children'),'style','text'),...
'BackgroundColor', bgColor)
% set panel visible
% -----------------
hdlPanel = findobj(hGUI, 'tag', 'TAG_QC_DISPLAY_PANEL');
set(hdlPanel, 'visible', 'on');
% get list of keys from hashtable tsg.qc.hash, defined inside
......@@ -25,10 +39,6 @@ set(hdlPanel, 'visible', 'on');
% -----------------------------------------------------------
qc_list = get(tsg.qc.hash);
% Plot the Salinity with the right color code
% -------------------------------------------
%bgColor = get(hAxes(1), ');
% iterate (loop) on each key store inside hastable
% ------------------------------------------------
for i=1:numel(qc_list)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment