Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method ShowHideNavigationPanel ( 
 | 
  Boolean showpanel 
 | 
) id:Method_ApplicationLibMacroPlanner_ShowHideNavigationPanel 
 | 
{ 
 | 
  #keys: '[11660.0.1095398008]' 
 | 
  Body: 
 | 
  [* 
 | 
    //Show / hide navigation panel based on button status 
 | 
    tooltip := 'Show navigation panel'; 
 | 
    size := 0.0; 
 | 
    state := false.AsQUILL() 
 | 
    pressed := false; 
 | 
     
 | 
    if( showpanel ) 
 | 
    { 
 | 
      // retrieve the previous size 
 | 
      size := ApplicationLibMacroPlanner.FormatStringToReal( ValueHolderNavigationPanelSize.Value() ); 
 | 
      pressed := true; 
 | 
      tooltip := 'Hide navigation panel'; 
 | 
      state := true.AsQUILL(); 
 | 
       
 | 
      if( size < 50 ) 
 | 
      { 
 | 
        size := 320; 
 | 
      } 
 | 
    } 
 | 
    else 
 | 
    { 
 | 
      // save the current size 
 | 
      currentsize := ToolbarSupplyChainPanel.GetProperty( "Size" ); 
 | 
      ValueHolderNavigationPanelSize.Value( currentsize ); 
 | 
    } 
 | 
     
 | 
    ToolbarSupplyChainPanel.SetProperty( "Size", size ); 
 | 
    ButtonOpenCloseSupplyChainPanel.Pressed( pressed ); 
 | 
    ButtonOpenCloseSupplyChainPanel.SetProperty( 'Tooltip', tooltip ); 
 | 
    ValueHolderNavigationPanelState.Value( state ); 
 | 
  *] 
 | 
} 
 |