4Misc_Starth4Platformh@9VersionCheck xHH@Rg(HHdh xHH@Rg(HHdh x HH@Rg(HHdh ^Graph*WDashSettings#  ! bF$6Normal@ Monaco<HHHH$$4 4 4 4 4 4 qhome=9dJJW MBP:Users:jjw:Desktop:JJW MBPBDDesktop cujjw/:Users:jjw:Desktop/DesktopJJW MBPUsers/jjw/Desktop/ RecentWindowsAdvanced Topics.ihfAnalysis.ihfControls.ihfCurve Fitting.ihfGraphs.ihfIgor Reference.ihfImage Processing.ihfProgramming Techniques.ihfSubwindows.ihfTest 4Misc_EndhTXOPState_Start hPeakFunctions2-64fs;4XOPState_Endh\!5zhAڠA somewave ????jW?h?Á>ϽA|uF0(?F}?2>*// Platform=Macintosh, IGORVersion=8.040, architecture=Intel, systemTextEncoding="MacRoman", historyTextEncoding="UTF-8", procwinTextEncoding="UTF-8", recreationTextEncoding="UTF-8", build=34722 #pragma TextEncoding = "UTF-8" Silent 101 // use | as bitwise or -- not comment. DefaultFont "Helvetica" MyGraph() MoveWindow/P 70,98,804,766 MoveWindow/C 52,331,533,481 KillStrings/Z root:gWMSetNextTextFilesTextEncoding Window MyGraph() : Graph PauseUpdate; Silent 1 // building window... Display /W=(35,45,430,253) somewave as "Test" NewPanel/HOST=#/EXT=0/W=(0,0,100,100) Button testit_tab0,pos={1.00,1.00},size={50.00,20.00},disable=1,title="Test0" Button testit_tab1,pos={1.00,26.00},size={50.00,20.00},title="Test1" RenameWindow #,MyPanel SetActiveSubwindow ## EndMacro  #pragma TextEncoding = "UTF-8" #pragma rtGlobals=3 // Use modern global access method and strict wave access. Function MakeGraph() make/N=(10)/O somewave = sin(x) display/N=MyGraph somewave as "Test" NewPanel/EXT=0/HOST=#/N=MyPanel/W=(0,0,0.1,0.1) Button testit_tab0, title="Test0" Button testit_tab1, title="Test1" return 0 end Function TestOnOff(onoff) variable onoff string tablist // comment out the next code line // then activate the GRAPH // when you run the TestOnOff, you will get an error message //SetActiveSubwindow MyGraph#MyPanel tablist = ControlNameList("MyPanel",";","*_tab0") ModifyControlList tablist disable=(onoff) tablist = ControlNameList("MyPanel",";","*_tab1") ModifyControlList tablist disable=(1-onoff) return 0 end