Ignore:
Timestamp:
Aug 21, 2009 11:47:46 AM (13 years ago)
Author:
srkline
Message:

modified the UCALC panel to have the control bar on the left, so that it wll better fit on-screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/U_CALC.ipf

    r547 r549  
    131131End 
    132132 
    133 // make the display panel a graph with a control bar just as in SASCALC 
    134 // so that the subwindow syntax doesn't break all of the other functionality 
     133//// make the display panel a graph with a control bar just as in SASCALC 
     134//// so that the subwindow syntax doesn't break all of the other functionality 
     135//// 
     136//Window UCALC_Panel() : Graph 
     137//      PauseUpdate; Silent 1           // building window... 
     138//      Display /W=(55,44,670,850) /K=1 
     139//      ModifyGraph cbRGB=(36929,50412,31845) 
     140//      DoWindow/C UCALC 
     141//      DoWindow/T UCALC,"USANS Simulation" 
     142//      ControlBar 320 
     143//       
     144//      GroupBox group0,pos={5,0},size={577,159},title="Instrument Setup" 
     145//      GroupBox group1,pos={5,165},size={240,147},title="Sample Setup" 
     146//      GroupBox group2,pos={327,165},size={259,147},title="Results" 
     147//       
     148//      PopupMenu popup0,pos={17,18},size={165,20},title="Sample Aperture Diam (in)" 
     149//      PopupMenu popup0,mode=3,popvalue="0.625",value="0.25;0.50;0.625;0.75;1.0;1.75;2.0;" 
     150//      PopupMenu popup2,pos={220,18},size={165,20},title="Presets" 
     151//      PopupMenu popup2,mode=3,popvalue="Long Count",value="Short Count;Medium Count;Long Count;" 
     152//      PopupMenu popup2,proc=UCALC_PresetPopup 
     153// 
     154//      SetDataFolder root:Packages:NIST:USANS:Globals:U_Sim 
     155//       
     156//      Variable top=44,pt=0,inc=18 
     157//      SetVariable setvar1a,pos={12,top},size={100,15},title="theta min",value= gAngLow1 
     158//      SetVariable setvar1b,pos={119,top},size={100,15},title="theta max",value= gAngHigh1 
     159//      SetVariable setvar1c,pos={227,top},size={100,15},title="increm",value= gIncr1 
     160//      SetVariable setvar1d,pos={335,top},size={100,15},title="# points",value= gNumPts1 
     161//      SetVariable setvar1e,pos={443,top},size={100,15},title="count (s)",value= gCtTime1 
     162//      SetVariable setvar1a,labelBack=(65535,32768,32768) 
     163//       
     164//      pt += inc 
     165//      SetVariable setvar2a,pos={12,top+pt},size={100,15},title="theta min",value= gAngLow2 
     166//      SetVariable setvar2b,pos={119,top+pt},size={100,15},title="theta max",value= gAngHigh2 
     167//      SetVariable setvar2c,pos={227,top+pt},size={100,15},title="increm",value= gIncr2 
     168//      SetVariable setvar2d,pos={335,top+pt},size={100,15},title="# points",value= gNumPts2 
     169//      SetVariable setvar2e,pos={443,top+pt},size={100,15},title="count (s)",value= gCtTime2 
     170//      SetVariable setvar2a labelBack=(65535,65533,32768) 
     171//       
     172//      pt += inc 
     173//      SetVariable setvar3a,pos={12,top+pt},size={100,15},title="theta min",value= gAngLow3 
     174//      SetVariable setvar3b,pos={119,top+pt},size={100,15},title="theta max",value= gAngHigh3 
     175//      SetVariable setvar3c,pos={227,top+pt},size={100,15},title="increm",value= gIncr3 
     176//      SetVariable setvar3d,pos={335,top+pt},size={100,15},title="# points",value= gNumPts3 
     177//      SetVariable setvar3e,pos={443,top+pt},size={100,15},title="count (s)",value= gCtTime3 
     178//      SetVariable setvar3a labelBack=(32769,65535,32768) 
     179//       
     180//      pt += inc 
     181//      SetVariable setvar4a,pos={12,top+pt},size={100,15},title="theta min",value= gAngLow4 
     182//      SetVariable setvar4b,pos={119,top+pt},size={100,15},title="theta max",value= gAngHigh4 
     183//      SetVariable setvar4c,pos={227,top+pt},size={100,15},title="increm",value= gIncr4 
     184//      SetVariable setvar4d,pos={335,top+pt},size={100,15},title="# points",value= gNumPts4 
     185//      SetVariable setvar4e,pos={443,top+pt},size={100,15},title="count (s)",value= gCtTime4 
     186//      SetVariable setvar4a labelBack=(32768,65535,65535) 
     187//       
     188//      pt += inc 
     189//      SetVariable setvar5a,pos={12,top+pt},size={100,15},title="theta min",value= gAngLow5 
     190//      SetVariable setvar5b,pos={119,top+pt},size={100,15},title="theta max",value= gAngHigh5 
     191//      SetVariable setvar5c,pos={227,top+pt},size={100,15},title="increm",value= gIncr5 
     192//      SetVariable setvar5d,pos={335,top+pt},size={100,15},title="# points",value= gNumPts5 
     193//      SetVariable setvar5e,pos={443,top+pt},size={100,15},title="count (s)",value= gCtTime5 
     194//      SetVariable setvar5a labelBack=(32768,54615,65535) 
     195//       
     196//      pt += inc 
     197//      SetVariable setvar6a,pos={12,top+pt},size={100,15},title="theta min",value= gAngLow6 
     198//      SetVariable setvar6b,pos={119,top+pt},size={100,15},title="theta max",value= gAngHigh6 
     199//      SetVariable setvar6c,pos={227,top+pt},size={100,15},title="increm",value= gIncr6 
     200//      SetVariable setvar6d,pos={335,top+pt},size={100,15},title="# points",value= gNumPts6 
     201//      SetVariable setvar6e,pos={443,top+pt},size={100,15},title="count (s)",value= gCtTime6 
     202//      SetVariable setvar6a labelBack=(44253,29492,58982) 
     203// 
     204//// the action procedures and limits/increments 
     205//      SetVariable setvar1a proc=ThetaMinSetVarProc            //,limits={-2,0,0.1} 
     206//      SetVariable setvar2a proc=ThetaMinSetVarProc 
     207//      SetVariable setvar3a proc=ThetaMinSetVarProc 
     208//      SetVariable setvar4a proc=ThetaMinSetVarProc 
     209//      SetVariable setvar5a proc=ThetaMinSetVarProc 
     210//      SetVariable setvar6a proc=ThetaMinSetVarProc 
     211// 
     212//// 
     213//      SetVariable setvar1b proc=ThetaMaxSetVarProc            //,limits={0.4,1,0.1} 
     214//      SetVariable setvar2b proc=ThetaMaxSetVarProc 
     215//      SetVariable setvar3b proc=ThetaMaxSetVarProc 
     216//      SetVariable setvar4b proc=ThetaMaxSetVarProc 
     217//      SetVariable setvar5b proc=ThetaMaxSetVarProc 
     218//      SetVariable setvar6b proc=ThetaMaxSetVarProc 
     219//// 
     220//      SetVariable setvar1c proc=IncrSetVarProc,limits={0.01,0.1,0.01} 
     221//      SetVariable setvar2c proc=IncrSetVarProc,limits={0.02,0.2,0.02} 
     222//      SetVariable setvar3c proc=IncrSetVarProc,limits={0.05,0.4,0.05} 
     223//      SetVariable setvar4c proc=IncrSetVarProc,limits={0.1,1,0.1} 
     224//      SetVariable setvar5c proc=IncrSetVarProc,limits={0.5,5,1} 
     225//      SetVariable setvar6c proc=IncrSetVarProc,limits={1,10,2} 
     226//// 
     227//      SetVariable setvar1d proc=NumPtsSetVarProc,limits={2,50,1} 
     228//      SetVariable setvar2d proc=NumPtsSetVarProc,limits={2,50,1} 
     229//      SetVariable setvar3d proc=NumPtsSetVarProc,limits={2,50,1} 
     230//      SetVariable setvar4d proc=NumPtsSetVarProc,limits={2,50,1} 
     231//      SetVariable setvar5d proc=NumPtsSetVarProc,limits={2,50,1} 
     232//      SetVariable setvar6d proc=NumPtsSetVarProc,limits={2,50,1} 
     233//// 
     234//      SetVariable setvar1e proc=CtTimeSetVarProc,limits={-1,50000,1} 
     235//      SetVariable setvar2e proc=CtTimeSetVarProc,limits={-1,50000,10} 
     236//      SetVariable setvar3e proc=CtTimeSetVarProc,limits={-1,50000,10} 
     237//      SetVariable setvar4e proc=CtTimeSetVarProc,limits={-1,50000,30} 
     238//      SetVariable setvar5e proc=CtTimeSetVarProc,limits={-1,50000,100} 
     239//      SetVariable setvar6e proc=CtTimeSetVarProc,limits={-1,50000,100} 
     240//       
     241//      Button button0,pos={255,180},size={60,20},fColor=(65535,65535,0),proc=U_SimPlotButtonProc,title="Plot" 
     242//      Button button1,pos={260,286},size={50,20},proc=U_SaveButtonProc,title="Save" 
     243// 
     244////checkbox for "easy" mode 
     245//      CheckBox check0 title="Simple mode?",pos={400,19},proc=EnterModeCheckProc,value=1 
     246//      ThetaEditMode(2)                //checked on startup 
     247//       
     248////    instrument setup 
     249//      SetVariable U_setvar0_1,pos={20,211},size={160,15},title="Thickness (cm)" 
     250//      SetVariable U_setvar0_1,limits={0,inf,0.1},value= root:Packages:NIST:USANS:Globals:U_Sim:gThick  
     251//      SetVariable U_setvar0_3,pos={20,235},size={160,15},title="Sample Transmission" 
     252//      SetVariable U_setvar0_3,limits={0,1,0.01},value= root:Packages:NIST:USANS:Globals:U_Sim:gSamTrans 
     253//      PopupMenu U_popup0,pos={20,185},size={165,20},proc=Sim_USANS_ModelPopMenuProc,title="Model" 
     254//      PopupMenu U_popup0,mode=1,value= #"U_FunctionPopupList()" 
     255//      SetVariable setvar0,pos={20,259},size={120,15},title="Empty Level" 
     256//      SetVariable setvar0,limits={0,10,0.01},value= root:Packages:NIST:USANS:Globals:U_Sim:g_EmptyLevel 
     257//      SetVariable setvar0_1,pos={20,284},size={120,15},title="Bkg Level" 
     258//      SetVariable setvar0_1,limits={0,10,0.01},value= root:Packages:NIST:USANS:Globals:U_Sim:g_BkgLevel 
     259//       
     260//      CheckBox check0_4 title="Show EMP?",pos={160,260},proc=ShowEMPCheckProc,value=0 
     261//       
     262//      CheckBox check0_2,pos={253,239},size={60,14},title="CountRate?",variable= root:Packages:NIST:USANS:Globals:U_Sim:g_1D_PlotCR 
     263//      CheckBox check0_3,pos={262,264},size={60,14},title="Noise?",variable= root:Packages:NIST:USANS:Globals:U_Sim:g_1D_AddNoise 
     264//       
     265//// a box for the results 
     266//      SetVariable totalTime,pos={338,185},size={150,15},title="Count time (h:m)",value= gTotTimeStr 
     267////    ValDisplay valdisp0,pos={338,210},size={220,13},title="Total detector counts" 
     268////    ValDisplay valdisp0,limits={0,0,0},barmisc={0,1000},value= root:Packages:NIST:USANS:Globals:U_Sim:g_1DTotCts 
     269//      ValDisplay valdisp0_2,pos={338,234},size={220,13},title="Fraction of beam scattered" 
     270//      ValDisplay valdisp0_2,limits={0,0,0},barmisc={0,1000},value= root:Packages:NIST:USANS:Globals:U_Sim:g_1DFracScatt 
     271//      ValDisplay valdisp0_3,pos={338,259},size={220,13},title="Estimated transmission" 
     272//      ValDisplay valdisp0_3,limits={0,0,0},barmisc={0,1000},value=root:Packages:NIST:USANS:Globals:U_Sim:g_1DEstTrans 
     273// 
     274//       
     275//      SetDataFolder root: 
     276// 
     277//EndMacro 
     278 
     279// ??make the USANS simulation results into a graph and a separate panel. 
     280// the control bar at the top makes the whole thing too large, and control bars are limited 
     281// to 500 pix wide, which is really tight 
     282// left of 1055 is good for Mac, 955 is better for Win 
    135283// 
    136284Window UCALC_Panel() : Graph 
    137285        PauseUpdate; Silent 1           // building window... 
    138         Display /W=(55,44,670,850) /K=1 
     286        String platform=UpperStr(IgorInfo(2)) 
     287        Variable pos=strsearch(platform,"WINDOWS",0) 
     288        if(pos >= 0)            //windows 
     289                Display /W=(55,44,955,544) /K=1 
     290        else            //mac 
     291                Display /W=(55,44,1055,544) /K=1 
     292        endif 
     293         
    139294        ModifyGraph cbRGB=(36929,50412,31845) 
    140295        DoWindow/C UCALC 
    141296        DoWindow/T UCALC,"USANS Simulation" 
    142         ControlBar 320 
    143          
    144         GroupBox group0,pos={5,0},size={577,159},title="Instrument Setup" 
     297        ControlBar/L 500 
     298         
     299        GroupBox group0,pos={5,1},size={493,159},title="Instrument Setup" 
    145300        GroupBox group1,pos={5,165},size={240,147},title="Sample Setup" 
    146         GroupBox group2,pos={327,165},size={259,147},title="Results" 
    147          
    148         PopupMenu popup0,pos={17,18},size={165,20},title="Sample Aperture Diam (in)" 
     301        GroupBox group2,pos={5,325},size={259,147},title="Results" 
     302         
     303        PopupMenu popup0,pos={17,19},size={165,20},title="Sample Aperture Diam (in)" 
    149304        PopupMenu popup0,mode=3,popvalue="0.625",value="0.25;0.50;0.625;0.75;1.0;1.75;2.0;" 
    150         PopupMenu popup2,pos={220,18},size={165,20},title="Presets" 
     305        PopupMenu popup2,pos={220,19},size={165,20},title="Presets" 
    151306        PopupMenu popup2,mode=3,popvalue="Long Count",value="Short Count;Medium Count;Long Count;" 
    152307        PopupMenu popup2,proc=UCALC_PresetPopup 
     
    154309        SetDataFolder root:Packages:NIST:USANS:Globals:U_Sim 
    155310         
    156         Variable top=44,pt=0,inc=18 
    157         SetVariable setvar1a,pos={12,top},size={100,15},title="theta min",value= gAngLow1 
    158         SetVariable setvar1b,pos={119,top},size={100,15},title="theta max",value= gAngHigh1 
    159         SetVariable setvar1c,pos={227,top},size={100,15},title="increm",value= gIncr1 
    160         SetVariable setvar1d,pos={335,top},size={100,15},title="# points",value= gNumPts1 
    161         SetVariable setvar1e,pos={443,top},size={100,15},title="count (s)",value= gCtTime1 
     311        Variable top=46,pt=0,inc=18,left=0//left=533 
     312        SetVariable setvar1a,pos={left+17,top},size={90,15},title="theta min",value= gAngLow1 
     313        SetVariable setvar1b,pos={left+113,top},size={89,15},title="theta max",value= gAngHigh1 
     314        SetVariable setvar1c,pos={left+209,top},size={89,15},title="increm",value= gIncr1 
     315        SetVariable setvar1d,pos={left+299,top},size={100,15},title="# points",value= gNumPts1 
     316        SetVariable setvar1e,pos={left+399,top},size={93,15},title="count (s)",value= gCtTime1 
    162317        SetVariable setvar1a,labelBack=(65535,32768,32768) 
    163318         
    164319        pt += inc 
    165         SetVariable setvar2a,pos={12,top+pt},size={100,15},title="theta min",value= gAngLow2 
    166         SetVariable setvar2b,pos={119,top+pt},size={100,15},title="theta max",value= gAngHigh2 
    167         SetVariable setvar2c,pos={227,top+pt},size={100,15},title="increm",value= gIncr2 
    168         SetVariable setvar2d,pos={335,top+pt},size={100,15},title="# points",value= gNumPts2 
    169         SetVariable setvar2e,pos={443,top+pt},size={100,15},title="count (s)",value= gCtTime2 
     320        SetVariable setvar2a,pos={left+17,top+pt},size={90,15},title="theta min",value= gAngLow2 
     321        SetVariable setvar2b,pos={left+113,top+pt},size={89,15},title="theta max",value= gAngHigh2 
     322        SetVariable setvar2c,pos={left+209,top+pt},size={89,15},title="increm",value= gIncr2 
     323        SetVariable setvar2d,pos={left+299,top+pt},size={100,15},title="# points",value= gNumPts2 
     324        SetVariable setvar2e,pos={left+399,top+pt},size={93,15},title="count (s)",value= gCtTime2 
    170325        SetVariable setvar2a labelBack=(65535,65533,32768) 
    171326         
    172327        pt += inc 
    173         SetVariable setvar3a,pos={12,top+pt},size={100,15},title="theta min",value= gAngLow3 
    174         SetVariable setvar3b,pos={119,top+pt},size={100,15},title="theta max",value= gAngHigh3 
    175         SetVariable setvar3c,pos={227,top+pt},size={100,15},title="increm",value= gIncr3 
    176         SetVariable setvar3d,pos={335,top+pt},size={100,15},title="# points",value= gNumPts3 
    177         SetVariable setvar3e,pos={443,top+pt},size={100,15},title="count (s)",value= gCtTime3 
     328        SetVariable setvar3a,pos={left+17,top+pt},size={90,15},title="theta min",value= gAngLow3 
     329        SetVariable setvar3b,pos={left+113,top+pt},size={89,15},title="theta max",value= gAngHigh3 
     330        SetVariable setvar3c,pos={left+209,top+pt},size={89,15},title="increm",value= gIncr3 
     331        SetVariable setvar3d,pos={left+299,top+pt},size={100,15},title="# points",value= gNumPts3 
     332        SetVariable setvar3e,pos={left+399,top+pt},size={93,15},title="count (s)",value= gCtTime3 
    178333        SetVariable setvar3a labelBack=(32769,65535,32768) 
    179334         
    180335        pt += inc 
    181         SetVariable setvar4a,pos={12,top+pt},size={100,15},title="theta min",value= gAngLow4 
    182         SetVariable setvar4b,pos={119,top+pt},size={100,15},title="theta max",value= gAngHigh4 
    183         SetVariable setvar4c,pos={227,top+pt},size={100,15},title="increm",value= gIncr4 
    184         SetVariable setvar4d,pos={335,top+pt},size={100,15},title="# points",value= gNumPts4 
    185         SetVariable setvar4e,pos={443,top+pt},size={100,15},title="count (s)",value= gCtTime4 
     336        SetVariable setvar4a,pos={left+17,top+pt},size={90,15},title="theta min",value= gAngLow4 
     337        SetVariable setvar4b,pos={left+113,top+pt},size={89,15},title="theta max",value= gAngHigh4 
     338        SetVariable setvar4c,pos={left+209,top+pt},size={89,15},title="increm",value= gIncr4 
     339        SetVariable setvar4d,pos={left+299,top+pt},size={100,15},title="# points",value= gNumPts4 
     340        SetVariable setvar4e,pos={left+399,top+pt},size={93,15},title="count (s)",value= gCtTime4 
    186341        SetVariable setvar4a labelBack=(32768,65535,65535) 
    187342         
    188343        pt += inc 
    189         SetVariable setvar5a,pos={12,top+pt},size={100,15},title="theta min",value= gAngLow5 
    190         SetVariable setvar5b,pos={119,top+pt},size={100,15},title="theta max",value= gAngHigh5 
    191         SetVariable setvar5c,pos={227,top+pt},size={100,15},title="increm",value= gIncr5 
    192         SetVariable setvar5d,pos={335,top+pt},size={100,15},title="# points",value= gNumPts5 
    193         SetVariable setvar5e,pos={443,top+pt},size={100,15},title="count (s)",value= gCtTime5 
     344        SetVariable setvar5a,pos={left+17,top+pt},size={90,15},title="theta min",value= gAngLow5 
     345        SetVariable setvar5b,pos={left+113,top+pt},size={89,15},title="theta max",value= gAngHigh5 
     346        SetVariable setvar5c,pos={left+209,top+pt},size={89,15},title="increm",value= gIncr5 
     347        SetVariable setvar5d,pos={left+299,top+pt},size={100,15},title="# points",value= gNumPts5 
     348        SetVariable setvar5e,pos={left+399,top+pt},size={93,15},title="count (s)",value= gCtTime5 
    194349        SetVariable setvar5a labelBack=(32768,54615,65535) 
    195350         
    196351        pt += inc 
    197         SetVariable setvar6a,pos={12,top+pt},size={100,15},title="theta min",value= gAngLow6 
    198         SetVariable setvar6b,pos={119,top+pt},size={100,15},title="theta max",value= gAngHigh6 
    199         SetVariable setvar6c,pos={227,top+pt},size={100,15},title="increm",value= gIncr6 
    200         SetVariable setvar6d,pos={335,top+pt},size={100,15},title="# points",value= gNumPts6 
    201         SetVariable setvar6e,pos={443,top+pt},size={100,15},title="count (s)",value= gCtTime6 
     352        SetVariable setvar6a,pos={left+17,top+pt},size={90,15},title="theta min",value= gAngLow6 
     353        SetVariable setvar6b,pos={left+113,top+pt},size={89,15},title="theta max",value= gAngHigh6 
     354        SetVariable setvar6c,pos={left+209,top+pt},size={89,15},title="increm",value= gIncr6 
     355        SetVariable setvar6d,pos={left+299,top+pt},size={100,15},title="# points",value= gNumPts6 
     356        SetVariable setvar6e,pos={left+399,top+pt},size={93,15},title="count (s)",value= gCtTime6 
    202357        SetVariable setvar6a labelBack=(44253,29492,58982) 
    203358 
     
    239394        SetVariable setvar6e proc=CtTimeSetVarProc,limits={-1,50000,100} 
    240395         
    241         Button button0,pos={255,180},size={60,20},fColor=(65535,65535,0),proc=U_SimPlotButtonProc,title="Plot" 
    242         Button button1,pos={260,286},size={50,20},proc=U_SaveButtonProc,title="Save" 
     396        Button button0,pos={left+280,180},size={60,20},fColor=(65535,65535,0),proc=U_SimPlotButtonProc,title="Plot" 
     397        CheckBox check0_2,pos={left+280,230},size={60,14},title="CountRate?",variable= root:Packages:NIST:USANS:Globals:U_Sim:g_1D_PlotCR 
     398        CheckBox check0_3,pos={left+280,250},size={60,14},title="Noise?",variable= root:Packages:NIST:USANS:Globals:U_Sim:g_1D_AddNoise 
     399        CheckBox check0_4 title="Show EMP?",pos={left+280,270},proc=ShowEMPCheckProc,value=0 
     400 
    243401 
    244402//checkbox for "easy" mode 
    245         CheckBox check0 title="Simple mode?",pos={400,19},proc=EnterModeCheckProc,value=1 
     403        CheckBox check0 title="Simple mode?",pos={left+400,19},proc=EnterModeCheckProc,value=1 
    246404        ThetaEditMode(2)                //checked on startup 
    247405         
    248406//      instrument setup 
    249         SetVariable U_setvar0_1,pos={20,211},size={160,15},title="Thickness (cm)" 
     407        SetVariable U_setvar0_1,pos={left+20,211},size={160,15},title="Thickness (cm)" 
    250408        SetVariable U_setvar0_1,limits={0,inf,0.1},value= root:Packages:NIST:USANS:Globals:U_Sim:gThick  
    251         SetVariable U_setvar0_3,pos={20,235},size={160,15},title="Sample Transmission" 
     409        SetVariable U_setvar0_3,pos={left+20,235},size={160,15},title="Sample Transmission" 
    252410        SetVariable U_setvar0_3,limits={0,1,0.01},value= root:Packages:NIST:USANS:Globals:U_Sim:gSamTrans 
    253         PopupMenu U_popup0,pos={20,185},size={165,20},proc=Sim_USANS_ModelPopMenuProc,title="Model" 
     411        PopupMenu U_popup0,pos={left+20,185},size={165,20},proc=Sim_USANS_ModelPopMenuProc,title="Model" 
    254412        PopupMenu U_popup0,mode=1,value= #"U_FunctionPopupList()" 
    255         SetVariable setvar0,pos={20,259},size={120,15},title="Empty Level" 
     413        SetVariable setvar0,pos={left+20,259},size={120,15},title="Empty Level",disable=2 
    256414        SetVariable setvar0,limits={0,10,0.01},value= root:Packages:NIST:USANS:Globals:U_Sim:g_EmptyLevel 
    257         SetVariable setvar0_1,pos={20,284},size={120,15},title="Bkg Level" 
     415        SetVariable setvar0_1,pos={left+20,284},size={120,15},title="Bkg Level",disable=2 
    258416        SetVariable setvar0_1,limits={0,10,0.01},value= root:Packages:NIST:USANS:Globals:U_Sim:g_BkgLevel 
    259417         
    260         CheckBox check0_4 title="Show EMP?",pos={160,260},proc=ShowEMPCheckProc,value=0 
    261          
    262         CheckBox check0_2,pos={253,239},size={60,14},title="CountRate?",variable= root:Packages:NIST:USANS:Globals:U_Sim:g_1D_PlotCR 
    263         CheckBox check0_3,pos={262,264},size={60,14},title="Noise?",variable= root:Packages:NIST:USANS:Globals:U_Sim:g_1D_AddNoise 
     418         
    264419         
    265420// a box for the results 
    266         SetVariable totalTime,pos={338,185},size={150,15},title="Count time (h:m)",value= gTotTimeStr 
     421        SetVariable totalTime,pos={left+20,350},size={150,15},title="Count time (h:m)",value= gTotTimeStr 
    267422//      ValDisplay valdisp0,pos={338,210},size={220,13},title="Total detector counts" 
    268423//      ValDisplay valdisp0,limits={0,0,0},barmisc={0,1000},value= root:Packages:NIST:USANS:Globals:U_Sim:g_1DTotCts 
    269         ValDisplay valdisp0_2,pos={338,234},size={220,13},title="Fraction of beam scattered" 
     424        ValDisplay valdisp0_2,pos={left+20,380},size={220,13},title="Fraction of beam scattered" 
    270425        ValDisplay valdisp0_2,limits={0,0,0},barmisc={0,1000},value= root:Packages:NIST:USANS:Globals:U_Sim:g_1DFracScatt 
    271         ValDisplay valdisp0_3,pos={338,259},size={220,13},title="Estimated transmission" 
     426        ValDisplay valdisp0_3,pos={left+20,410},size={220,13},title="Estimated transmission" 
    272427        ValDisplay valdisp0_3,limits={0,0,0},barmisc={0,1000},value=root:Packages:NIST:USANS:Globals:U_Sim:g_1DEstTrans 
     428        Button button1,pos={left+20,440},size={50,20},proc=U_SaveButtonProc,title="Save" 
    273429 
    274430         
     
    276432 
    277433EndMacro 
     434 
    278435 
    279436// changing theta min - hold incr and #, result is new theta max 
Note: See TracChangeset for help on using the changeset viewer.