Changeset 1247


Ignore:
Timestamp:
Mar 20, 2020 11:51:13 AM (23 months ago)
Author:
srkline
Message:

more changes to panel scaling so that they are viewed properly on a small-screen laptop

Location:
sans/Dev/trunk/NCNR_User_Procedures
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotManager_v40.ipf

    r1022 r1247  
    2525 
    2626Window A_Plot_Manager() 
     27 
     28        Variable sc = 1         //default 
     29        if(exists("root:Packages:NIST:VSANS:Globals:gLaptopMode")==2)   //NVAR does exist 
     30                if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1)   //then is the value 1 
     31                        sc = 0.7 
     32                endif 
     33        endif 
     34 
    2735        PauseUpdate; Silent 1           // building window... 
    28         NewPanel /W=(658,347,1018,737)/N=Plot_Manager/K=2 as "Plot Manager" 
     36        NewPanel /W=(658*sc,347*sc,1018*sc,737*sc)/N=Plot_Manager/K=2 as "Plot Manager" 
    2937        ModifyPanel cbRGB=(37265,65535,32896) 
    3038        ModifyPanel fixedSize=1 
    3139         
    32         Button button0,pos={165,353},size={50,20},proc=A_PlotManager_Done,title="Done" 
    33         PopupMenu popup0,pos={15,225},size={233,20},title="Data in Memory" 
     40        Button button0,pos={sc*165,353*sc},size={sc*50,20*sc},proc=A_PlotManager_Done,title="Done" 
     41        PopupMenu popup0,pos={sc*15,225*sc},size={sc*233,20*sc},title="Data in Memory" 
    3442        PopupMenu popup0,mode=1,value= #"A_OneDDataInMemory()" 
    35         Button button2,pos={122,259},size={100,20},proc=A_PlotManager_Append,title="Append Data" 
    36         Button button3,pos={15,259},size={80,20},proc=A_PlotManager_newGraph,title="New Graph" 
    37         Button button4,pos={15,293},size={220,20},proc=A_PlotManager_Kill,title="Remove Selection From Memory" 
    38         Button button5,pos={15,323},size={220,20},proc=A_PlotManager_KillAll,title="Remove All Data From Memory" 
    39         ListBox fileList,pos={13,11},size={206,179} 
     43        Button button2,pos={sc*122,259*sc},size={sc*100,20*sc},proc=A_PlotManager_Append,title="Append Data" 
     44        Button button3,pos={sc*15,259*sc},size={sc*80,20*sc},proc=A_PlotManager_newGraph,title="New Graph" 
     45        Button button4,pos={sc*15,293*sc},size={sc*220,20*sc},proc=A_PlotManager_Kill,title="Remove Selection From Memory" 
     46        Button button5,pos={sc*15,323*sc},size={sc*220,20*sc},proc=A_PlotManager_KillAll,title="Remove All Data From Memory" 
     47        ListBox fileList,pos={sc*13,11*sc},size={sc*206,179*sc} 
    4048        ListBox fileList,listWave=root:Packages:NIST:OneDLoader:fileWave 
    4149        ListBox fileList,selWave=root:Packages:NIST:OneDLoader:selWave,mode= 4 
    42         Button button6,pos={238,165},size={100,20},proc=A_OneDLoader_LoadButton,title="Load File(s)" 
     50        Button button6,pos={sc*238,165*sc},size={sc*100,20*sc},proc=A_OneDLoader_LoadButton,title="Load File(s)" 
    4351        Button button6,help={"Loads the selected files into memory and will graph them if that option is checked"} 
    44         Button button7,pos={238,20},size={100,20},proc=A_OneDLoader_NewFolderButton,title="New Folder" 
     52        Button button7,pos={sc*238,20*sc},size={sc*100,20*sc},proc=A_OneDLoader_NewFolderButton,title="New Folder" 
    4553        Button button7,help={"Select a new data folder"} 
    46         Checkbox check0,pos={240,190},title="Plot data on loading?",noproc,value=1 
    47         GroupBox group0,pos={222,127},size={50,4},title="Shift-click to load" 
    48         GroupBox group0_1,pos={222,143},size={50,4},title="multiple files" 
    49         GroupBox group1,pos={7,207},size={350,4} 
    50         Button button8,pos={238,76},size={100,20},proc=A_OneDLoader_HelpButton,title="Help" 
    51         Button button9,pos={238,48},size={100,20},proc=A_PlotManager_Refresh,title="Refresh List" 
     54        Checkbox check0,pos={sc*240,190*sc},title="Plot data on loading?",noproc,value=1 
     55        GroupBox group0,pos={sc*222,127*sc},size={sc*50,4*sc},title="Shift-click to load" 
     56        GroupBox group0_1,pos={sc*222,143*sc},size={sc*50,4*sc},title="multiple files" 
     57        GroupBox group1,pos={sc*7,207*sc},size={sc*350,4*sc} 
     58        Button button8,pos={sc*238,76*sc},size={sc*100,20*sc},proc=A_OneDLoader_HelpButton,title="Help" 
     59        Button button9,pos={sc*238,48*sc},size={sc*100,20*sc},proc=A_PlotManager_Refresh,title="Refresh List" 
    5260EndMacro 
    5361 
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/VC_DetectorBinning_Q.ipf

    r1242 r1247  
    417417        SetDataFolder root: 
    418418         
    419 EndMacro 
     419End 
    420420 
    421421 
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/VC_VCALCPanel_MockUp.ipf

    r1245 r1247  
    7070 
    7171Proc DrawVCALC_Panel() 
     72        Variable sc = 1 
     73                         
     74        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     75                sc = 0.7 
     76        endif 
     77         
    7278        PauseUpdate; Silent 1           // building window... 
    73         NewPanel /W=(34,44,1274,699)/N=VCALC/K=1 
     79                 
     80        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1)    
     81                NewPanel /W=(34*sc,44*sc,1274*sc,630*sc)/N=VCALC/K=1 
     82        else 
     83                NewPanel /W=(34,44,1274,699)/N=VCALC/K=1 
     84        endif 
     85         
    7486        ModifyPanel cbRGB=(49151,60031,65535) 
    7587//      ShowTools/A 
     
    7890// always visible stuff, not on any tab 
    7991         
    80         GroupBox group0,pos={10,10},size={440,125},title="Setup" 
    81         TabControl Vtab,labelBack=(45000,61000,58000),pos={14,150},size={430,200},tabLabel(0)="Collim" 
     92        GroupBox group0,pos={sc*10,10*sc},size={sc*440,125*sc},title="Setup" 
     93        TabControl Vtab,labelBack=(45000,61000,58000),pos={sc*14,150*sc},size={sc*430,200*sc},tabLabel(0)="Collim" 
    8294        TabControl Vtab,tabLabel(1)="Sample",tabLabel(2)="Front Det",tabLabel(3)="Mid Det" 
    8395        TabControl Vtab,tabLabel(4)="Back Det",tabLabel(5)="Simul",value= 0,proc=VCALCTabProc 
    84         GroupBox group1,pos={460,10},size={762,635},title="Detector Panel Positions + Data" 
    85         Button button_a,pos={210,70},size={100,20},title="Show Mask",proc=V_VCALCShowMaskButtonProc 
    86         Button button_b,pos={210,100},size={100,20},title="Recalculate",proc=V_VCALCRecalcButtonProc 
    87         Button button_c,pos={330,70},size={100,20},title="Save Config",proc=V_VCALCSaveConfiguration 
    88         Button button_d,pos={330,100},size={100,20},title="Save NICE",proc=V_VCALCSaveNICEConfiguration 
    89  
    90  
    91         PopupMenu popup_a,pos={50,40},size={142,20},title="Presets" 
     96 
     97        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1)    
     98                GroupBox group1,pos={sc*460,10*sc},size={sc*762,565*sc},title="Detector Panel Positions + Data" 
     99        else     
     100                GroupBox group1,pos={460,10},size={762,635},title="Detector Panel Positions + Data" 
     101        endif 
     102        Button button_a,pos={sc*210,70*sc},size={sc*100,20*sc},title="Show Mask",proc=V_VCALCShowMaskButtonProc 
     103        Button button_b,pos={sc*210,100*sc},size={sc*100,20*sc},title="Recalculate",proc=V_VCALCRecalcButtonProc 
     104        Button button_c,pos={sc*330,70*sc},size={sc*100,20*sc},title="Save Config",proc=V_VCALCSaveConfiguration 
     105        Button button_d,pos={sc*330,100*sc},size={sc*100,20*sc},title="Save NICE",proc=V_VCALCSaveNICEConfiguration 
     106 
     107 
     108        PopupMenu popup_a,pos={sc*50,40*sc},size={sc*142,20*sc},title="Presets" 
    92109        PopupMenu popup_a,mode=1,popvalue="White Beam",value= root:Packages:NIST:VSANS:VCALC:gPresetPopStr 
    93110        PopupMenu popup_a,proc=VC_PresetConfigPopup 
    94111 
    95         PopupMenu popup_b,pos={670,311},size={142,20},title="Binning type",proc=VC_RebinIQ_PopProc 
    96         PopupMenu popup_b,mode=1,value= root:Packages:NIST:VSANS:VCALC:gBinTypeStr 
    97         SetVariable setVar_b,pos={476,313},size={120,15},title="axis Q",proc=Front2DQ_Range_SetVarProc 
    98         SetVariable setVar_b,limits={0.02,1,0.02},value=_NUM:0.52 
    99         CheckBox check_0a title="Log?",size={60,20},pos={619,313},proc=Front2DQ_Log_CheckProc 
     112        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1)    
     113                PopupMenu popup_b,pos={sc*670,280*sc},size={sc*142,20*sc},title="Binning type",proc=VC_RebinIQ_PopProc 
     114                PopupMenu popup_b,mode=1,value= root:Packages:NIST:VSANS:VCALC:gBinTypeStr 
     115                SetVariable setVar_b,pos={sc*476,280*sc},size={sc*120,15*sc},title="axis Q",proc=Front2DQ_Range_SetVarProc 
     116                SetVariable setVar_b,limits={0.02,1,0.02},value=_NUM:0.52 
     117                CheckBox check_0a title="Log?",size={sc*60,20*sc},pos={sc*619,280*sc},proc=Front2DQ_Log_CheckProc 
     118        else     
     119                PopupMenu popup_b,pos={670,311},size={142,20},title="Binning type",proc=VC_RebinIQ_PopProc 
     120                PopupMenu popup_b,mode=1,value= root:Packages:NIST:VSANS:VCALC:gBinTypeStr 
     121                SetVariable setVar_b,pos={476,313},size={120,15},title="axis Q",proc=Front2DQ_Range_SetVarProc 
     122                SetVariable setVar_b,limits={0.02,1,0.02},value=_NUM:0.52 
     123                CheckBox check_0a title="Log?",size={60,20},pos={619,313},proc=Front2DQ_Log_CheckProc 
     124        endif 
     125 
     126 
    100127                 
    101         SetVariable setVar_a,pos={476,26},size={120,15},title="axis degrees",proc=FrontView_Range_SetVarProc 
     128        SetVariable setVar_a,pos={sc*476,26*sc},size={sc*120,15*sc},title="axis degrees",proc=FrontView_Range_SetVarProc 
    102129        SetVariable setVar_a,limits={0.3,30,0.2},value=_NUM:28 
    103130 
    104         ValDisplay valDisp_a,pos={30,380},size={200,15},fstyle=1,title="Beam Intensity",value=root:Packages:NIST:VSANS:VCALC:gBeamIntensity 
     131        ValDisplay valDisp_a,pos={sc*30,380*sc},size={sc*200,15*sc},fstyle=1,title="Beam Intensity",value=root:Packages:NIST:VSANS:VCALC:gBeamIntensity 
    105132 
    106133        SetDrawEnv fstyle= 1 
    107         DrawText 30,420,"Back" 
    108         DrawText 80,420,"Q min" 
    109         DrawText 150,420,"Q max" 
    110         ValDisplay valDisp_b,pos={30,420},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_B 
    111         ValDisplay valDisp_c,pos={130,420},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_B 
     134        DrawText 20*sc,420*sc,"Back" 
     135        DrawText 80*sc,420*sc,"Q min" 
     136        DrawText 150*sc,420*sc,"Q max" 
     137        ValDisplay valDisp_b,pos={sc*30,420*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_B 
     138        ValDisplay valDisp_c,pos={sc*130,420*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_B 
    112139 
    113140        SetDrawEnv fstyle= 1 
    114         DrawText 130,460,"Middle" 
    115         DrawText 180,460,"Q min" 
    116         DrawText 250,460,"Q max"         
    117         ValDisplay valDisp_d,pos={130,460},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_M 
    118         ValDisplay valDisp_e,pos={230,460},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_M 
     141        DrawText 120*sc,460*sc,"Middle" 
     142        DrawText 180*sc,460*sc,"Q min" 
     143        DrawText 250*sc,460*sc,"Q max"   
     144        ValDisplay valDisp_d,pos={sc*130,460*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_M 
     145        ValDisplay valDisp_e,pos={sc*230,460*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_M 
    119146 
    120147        SetDrawEnv fstyle= 1 
    121         DrawText 230,500,"Front"         
    122         DrawText 280,500,"Q min" 
    123         DrawText 350,500,"Q max"         
    124         ValDisplay valDisp_f,pos={230,500},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_F 
    125         ValDisplay valDisp_g,pos={330,500},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_F 
    126  
    127  
    128         ValDisplay valDisp_h,pos={50,530},size={200,15},title="Beam Diam (middle) (cm)",value=root:Packages:NIST:VSANS:VCALC:gBeamDiam 
    129         ValDisplay valDisp_i,pos={50,560},size={200,15},title="Beam Stop Diam (middle) (in)",value=root:Packages:NIST:VSANS:VCALC:gBeamStopDiam 
    130         ValDisplay valDisp_j,pos={50,590},size={200,15},title="Beam Stop Q min (1/A)",value=root:Packages:NIST:VSANS:VCALC:gRealQMin 
     148        DrawText 220*sc,500*sc,"Front"   
     149        DrawText 280*sc,500*sc,"Q min" 
     150        DrawText 350*sc,500*sc,"Q max"   
     151        ValDisplay valDisp_f,pos={sc*230,500*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_F 
     152        ValDisplay valDisp_g,pos={sc*330,500*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_F 
     153 
     154 
     155        ValDisplay valDisp_h,pos={sc*50,530*sc},size={sc*200,15*sc},title="Beam Diam (middle) (cm)",value=root:Packages:NIST:VSANS:VCALC:gBeamDiam 
     156        ValDisplay valDisp_i,pos={sc*50,560*sc},size={sc*200,15*sc},title="Beam Stop Diam (middle) (in)",value=root:Packages:NIST:VSANS:VCALC:gBeamStopDiam 
     157        ValDisplay valDisp_j,pos={sc*50,590*sc},size={sc*200,15*sc},title="Beam Stop Q min (1/A)",value=root:Packages:NIST:VSANS:VCALC:gRealQMin 
    131158 
    132159 
    133160 
    134161        // for panels (in degrees)       
    135         Display/W=(476,45,757,303)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
     162        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     163                Display/W=(476*sc,45*sc,757*sc,270*sc)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
     164        else 
     165                Display/W=(476,45,757,303)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
     166        endif 
    136167        RenameWindow #,FrontView 
    137168        ModifyGraph mode=2              // mode = 2 = dots 
     
    145176 
    146177        // for side view 
    147         Display/W=(842,25,1200,170)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
     178        Display/W=(842*sc,25*sc,1200*sc,170*sc)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
    148179        RenameWindow #,SideView 
    149180        ModifyGraph mode=2              // mode = 2 = dots 
     
    157188         
    158189        // for top view 
    159         Display/W=(842,180,1200,325)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
     190        Display/W=(842*sc,180*sc,1200*sc,325*sc)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
    160191        RenameWindow #,TopView 
    161192        ModifyGraph mode=2              // mode = 2 = dots 
     
    167198        SetActiveSubwindow ##    
    168199 
     200 
    169201        // for panels (as 2D Q) 
    170         Display/W=(475,332,814,631)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
     202        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     203        // note that the dimensions here are not strictly followed since the aspect ratio is set below 
     204                Display/W=(475*sc,310*sc,760*sc,550*sc)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
     205        else 
     206                Display/W=(475,332,814,631)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
     207        endif    
    171208        RenameWindow #,Panels_Q 
    172209        ModifyGraph mode=2              // mode = 2 = dots 
     
    182219 
    183220        // for averaged I(Q) 
    184         Display/W=(842,334,1204,629)/HOST=# //root:Packages:NIST:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
     221        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     222                Display/W=(842*sc,330*sc,1204*sc,560*sc)/HOST=# //root:Packages:NIST:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
     223        else 
     224                Display/W=(842,334,1204,629)/HOST=# //root:Packages:NIST:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 
     225        endif    
    185226        RenameWindow #,Panels_IQ 
    186227//      ModifyGraph mode=2              // mode = 2 = dots 
     
    196237         
    197238// tab(0), collimation - initially visible 
    198         Slider VCALCCtrl_0a,pos={223,324-50},size={200,45},limits={0,9,1},value= 1,vert= 0,proc=V_GuideSliderProc 
    199         SetVariable VCALCCtrl_0b,pos={25,294-50},size={120,15},title="wavelength" 
     239        Slider VCALCCtrl_0a,pos={sc*223,(324-50)*sc},size={sc*200,45*sc},limits={0,9,1},value= 1,vert= 0,proc=V_GuideSliderProc 
     240        SetVariable VCALCCtrl_0b,pos={sc*25,(294-50)*sc},size={sc*120,15*sc},title="wavelength" 
    200241        SetVariable VCALCCtrl_0b,limits={4,20,1},value=_NUM:8,proc=VC_Lambda_SetVarProc 
    201         PopupMenu VCALCCtrl_0c,pos={26,257-50},size={150,20},title="monochromator" 
     242        PopupMenu VCALCCtrl_0c,pos={sc*26,(257-50)*sc},size={sc*150,20*sc},title="monochromator" 
    202243        PopupMenu VCALCCtrl_0c,mode=1,popvalue="Velocity Selector",value= root:Packages:NIST:VSANS:VCALC:gMonochromatorType 
    203244        PopupMenu VCALCCtrl_0c,proc=VC_MonochromSelectPopup 
    204         PopupMenu VCALCCtrl_0d,pos={26,321-50},size={115,20},title="delta lambda" 
     245        PopupMenu VCALCCtrl_0d,pos={sc*26,(321-50)*sc},size={sc*115,20*sc},title="delta lambda" 
    205246        PopupMenu VCALCCtrl_0d,mode=1,popvalue="0.12",value= root:Packages:NIST:VSANS:VCALC:gDeltaLambda 
    206247        PopupMenu VCALCCtrl_0d,proc=VC_DeltaLamSelectPopup 
    207         PopupMenu VCALCCtrl_0e,pos={291,262-50},size={132,20},title="source shape" 
     248        PopupMenu VCALCCtrl_0e,pos={sc*291,(262-50)*sc},size={sc*132,20*sc},title="source shape" 
    208249        PopupMenu VCALCCtrl_0e,mode=1,popvalue="circular",value= root:Packages:NIST:VSANS:VCALC:gSourceShape 
    209250        PopupMenu VCALCCtrl_0e,proc=VC_SourceApShapeSelectPopup 
    210         PopupMenu VCALCCtrl_0f,pos={283,293-50},size={141,20},title="source aperture" 
     251        PopupMenu VCALCCtrl_0f,pos={sc*283,(293-50)*sc},size={sc*141,20*sc},title="source aperture" 
    211252        PopupMenu VCALCCtrl_0f,mode=1,popvalue="6.0 cm",value= root:Packages:NIST:VSANS:VCALC:gSourceDiam 
    212253        PopupMenu VCALCCtrl_0f,proc=VC_SourceAperDiamSelectPopup 
     
    214255 
    215256// tab(1) - Sample conditions, initially not visible 
    216         PopupMenu VCALCCtrl_1a,pos={38,250-50},size={142,20},title="table location",disable=1 
     257        PopupMenu VCALCCtrl_1a,pos={sc*38,(250-50)*sc},size={sc*142,20*sc},title="table location",disable=1 
    217258        PopupMenu VCALCCtrl_1a,mode=1,popvalue="Changer",value= root:Packages:NIST:VSANS:VCALC:gTableLocation 
    218         PopupMenu VCALCCtrl_1b,pos={270,250-50},size={115,20},title="Aperture Shape",disable=1 
     259        PopupMenu VCALCCtrl_1b,pos={sc*270,(250-50)*sc},size={sc*115,20*sc},title="Aperture Shape",disable=1 
    219260        PopupMenu VCALCCtrl_1b,mode=1,popvalue="circular",value= root:Packages:NIST:VSANS:VCALC:gSampleApertureShape  
    220         PopupMenu VCALCCtrl_1c,pos={270,310-50},size={132,20},title="Aperture Diam (cm)",disable=1 
     261        PopupMenu VCALCCtrl_1c,pos={sc*270,(310-50)*sc},size={sc*132,20*sc},title="Aperture Diam (cm)",disable=1 
    221262        PopupMenu VCALCCtrl_1c,mode=1,popvalue="1.27",value= root:Packages:NIST:VSANS:VCALC:gSampleApertureDiam 
    222         SetVariable VCALCCtrl_1d,pos={25,280-50},size={210,15},title="Sample Aper. to Gate Valve (cm)"//,bodywidth=50 
     263        SetVariable VCALCCtrl_1d,pos={sc*25,(280-50)*sc},size={sc*210,15*sc},title="Sample Aper. to Gate Valve (cm)"//,bodywidth=50 
    223264        SetVariable VCALCCtrl_1d,limits={4,40,0.1},value=_NUM:22,proc=VC_A2_to_GV_SetVarProc,disable=1 
    224         SetVariable VCALCCtrl_1e,pos={25,310-50},size={210,15},title="Sample Pos to Gate Valve (cm)" 
     265        SetVariable VCALCCtrl_1e,pos={sc*25,(310-50)*sc},size={sc*210,15*sc},title="Sample Pos to Gate Valve (cm)" 
    225266        SetVariable VCALCCtrl_1e,limits={4,40,0.1},value=_NUM:11,proc=VC_Sam_to_GV_SetVarProc,disable=1  
    226267 
    227268// tab(2) - Front detector panels, initially not visible 
    228         SetVariable VCALCCtrl_2a,pos={30,260-50},size={160,15},title="LEFT Offset (cm)",proc=VC_FDet_LR_SetVarProc 
     269        SetVariable VCALCCtrl_2a,pos={sc*30,(260-50)*sc},size={sc*160,15*sc},title="LEFT Offset (cm)",proc=VC_FDet_LR_SetVarProc 
    229270        SetVariable VCALCCtrl_2a,limits={-20,19,0.1},disable=1,value=_NUM:-10 
    230         SetVariable VCALCCtrl_2aa,pos={30,290-50},size={160,15},title="RIGHT Offset (cm)",proc=VC_FDet_LR_SetVarProc 
     271        SetVariable VCALCCtrl_2aa,pos={sc*30,(290-50)*sc},size={sc*160,15*sc},title="RIGHT Offset (cm)",proc=VC_FDet_LR_SetVarProc 
    231272        SetVariable VCALCCtrl_2aa,limits={-19,20,0.1},disable=1,value=_NUM:10 
    232273         
    233         SetVariable VCALCCtrl_2b,pos={30,330-50},size={160,15},title="TOP Offset (cm)",proc=VC_FDet_LR_SetVarProc 
     274        SetVariable VCALCCtrl_2b,pos={sc*30,(330-50)*sc},size={sc*160,15*sc},title="TOP Offset (cm)",proc=VC_FDet_LR_SetVarProc 
    234275        SetVariable VCALCCtrl_2b,limits={0,18,0.1},disable=1,value=_NUM:10 
    235         SetVariable VCALCCtrl_2bb,pos={30,360-50},size={160,15},title="BOTTOM Offset (cm)",proc=VC_FDet_LR_SetVarProc 
     276        SetVariable VCALCCtrl_2bb,pos={sc*30,(360-50)*sc},size={sc*160,15*sc},title="BOTTOM Offset (cm)",proc=VC_FDet_LR_SetVarProc 
    236277        SetVariable VCALCCtrl_2bb,limits={-18,0,0.1},disable=1,value=_NUM:-10 
    237278         
    238         SetVariable VCALCCtrl_2d,pos={205,260-50},size={235,15},title="Gate Valve to Detector Dist (cm)",proc=VC_FDet_SDD_SetVarProc 
     279        SetVariable VCALCCtrl_2d,pos={sc*205,(260-50)*sc},size={sc*235,15*sc},title="Gate Valve to Detector Dist (cm)",proc=VC_FDet_SDD_SetVarProc 
    239280        SetVariable VCALCCtrl_2d,limits={70,800,1},disable=1    ,value=_NUM:150 
    240281         
    241282 
    242283// tab(3) - Middle detector panels, initially not visible 
    243         SetVariable VCALCCtrl_3a,pos={30,260-50},size={160,15},title="LEFT Offset (cm)",proc=VC_MDet_LR_SetVarProc 
     284        SetVariable VCALCCtrl_3a,pos={sc*30,(260-50)*sc},size={sc*160,15*sc},title="LEFT Offset (cm)",proc=VC_MDet_LR_SetVarProc 
    244285        SetVariable VCALCCtrl_3a,limits={-20,19,0.1},disable=1,value=_NUM:-7 
    245         SetVariable VCALCCtrl_3aa,pos={30,290-50},size={160,15},title="RIGHT Offset (cm)",proc=VC_MDet_LR_SetVarProc 
     286        SetVariable VCALCCtrl_3aa,pos={sc*30,(290-50)*sc},size={sc*160,15*sc},title="RIGHT Offset (cm)",proc=VC_MDet_LR_SetVarProc 
    246287        SetVariable VCALCCtrl_3aa,limits={-19,20,0.1},disable=1,value=_NUM:7 
    247288                 
    248         SetVariable VCALCCtrl_3b,pos={30,330-50},size={160,15},title="TOP Offset (cm)",proc=VC_MDet_LR_SetVarProc 
     289        SetVariable VCALCCtrl_3b,pos={sc*30,(330-50)*sc},size={sc*160,15*sc},title="TOP Offset (cm)",proc=VC_MDet_LR_SetVarProc 
    249290        SetVariable VCALCCtrl_3b,limits={0,18,0.1},disable=1,value=_NUM:14 
    250         SetVariable VCALCCtrl_3bb,pos={30,360-50},size={160,15},title="BOTTOM Offset (cm)",proc=VC_MDet_LR_SetVarProc 
     291        SetVariable VCALCCtrl_3bb,pos={sc*30,(360-50)*sc},size={sc*160,15*sc},title="BOTTOM Offset (cm)",proc=VC_MDet_LR_SetVarProc 
    251292        SetVariable VCALCCtrl_3bb,limits={-18,0,0.1},disable=1,value=_NUM:-14 
    252293 
    253         SetVariable VCALCCtrl_3d,pos={205,260-50},size={235,15},title="Gate Valve to Detector Dist (cm)",proc=VC_MDet_SDD_SetVarProc 
     294        SetVariable VCALCCtrl_3d,pos={sc*205,(260-50)*sc},size={sc*235,15*sc},title="Gate Valve to Detector Dist (cm)",proc=VC_MDet_SDD_SetVarProc 
    254295        SetVariable VCALCCtrl_3d,limits={250,2000,1},disable=1,value=_NUM:1000 
    255296 
    256297         
    257298// tab(4) - Back detector panel 
    258         SetVariable VCALCCtrl_4a,pos={168,290-50},size={160,15},title="Lateral Offset (cm)" 
     299        SetVariable VCALCCtrl_4a,pos={sc*168,(290-50)*sc},size={sc*160,15*sc},title="Lateral Offset (cm)" 
    259300        SetVariable VCALCCtrl_4a,limits={0,20,0.1},disable=1,value=_NUM:0 
    260         SetVariable VCALCCtrl_4b,pos={168,260-50},size={250,15},title="Gate Valve to Detector Dist (cm)",proc=VC_BDet_SDD_SetVarProc 
     301        SetVariable VCALCCtrl_4b,pos={sc*168,(260-50)*sc},size={sc*250,15*sc},title="Gate Valve to Detector Dist (cm)",proc=VC_BDet_SDD_SetVarProc 
    261302        SetVariable VCALCCtrl_4b,limits={2000,2500,1},disable=1,value=_NUM:2200 
    262 //      PopupMenu VCALCCtrl_4c,pos={40,260},size={180,20},title="Detector type",disable=1 
     303//      PopupMenu VCALCCtrl_4c,pos={sc*40,260*sc},size={sc*180,20*sc},title="Detector type",disable=1 
    263304//      PopupMenu VCALCCtrl_4c,mode=1,popvalue="2D",value= root:Packages:NIST:VSANS:VCALC:gBackDetType 
    264305 
    265306// tab(5) - Simulation setup 
    266         SetVariable VCALCCtrl_5a,pos={40,290-50},size={220,15},title="Neutrons on Sample (imon)" 
     307        SetVariable VCALCCtrl_5a,pos={sc*40,(290-50)*sc},size={sc*220,15*sc},title="Neutrons on Sample (imon)" 
    267308        SetVariable VCALCCtrl_5a,limits={1e7,1e15,1e7},disable=1,value=_NUM:1e11,proc=VC_SimImon_SetVarProc 
    268         PopupMenu VCALCCtrl_5b,pos={40,260-50},size={200,20},title="Model Function",disable=1 
     309        PopupMenu VCALCCtrl_5b,pos={sc*40,(260-50)*sc},size={sc*200,20*sc},title="Model Function",disable=1 
    269310        PopupMenu VCALCCtrl_5b,mode=1,popvalue="Debye",value= root:Packages:NIST:VSANS:VCALC:gModelFunctionType,proc=VC_SimModelFunc_PopProc 
    270311         
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Combine_1D.ipf

    r1242 r1247  
    3737Proc V_CombineDataGraph() 
    3838 
     39        Variable sc = 1 
     40                         
     41        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     42                sc = 0.7 
     43        endif 
     44 
    3945// this is the "initialization" step 
    4046        NewDataFolder/O root:ToTrim 
     
    4652                 
    4753        if(V_flag==0) 
    48  
    49                 Display /W=(277,526,879,1069)/N=V_1D_Combine /K=2 
    50  
    51                 ControlBar 70 
     54                         
     55                if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     56                        Display/W=(100*sc,40*sc,700*sc,590*sc)/N=V_1D_Combine /K=2 
     57                else 
     58                        Display /W=(277,526,879,1069)/N=V_1D_Combine /K=2 
     59                endif 
     60 
     61                ControlBar 70*sc 
    5262                ModifyGraph cbRGB=(44000,44000,44000) 
    5363                 
    54 //              Button button2,pos={15,5},size={70,20},proc=V_Load_ITX_button,title="Load Data" 
     64//              Button button2,pos={sc*15,5*sc},size={sc*70,20*sc},proc=V_Load_ITX_button,title="Load Data" 
    5565//              Button button2,help={"Load an ITX file"} 
    5666                 
    57 //              PopupMenu popup1,pos={125,5},size={90,20},title="Data Folder" 
     67//              PopupMenu popup1,pos={sc*125,5*sc},size={sc*90,20*sc},title="Data Folder" 
    5868//              PopupMenu popup1,help={"data folder"} 
    5969//              PopupMenu popup1,value= GetAList(4),proc=V_DataFolderPlotPop 
    6070                 
    61                 PopupMenu popup0,pos={15,5},size={70,20},title="Bin Type" 
     71                PopupMenu popup0,pos={sc*15,5*sc},size={sc*70,20*sc},title="Bin Type" 
    6272                PopupMenu popup0,help={"binning type"} 
    6373                PopupMenu popup0,value= ksBinTypeStr,proc=V_DataBinTypePlotPop 
    6474 
    65                 Button button3,pos={544.00,5},size={30.00,20.00},title="?" 
     75                Button button3,pos={sc*544.00,5*sc},size={sc*30.00,20.00*sc},title="?" 
    6676                Button button3,proc=V_ShowCombine1DHelp,help={"help file for combining 1D data"} 
    6777 
    68                 CheckBox check0,pos={18.00,36.00},size={57.00,16.00},proc=V_Plot1D_LogCheckProc,title="Log Axes" 
     78                CheckBox check0,pos={sc*18.00,36.00*sc},size={sc*57.00,16.00*sc},proc=V_Plot1D_LogCheckProc,title="Log Axes" 
    6979                CheckBox check0,value= 1 
    7080 
    71                 Button AllQ,pos={100,36},size={70,20},proc=V_AllQ_Plot_1D_ButtonProc,title="All Q" 
     81                Button AllQ,pos={sc*100,36*sc},size={sc*70,20*sc},proc=V_AllQ_Plot_1D_ButtonProc,title="All Q" 
    7282                Button AllQ,help={"Show the full q-range of the dataset"} 
    7383 
    74                 Button button1,pos={225,36},size={140,20},proc=V_TrimWaves2StringButton,title="Save Trim Points" 
     84                Button button1,pos={sc*225,36*sc},size={sc*140,20*sc},proc=V_TrimWaves2StringButton,title="Save Trim Points" 
    7585                Button button1,help={"Convert the waves to global strings"} 
    7686                 
    77 //              Button button4,pos={388,36},size={90.00,20.00},title="Trim & Save" 
     87//              Button button4,pos={sc*388,36*sc},size={sc*90.00,20.00*sc},title="Trim & Save" 
    7888//              Button button4,help={"combine and save 1D data"},proc=V_SaveTrimmed_Button 
    7989                 
    80                 Button button0,pos={524,36},size={70,20},proc=V_DoneCombine1D_ButtonProc,title="Done" 
     90                Button button0,pos={sc*524,36*sc},size={sc*70,20*sc},proc=V_DoneCombine1D_ButtonProc,title="Done" 
    8191                Button button0,help={"Close the panel and kill the temporary folder"} 
    8292                                 
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_DIVUtils.ipf

    r1242 r1247  
    5252// 
    5353Proc DIV_Setup_Panel() : Panel 
     54 
     55        Variable sc = 1 
     56                         
     57        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     58                sc = 0.7 
     59        endif 
     60 
    5461        PauseUpdate; Silent 1           // building window... 
    55         NewPanel /W=(1207,593,1444,953)/N=DIV_Setup_Panel/K=1 
     62        NewPanel /W=(1207*sc,593*sc,1444*sc,953*sc)/N=DIV_Setup_Panel/K=1 
    5663        DoWindow/C DIV_Setup_Panel 
    57         Button button0,pos={54.00,10.00},size={120.00,20.00},proc=V_DIVSetupButtonProc,title="Setup Folder" 
    58         Button button1,pos={54.00,40.00},size={120.00,20.00},proc=V_DIVClearOldButtonProc,title="Clear Old DIV" 
    59         Button button1_2,pos={54.00,70.00},size={120.00,20.00},proc=V_DIVMaskButtonProc,title="Mask for DIV" 
    60  
    61         DrawText 32,130,"Reduce data for one carriage"   
    62         DrawText 32,200,"Repeat for the other carriage(s)" 
    63          
    64         Button button2,pos={54.00,145.00},size={120.00,20.00},proc=V_DIVCopyButtonProc,title="Copy" 
    65         Button button4,pos={54.00,235.00},size={120.00,20.00},proc=V_DIVNormalizeButtonProc,title="Normalize" 
    66  
    67         DrawText 32,290,"Once data for both (or 3) carriages\rhas been normalized, save the file"        
    68          
    69         Button button3,pos={54.00,300.00},size={120.00,20.00},proc=V_DIVSaveButtonProc,title="Save DIV" 
     64        Button button0,pos={sc*54.00,10.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVSetupButtonProc,title="Setup Folder" 
     65        Button button1,pos={sc*54.00,40.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVClearOldButtonProc,title="Clear Old DIV" 
     66        Button button1_2,pos={sc*54.00,70.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVMaskButtonProc,title="Mask for DIV" 
     67 
     68        SetDrawEnv fsize=12*sc 
     69        DrawText 32*sc,130*sc,"Reduce data for one carriage"     
     70        SetDrawEnv fsize=12*sc 
     71        DrawText 32*sc,200*sc,"Repeat for the other carriage(s)" 
     72         
     73        Button button2,pos={sc*54.00,145.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVCopyButtonProc,title="Copy" 
     74        Button button4,pos={sc*54.00,235.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVNormalizeButtonProc,title="Normalize" 
     75 
     76        SetDrawEnv fsize=12*sc 
     77        DrawText 32*sc,290*sc,"Once data for both (or 3) carriages\rhas been normalized, save the file"  
     78         
     79        Button button3,pos={sc*54.00,300.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVSaveButtonProc,title="Save DIV" 
    7080EndMacro 
    7181 
     
    816826 
    817827Proc V_Display_DIV_Panels() 
     828        Variable sc = 1 
     829                         
     830        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     831                sc = 0.7 
     832        endif 
     833         
    818834        PauseUpdate; Silent 1           // building window... 
    819         NewPanel /W=(720,45,1530,570)/N=VSANS_DIVPanels/K=1 
     835        NewPanel /W=(720*sc,45*sc,1530*sc,570*sc)/N=VSANS_DIVPanels/K=1 
    820836        DoWindow/C VSANS_DIVPanels 
    821837//      ModifyPanel fixedSize=1,noEdit =1 
    822838 
    823839 
    824         PopupMenu popup0,pos={17.00,10.00},size={77.00,23.00},proc=V_DispCarriagePopMenuProc,title="Carriage" 
     840        PopupMenu popup0,pos={sc*17.00,10.00*sc},size={sc*77.00,23.00*sc},proc=V_DispCarriagePopMenuProc,title="Carriage" 
    825841        PopupMenu popup0,mode=1,value= #"\"F;M;B;\"" 
    826         PopupMenu popup1,pos={134.00,10.00},size={68.00,23.00},proc=V_DispFolderPopMenuProc,title="Folder" 
     842        PopupMenu popup1,pos={sc*134.00,10.00*sc},size={sc*68.00,23.00*sc},proc=V_DispFolderPopMenuProc,title="Folder" 
    827843        PopupMenu popup1,mode=1,popvalue="RAW",value= #"\"SAM;EMP;BGD;DIV;COR;CAL;RAW;ABS;STO;SUB;DRK;MSK;ADJ;\"" 
    828         PopupMenu popup2,pos={246.00,10.00},size={83.00,23.00},proc=V_DispOperationPopMenuProc,title="Operation" 
     844        PopupMenu popup2,pos={sc*246.00,10.00*sc},size={sc*83.00,23.00*sc},proc=V_DispOperationPopMenuProc,title="Operation" 
    829845        PopupMenu popup2,mode=1,value= #"\"none;ADJ=STO-SUB;ADJ=STO/SUB;\"" 
    830         Button button0,pos={440.00,10.00},size={70.00,20.00},proc=V_DispUpdateButtonProc,title="Update" 
     846        Button button0,pos={sc*440.00,10.00*sc},size={sc*70.00,20.00*sc},proc=V_DispUpdateButtonProc,title="Update" 
    831847 
    832848 
    833849//      Display/W=(745,45,945,425)/HOST=#  
    834         Display/W=(10,45,210,425)/HOST=#  
     850        Display/W=(10*sc,45*sc,210*sc,425*sc)/HOST=#  
    835851        AppendImage/T/G=1 :Packages:NIST:VSANS:RAW:entry:instrument:detector_FL:data            //  /G=1 flag prevents interpretation as RGB so 3, 4 slices display correctly 
    836852 
     
    850866 
    851867//      Display/W=(1300,45,1500,425)/HOST=#  
    852         Display/W=(565,45,765,425)/HOST=#  
     868        Display/W=(565*sc,45*sc,765*sc,425*sc)/HOST=#  
    853869        AppendImage/T/G=1 :Packages:NIST:VSANS:RAW:entry:instrument:detector_FR:data            //  /G=1 flag prevents interpretation as RGB so 3, 4 slices display correctly 
    854870        ModifyImage data ctab= {*,*,ColdWarm,0} 
     
    867883 
    868884//      Display/W=(945,45,1300,235)/HOST=#  
    869         Display/W=(210,45,565,235)/HOST=#  
     885        Display/W=(210*sc,45*sc,565*sc,235*sc)/HOST=#  
    870886        AppendImage/T/G=1 :Packages:NIST:VSANS:RAW:entry:instrument:detector_FT:data            //  /G=1 flag prevents interpretation as RGB so 3, 4 slices display correctly 
    871887        ModifyImage data ctab= {*,*,ColdWarm,0} 
     
    884900 
    885901//      Display/W=(945,235,1300,425)/HOST=#  
    886         Display/W=(210,235,565,425)/HOST=#  
     902        Display/W=(210*sc,235*sc,565*sc,425*sc)/HOST=#  
    887903        AppendImage/T/G=1 :Packages:NIST:VSANS:RAW:entry:instrument:detector_FB:data            //  /G=1 flag prevents interpretation as RGB so 3, 4 slices display correctly 
    888904        ModifyImage data ctab= {*,*,ColdWarm,0} 
     
    907923         
    908924         
    909         TitleBox title0 pos={15,450},size={112,36},title=root:Packages:NIST:VSANS:Globals:gDIVstr0,fSize=11 
    910         TitleBox title1 pos={300,433},size={112,36},title=root:Packages:NIST:VSANS:Globals:gDIVstr1,fSize=11 
    911         TitleBox title2 pos={300,482},size={112,36},title=root:Packages:NIST:VSANS:Globals:gDIVstr2,fSize=11 
    912         TitleBox title3 pos={580,450},size={112,36},title=root:Packages:NIST:VSANS:Globals:gDIVstr3,fSize=11 
     925        TitleBox title0 pos={sc*15,450*sc},size={sc*112,36*sc},title=root:Packages:NIST:VSANS:Globals:gDIVstr0,fSize=11*sc 
     926        TitleBox title1 pos={sc*300,433*sc},size={sc*112,36*sc},title=root:Packages:NIST:VSANS:Globals:gDIVstr1,fSize=11*sc 
     927        TitleBox title2 pos={sc*300,482*sc},size={sc*112,36*sc},title=root:Packages:NIST:VSANS:Globals:gDIVstr2,fSize=11*sc 
     928        TitleBox title3 pos={sc*580,450*sc},size={sc*112,36*sc},title=root:Packages:NIST:VSANS:Globals:gDIVstr3,fSize=11*sc 
    913929 
    914930 
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_EventModeProcessing.ipf

    r1242 r1247  
    203203// 
    204204Proc VSANS_EventModePanel() 
     205        Variable sc = 1 
     206                         
     207        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     208                sc = 0.7 
     209        endif 
     210 
    205211        PauseUpdate; Silent 1           // building window... 
    206         NewPanel /W=(82,44,884,664)/N=VSANS_EventModePanel/K=2 
     212        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     213                NewPanel /W=(82*sc,10*sc,884*sc,590*sc)/N=VSANS_EventModePanel/K=2 
     214        else 
     215                NewPanel /W=(82,44,884,664)/N=VSANS_EventModePanel/K=2 
     216        endif 
     217         
    207218        DoWindow/C VSANS_EventModePanel 
    208219        ModifyPanel fixedSize=1,noEdit =1 
     
    215226 
    216227//      ShowTools/A 
    217         Button button0,pos={14,70},size={150,20},proc=V_LoadEventLog_Button,title="Load Event Log File" 
    218         Button button0,fSize=12 
    219         Button button23,pos={14,100},size={150,20},proc=V_LoadEventLog_Button,title="Load From RAW" 
    220         Button button23,fSize=12 
    221         TitleBox tb1,pos={475,500},size={266,86},fSize=10 
     228        Button button0,pos={sc*14,70*sc},size={sc*150,20*sc},proc=V_LoadEventLog_Button,title="Load Event Log File" 
     229        Button button0,fSize=12*sc 
     230        Button button23,pos={sc*14,100*sc},size={sc*150,20*sc},proc=V_LoadEventLog_Button,title="Load From RAW" 
     231        Button button23,fSize=12*sc 
     232        TitleBox tb1,pos={sc*475,450*sc},size={sc*266,86*sc},fSize=10 
    222233        TitleBox tb1,variable= root:Packages:NIST:VSANS:Event:gEventDisplayString 
    223234 
    224         CheckBox chkbox2,pos={376,151},size={81,15},proc=V_LogIntEvent_Proc,title="Log Intensity" 
    225         CheckBox chkbox2,fSize=10,variable= root:Packages:NIST:VSANS:Event:gEvent_logint 
    226         CheckBox chkbox3,pos={14,150},size={119,15},title="Remove Bad Events?",fSize=10 
     235        CheckBox chkbox2,pos={sc*376,151*sc},size={sc*81,15*sc},proc=V_LogIntEvent_Proc,title="Log Intensity" 
     236        CheckBox chkbox2,fSize=10*sc,variable= root:Packages:NIST:VSANS:Event:gEvent_logint 
     237        CheckBox chkbox3,pos={sc*14,150*sc},size={sc*119,15*sc},title="Remove Bad Events?",fSize=10*sc 
    227238        CheckBox chkbox3,variable= root:Packages:NIST:VSANS:Event:gRemoveBadEvents 
    228239         
    229         Button doneButton,pos={738,36},size={50,20},proc=V_EventDone_Proc,title="Done" 
    230         Button doneButton,fSize=12 
    231         Button button6,pos={748,9},size={40,20},proc=V_EventModeHelpButtonProc,title="?" 
    232  
    233 //      Button button5,pos={633,228},size={140,20},proc=V_ExportSlicesButtonProc,title="Export Slices as VAX",disable=2 
    234  
    235         Button button8,pos={570,35},size={120,20},proc=V_CustomBinButtonProc,title="Custom Bins" 
    236         Button button2,pos={570,65},size={140,20},proc=V_ShowEventDataButtonProc,title="Show Event Data" 
    237         Button button3,pos={570,95},size={140,20},proc=V_ShowBinDetailsButtonProc,title="Show Bin Details" 
    238  
    239                          
    240         Button button7,pos={211,33},size={120,20},proc=V_AdjustEventDataButtonProc,title="Adjust Events" 
    241         Button button4,pos={211,63},size={120,20},proc=V_UndoTimeSortButtonProc,title="Undo Time Sort" 
    242         Button button18,pos={211,90},size={120,20},proc=V_EC_ImportWavesButtonProc,title="Import Edited" 
    243          
    244         SetVariable setvar0,pos={208,149},size={160,16},proc=V_sliceSelectEvent_Proc,title="Display Time Slice" 
    245         SetVariable setvar0,fSize=10 
     240        Button doneButton,pos={sc*738,36*sc},size={sc*50,20*sc},proc=V_EventDone_Proc,title="Done" 
     241        Button doneButton,fSize=12*sc 
     242        Button button6,pos={sc*748,9*sc},size={sc*40,20*sc},proc=V_EventModeHelpButtonProc,title="?" 
     243 
     244//      Button button5,pos={sc*633,228*sc},size={sc*140,20*sc},proc=V_ExportSlicesButtonProc,title="Export Slices as VAX",disable=2 
     245 
     246        Button button8,pos={sc*570,35*sc},size={sc*120,20*sc},proc=V_CustomBinButtonProc,title="Custom Bins" 
     247        Button button2,pos={sc*570,65*sc},size={sc*140,20*sc},proc=V_ShowEventDataButtonProc,title="Show Event Data" 
     248        Button button3,pos={sc*570,95*sc},size={sc*140,20*sc},proc=V_ShowBinDetailsButtonProc,title="Show Bin Details" 
     249 
     250                         
     251        Button button7,pos={sc*211,33*sc},size={sc*120,20*sc},proc=V_AdjustEventDataButtonProc,title="Adjust Events" 
     252        Button button4,pos={sc*211,63*sc},size={sc*120,20*sc},proc=V_UndoTimeSortButtonProc,title="Undo Time Sort" 
     253        Button button18,pos={sc*211,90*sc},size={sc*120,20*sc},proc=V_EC_ImportWavesButtonProc,title="Import Edited" 
     254         
     255        SetVariable setvar0,pos={sc*208,149*sc},size={sc*160,16*sc},proc=V_sliceSelectEvent_Proc,title="Display Time Slice" 
     256        SetVariable setvar0,fSize=10*sc 
    246257        SetVariable setvar0,limits={0,1000,1},value= root:Packages:NIST:VSANS:Event:gEvent_tsdisp        
    247         SetVariable setvar1,pos={389,29},size={160,16},title="Number of slices",fSize=10 
     258        SetVariable setvar1,pos={sc*389,29*sc},size={sc*160,16*sc},title="Number of slices",fSize=10*sc 
    248259        SetVariable setvar1,limits={1,1000,1},value= root:Packages:NIST:VSANS:Event:gEvent_nslices 
    249         SetVariable setvar2,pos={389,54},size={160,16},title="Max Time (s)",fSize=10 
     260        SetVariable setvar2,pos={sc*389,54*sc},size={sc*160,16*sc},title="Max Time (s)",fSize=10*sc 
    250261        SetVariable setvar2,value= root:Packages:NIST:VSANS:Event:gEvent_t_longest 
    251262         
    252         PopupMenu popup0,pos={389,77},size={119,20},proc=V_BinTypePopMenuProc,title="Bin Spacing" 
    253         PopupMenu popup0,fSize=10 
     263        PopupMenu popup0,pos={sc*389,77*sc},size={sc*119,20*sc},proc=V_BinTypePopMenuProc,title="Bin Spacing" 
     264        PopupMenu popup0,fSize=10*sc 
    254265        PopupMenu popup0,mode=1,popvalue="Equal",value= #"\"Equal;Fibonacci;Custom;\"" 
    255         Button button1,pos={389,103},size={120,20},fSize=12,proc=V_ProcessEventLog_Button,title="Bin Event Data" 
     266        Button button1,pos={sc*389,103*sc},size={sc*120,20*sc},fSize=12*sc,proc=V_ProcessEventLog_Button,title="Bin Event Data" 
    256267 
    257268// NEW FOR VSANS 
    258         Button button21,pos={488,205},size={120,20},proc=V_SplitToPanels_Button,title="Split to Panels" 
    259         Button button22,pos={488,240},size={120,20},proc=V_GraphPanels_Button,title="Show Panels" 
    260          
    261         Button button24,pos={488,270},size={180,20},proc=V_DuplRAWForExport_Button,title="Duplicate RAW for Export" 
    262         Button button25,pos={488,300},size={180,20},proc=V_CopySlicesForExport_Button,title="Copy Slices for Export" 
    263         Button button26,pos={488,330},size={180,20},proc=V_SaveExportedNexus_Button,title="Save Exported to Nexus" 
    264  
    265 //      Button button10,pos={488,305},size={100,20},proc=V_SplitFileButtonProc,title="Split Big File",disable=2 
    266 //      Button button14,pos={488,350},size={120,20},proc=V_Stream_LoadDecim,title="Load Split List",disable=2 
    267 //      Button button19,pos={649,350},size={120,20},proc=V_Stream_LoadAdjustedList,title="Load Edited List",disable=2 
    268 //      Button button20,pos={680,376},size={90,20},proc=V_ShowList_ToLoad,title="Show List",disable=2 
    269 //      SetVariable setvar3,pos={487,378},size={150,16},title="Decimation factor",disable=2 
     269        Button button21,pos={sc*488,205*sc},size={sc*120,20*sc},proc=V_SplitToPanels_Button,title="Split to Panels" 
     270        Button button22,pos={sc*488,240*sc},size={sc*120,20*sc},proc=V_GraphPanels_Button,title="Show Panels" 
     271         
     272        Button button24,pos={sc*488,270*sc},size={sc*180,20*sc},proc=V_DuplRAWForExport_Button,title="Duplicate RAW for Export" 
     273        Button button25,pos={sc*488,300*sc},size={sc*180,20*sc},proc=V_CopySlicesForExport_Button,title="Copy Slices for Export" 
     274        Button button26,pos={sc*488,330*sc},size={sc*180,20*sc},proc=V_SaveExportedNexus_Button,title="Save Exported to Nexus" 
     275 
     276//      Button button10,pos={sc*488,305*sc},size={sc*100,20*sc},proc=V_SplitFileButtonProc,title="Split Big File",disable=2 
     277//      Button button14,pos={sc*488,350*sc},size={sc*120,20*sc},proc=V_Stream_LoadDecim,title="Load Split List",disable=2 
     278//      Button button19,pos={sc*649,350*sc},size={sc*120,20*sc},proc=V_Stream_LoadAdjustedList,title="Load Edited List",disable=2 
     279//      Button button20,pos={sc*680,376*sc},size={sc*90,20*sc},proc=V_ShowList_ToLoad,title="Show List",disable=2 
     280//      SetVariable setvar3,pos={sc*487,378*sc},size={sc*150,16*sc},title="Decimation factor",disable=2 
    270281//      SetVariable setvar3,fSize=10 
    271282//      SetVariable setvar3,limits={1,inf,1},value= root:Packages:NIST:VSANS:Event:gDecimation 
    272283// 
    273 //      Button button15_0,pos={488,425},size={110,20},proc=V_AccumulateSlicesButton,title="Add First Slice",disable=2 
    274 //      Button button16_1,pos={488,450},size={110,20},proc=V_AccumulateSlicesButton,title="Add Next Slice",disable=2 
    275 //      Button button17_2,pos={620,425},size={110,20},proc=V_AccumulateSlicesButton,title="Display Total",disable=2 
    276  
    277         CheckBox chkbox1_0,pos={25,30},size={69,14},title="Oscillatory",fSize=10 
     284//      Button button15_0,pos={sc*488,425*sc},size={sc*110,20*sc},proc=V_AccumulateSlicesButton,title="Add First Slice",disable=2 
     285//      Button button16_1,pos={sc*488,450*sc},size={sc*110,20*sc},proc=V_AccumulateSlicesButton,title="Add Next Slice",disable=2 
     286//      Button button17_2,pos={sc*620,425*sc},size={sc*110,20*sc},proc=V_AccumulateSlicesButton,title="Display Total",disable=2 
     287 
     288        CheckBox chkbox1_0,pos={sc*25,30*sc},size={sc*69,14*sc},title="Oscillatory",fSize=10*sc 
    278289        CheckBox chkbox1_0,mode=1,proc=V_EventModeRadioProc,value=0 
    279         CheckBox chkbox1_1,pos={25,50},size={53,14},title="Stream",fSize=10 
     290        CheckBox chkbox1_1,pos={sc*25,50*sc},size={sc*53,14*sc},title="Stream",fSize=10*sc 
    280291        CheckBox chkbox1_1,proc=V_EventModeRadioProc,value=1,mode=1 
    281 //      CheckBox chkbox1_2,pos={104,59},size={53,14},title="TISANE",fSize=10 
     292//      CheckBox chkbox1_2,pos={sc*104,59*sc},size={sc*53,14*sc},title="TISANE",fSize=10 
    282293//      CheckBox chkbox1_2,proc=V_EventModeRadioProc,value=0,mode=1 
    283         CheckBox chkbox1_3,pos={104,30},size={37,14},title="TOF",fSize=10 
     294        CheckBox chkbox1_3,pos={sc*104,30*sc},size={sc*37,14*sc},title="TOF",fSize=10*sc 
    284295        CheckBox chkbox1_3,proc=V_EventModeRadioProc,value=0,mode=1 
    285296         
    286         CheckBox chkbox1_4,pos={30,125},size={37,14},title="F",fSize=10 
     297        CheckBox chkbox1_4,pos={sc*30,125*sc},size={sc*37,14*sc},title="F",fSize=10*sc 
    287298        CheckBox chkbox1_4,proc=V_EventCarrRadioProc,value=1,mode=1 
    288         CheckBox chkbox1_5,pos={90,125},size={37,14},title="M",fSize=10 
     299        CheckBox chkbox1_5,pos={sc*90,125*sc},size={sc*37,14*sc},title="M",fSize=10*sc 
    289300        CheckBox chkbox1_5,proc=V_EventCarrRadioProc,value=0,mode=1 
    290301         
    291         GroupBox group0_0,pos={5,5},size={174,140},title="(1) Loading Mode",fSize=12,fStyle=1 
    292         GroupBox group0_3,pos={191,5},size={165,130},title="(2) Edit Events",fSize=12,fStyle=1 
    293         GroupBox group0_1,pos={372,5},size={350,130},title="(3) Bin Events",fSize=12,fStyle=1 
    294         GroupBox group0_2,pos={477,169},size={310,300},title="(4) View / Export",fSize=12,fStyle=1 
    295  
    296 //      GroupBox group0_4,pos={474,278},size={312,200},title="Split / Accumulate Files",fSize=12 
     302        GroupBox group0_0,pos={sc*5,5*sc},size={sc*174,140*sc},title="(1) Loading Mode",fSize=12*sc,fStyle=1 
     303        GroupBox group0_3,pos={sc*191,5*sc},size={sc*165,130*sc},title="(2) Edit Events",fSize=12*sc,fStyle=1 
     304        GroupBox group0_1,pos={sc*372,5*sc},size={sc*350,130*sc},title="(3) Bin Events",fSize=12*sc,fStyle=1 
     305        GroupBox group0_2,pos={sc*477,169*sc},size={sc*310,250*sc},title="(4) View / Export",fSize=12*sc,fStyle=1 
     306 
     307//      GroupBox group0_4,pos={sc*474,278*sc},size={sc*312,200*sc},title="Split / Accumulate Files",fSize=12 
    297308//      GroupBox group0_4,fStyle=1 
    298309         
    299         Display/W=(10,170,460,610)/HOST=#  
     310        Display/W=(10*sc,170*sc,460*sc,610*sc)/HOST=#  
    300311        AppendImage/T/G=1 :Packages:NIST:VSANS:Event:dispsliceData              //  /G=1 flag prevents interpretation as RGB so 3, 4 slices display correctly 
    301312        ModifyImage dispsliceData ctab= {*,*,ColdWarm,0} 
     
    17571768 
    17581769Proc V_BinEventBarGraph() 
     1770        Variable sc = 1 
     1771                         
     1772        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     1773                sc = 0.7 
     1774        endif 
    17591775         
    17601776        DoWindow/F V_EventBarGraph 
     
    17631779                String fldrSav0= GetDataFolder(1) 
    17641780                SetDataFolder root:Packages:NIST:VSANS:Event: 
    1765                 Display /W=(110,705,610,1132)/N=V_EventBarGraph /K=1 binCount vs binEndTime 
     1781                Display /W=(110*sc,705*sc,610*sc,1132*sc)/N=V_EventBarGraph /K=1 binCount vs binEndTime 
    17661782                SetDataFolder fldrSav0 
    17671783                ModifyGraph mode=5 
     
    17841800 
    17851801Proc V_ShowBinTable()  
     1802        Variable sc = 1 
     1803                         
     1804        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     1805                sc = 0.7 
     1806        endif 
    17861807 
    17871808        DoWindow/F V_BinEventTable 
     
    17901811                String fldrSav0= GetDataFolder(1) 
    17911812                SetDataFolder root:Packages:NIST:VSANS:Event: 
    1792                 Edit/W=(498,699,1003,955) /K=1/N=V_BinEventTable binCount,binEndTime,timeWidth 
    1793                 ModifyTable format(Point)=1,sigDigits(binEndTime)=8,width(binEndTime)=100 
     1813                Edit/W=(498*sc,699*sc,1003*sc,955*sc) /K=1/N=V_BinEventTable binCount,binEndTime,timeWidth 
     1814                ModifyTable format(Point)=1,sigDigits(binEndTime)=8,width(binEndTime)=100*sc 
    17941815                SetDataFolder fldrSav0 
    17951816        endif 
     
    18001821// 
    18011822Proc V_ShowRescaledTimeGraph() 
     1823        Variable sc = 1 
     1824                         
     1825        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     1826                sc = 0.7 
     1827        endif 
    18021828 
    18031829        DoWindow/F V_RescaledTimeGraph 
     
    18061832                String fldrSav0= GetDataFolder(1) 
    18071833                SetDataFolder root:Packages:NIST:VSANS:Event: 
    1808                 Display /W=(25,44,486,356)/K=1/N=V_RescaledTimeGraph rescaledTime 
     1834                Display /W=(25*sc,44*sc,486*sc,356*sc)/K=1/N=V_RescaledTimeGraph rescaledTime 
    18091835                SetDataFolder fldrSav0 
    18101836                ModifyGraph mode=4 
     
    18151841                SetAxis bottom 0,1500 
    18161842                ErrorBars rescaledTime OFF  
    1817                 Label left "\\Z14Time (seconds)" 
    1818                 Label bottom "\\Z14Event number" 
     1843                         
     1844                if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     1845                        Label left "\\Z10Time (seconds)" 
     1846                        Label bottom "\\Z10Event number" 
     1847                else 
     1848                        Label left "\\Z14Time (seconds)" 
     1849                        Label bottom "\\Z14Event number" 
     1850                endif 
    18191851                ShowInfo 
    18201852        endif 
     
    20572089 
    20582090Proc V_EventCorrectionPanel() 
    2059  
     2091        Variable sc = 1 
     2092                         
     2093        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     2094                sc = 0.7 
     2095        endif 
     2096         
    20602097        PauseUpdate; Silent 1           // building window... 
    20612098        SetDataFolder root:Packages:NIST:VSANS:Event: 
    20622099         
    20632100        if(exists("rescaledTime") == 1) 
    2064                 Display /W=(35,44,761,533)/K=2 rescaledTime 
     2101                Display /W=(35*sc,44*sc,761*sc,533*sc)/K=2 rescaledTime 
    20652102                DoWindow/C V_EventCorrectionPanel 
    20662103                ModifyGraph mode=4 
     
    20682105                ModifyGraph rgb=(0,0,0) 
    20692106                ModifyGraph msize=1 
    2070                 ErrorBars rescaledTime OFF  
    2071                 Label left "\\Z14Time (seconds)" 
    2072                 Label bottom "\\Z14Event number"         
     2107                ErrorBars rescaledTime OFF 
     2108                         
     2109                if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     2110                        Label left "\\Z10Time (seconds)" 
     2111                        Label bottom "\\Z10Event number"         
     2112                else 
     2113                        Label left "\\Z14Time (seconds)" 
     2114                        Label bottom "\\Z14Event number"         
     2115                endif 
    20732116                SetAxis bottom 0,0.10*numpnts(rescaledTime)             //show 1st 10% of data for speed in displaying 
    20742117                 
    20752118                ControlBar 100 
    2076                 Button button0,pos={18,12},size={70,20},proc=V_EC_AddCursorButtonProc,title="Cursors" 
    2077                 Button button1,pos={153,12},size={80,20},proc=V_EC_AddTimeButtonProc,title="Add time" 
    2078                 Button button2,pos={153,38},size={80,20},proc=V_EC_SubtractTimeButtonProc,title="Subtr time" 
    2079                 Button button3,pos={153,64},size={90,20},proc=V_EC_TrimPointsButtonProc,title="Trim points" 
    2080                 Button button4,pos={295+150,12},size={90,20},proc=V_EC_SaveWavesButtonProc,title="Save Waves" 
    2081                 Button button5,pos={295,64},size={100,20},proc=V_EC_FindOutlierButton,title="Find Outlier" 
    2082                 Button button6,pos={18,38},size={80,20},proc=V_EC_ShowAllButtonProc,title="All Data" 
    2083                 Button button7,pos={683,12},size={30,20},proc=V_EC_HelpButtonProc,title="?" 
    2084                 Button button8,pos={658,72},size={60,20},proc=V_EC_DoneButtonProc,title="Done" 
    2085          
    2086                 Button button9,pos={295,12},size={110,20},proc=V_EC_FindStepButton_down,title="Find Step Down" 
    2087                 Button button10,pos={295,38},size={110,20},proc=V_EC_FindStepButton_up,title="Find Step Up" 
    2088                 Button button11,pos={295+150,38},size={110,20},proc=V_EC_DoDifferential,title="Differential" 
     2119                Button button0,pos={sc*18,12*sc},size={sc*70,20*sc},proc=V_EC_AddCursorButtonProc,title="Cursors" 
     2120                Button button1,pos={sc*153,12*sc},size={sc*80,20*sc},proc=V_EC_AddTimeButtonProc,title="Add time" 
     2121                Button button2,pos={sc*153,38*sc},size={sc*80,20*sc},proc=V_EC_SubtractTimeButtonProc,title="Subtr time" 
     2122                Button button3,pos={sc*153,64*sc},size={sc*90,20*sc},proc=V_EC_TrimPointsButtonProc,title="Trim points" 
     2123                Button button4,pos={sc*(295+150),12*sc},size={sc*90,20*sc},proc=V_EC_SaveWavesButtonProc,title="Save Waves" 
     2124                Button button5,pos={sc*295,64*sc},size={sc*100,20*sc},proc=V_EC_FindOutlierButton,title="Find Outlier" 
     2125                Button button6,pos={sc*18,38*sc},size={sc*80,20*sc},proc=V_EC_ShowAllButtonProc,title="All Data" 
     2126                Button button7,pos={sc*683,12*sc},size={sc*30,20*sc},proc=V_EC_HelpButtonProc,title="?" 
     2127                Button button8,pos={sc*658,72*sc},size={sc*60,20*sc},proc=V_EC_DoneButtonProc,title="Done" 
     2128         
     2129                Button button9,pos={sc*295,12*sc},size={sc*110,20*sc},proc=V_EC_FindStepButton_down,title="Find Step Down" 
     2130                Button button10,pos={sc*295,38*sc},size={sc*110,20*sc},proc=V_EC_FindStepButton_up,title="Find Step Up" 
     2131                Button button11,pos={sc*(295+150),38*sc},size={sc*110,20*sc},proc=V_EC_DoDifferential,title="Differential" 
    20892132                 
    20902133                 
     
    25302573// 
    25312574Proc V_CustomBinPanel() 
     2575        Variable sc = 1 
     2576                         
     2577        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     2578                sc = 0.7 
     2579        endif 
     2580 
    25322581        PauseUpdate; Silent 1           // building window... 
    2533         NewPanel /W=(130,44,851,455)/K=2 /N=V_CustomBinPanel 
     2582        NewPanel /W=(130*sc,44*sc,851*sc,455*sc)/K=2 /N=V_CustomBinPanel 
    25342583        DoWindow/C V_CustomBinPanel 
    25352584        ModifyPanel fixedSize=1//,noEdit =1 
    25362585        SetDrawLayer UserBack 
    25372586         
    2538         Button button0,pos={654,42}, size={50,20},title="Done",fSize=12 
     2587        Button button0,pos={sc*654,42*sc}, size={sc*50,20*sc},title="Done",fSize=12 
    25392588        Button button0,proc=V_CB_Done_Proc 
    2540         Button button1,pos={663,14},size={40,20},proc=V_CB_HelpButtonProc,title="?" 
    2541         Button button2,pos={216,42},size={80,20},title="Update",proc=V_CB_UpdateWavesButton      
    2542         SetVariable setvar1,pos={23,13},size={160,20},title="Number of slices",fSize=12 
     2589        Button button1,pos={sc*663,14*sc},size={sc*40,20*sc},proc=V_CB_HelpButtonProc,title="?" 
     2590        Button button2,pos={sc*216,42*sc},size={sc*80,20*sc},title="Update",proc=V_CB_UpdateWavesButton  
     2591        SetVariable setvar1,pos={sc*23,13*sc},size={sc*160,20*sc},title="Number of slices",fSize=12 
    25432592        SetVariable setvar1,proc=CB_NumSlicesSetVarProc,value=root:Packages:NIST:VSANS:Event:gEvent_nslices 
    2544         SetVariable setvar2,pos={24,44},size={160,20},title="Max Time (s)",fSize=10 
     2593        SetVariable setvar2,pos={sc*24,44*sc},size={sc*160,20*sc},title="Max Time (s)",fSize=10 
    25452594        SetVariable setvar2,value=root:Packages:NIST:VSANS:Event:gEvent_t_longest        
    25462595 
    2547         CheckBox chkbox1,pos={216,14},title="Enforce Max Time?" 
     2596        CheckBox chkbox1,pos={sc*216,14*sc},title="Enforce Max Time?" 
    25482597        CheckBox chkbox1,variable = root:Packages:NIST:VSANS:Event:gEvent_ForceTmaxBin 
    2549         Button button3,pos={500,14},size={90,20},proc=V_CB_SaveBinsButtonProc,title="Save Bins" 
    2550         Button button4,pos={500,42},size={100,20},proc=V_CB_ImportBinsButtonProc,title="Import Bins"     
     2598        Button button3,pos={sc*500,14*sc},size={sc*90,20*sc},proc=V_CB_SaveBinsButtonProc,title="Save Bins" 
     2599        Button button4,pos={sc*500,42*sc},size={sc*100,20*sc},proc=V_CB_ImportBinsButtonProc,title="Import Bins"         
    25512600                 
    25522601        SetDataFolder root:Packages:NIST:VSANS:Event: 
    25532602 
    2554         Display/W=(291,86,706,395)/HOST=V_CustomBinPanel/N=BarGraph binCount vs binEndTime 
     2603        Display/W=(291*sc,86*sc,706*sc,395*sc)/HOST=V_CustomBinPanel/N=BarGraph binCount vs binEndTime 
    25552604        ModifyGraph mode=5 
    25562605        ModifyGraph marker=19 
     
    25702619         
    25712620        // and the table 
    2572         Edit/W=(13,87,280,394)/HOST=V_CustomBinPanel/N=T0 
     2621        Edit/W=(13*sc,87*sc,280*sc,394*sc)/HOST=V_CustomBinPanel/N=T0 
    25732622        AppendToTable/W=V_CustomBinPanel#T0 timeWidth,binEndTime 
    25742623        ModifyTable width(Point)=40 
     
    29813030//      NewPanel /W=(1602,44,1961,380)/K=1 
    29823031////    ShowTools/A 
    2983 //      Button button0,pos={29,15},size={100,20},proc=SplitFileButtonProc,title="Split Big File" 
    2984 //      SetVariable setvar0,pos={182,55},size={150,15},title="Decimation factor",fsize=10 
     3032//      Button button0,pos={sc*29,15*sc},size={sc*100,20*sc},proc=SplitFileButtonProc,title="Split Big File" 
     3033//      SetVariable setvar0,pos={sc*182,55*sc},size={sc*150,15*sc},title="Decimation factor",fsize=10 
    29853034//      SetVariable setvar0,limits={1,inf,1},value= root:Packages:NIST:VSANS:Event:gDecimation 
    2986 //      Button button1,pos={26,245},size={150,20},proc=LoadDecimateButtonProc,title="Load and Decimate" 
    2987 //      Button button2,pos={25,277},size={150,20},proc=ConcatenateButtonProc,title="Concatenate" 
    2988 //      Button button3,pos={25,305},size={150,20},proc=DisplayConcatenatedButtonProc,title="Display Concatenated" 
    2989 //      Button button4,pos={29,52},size={130,20},proc=Stream_LoadDecim,title="Load From List" 
    2990 //       
    2991 //      GroupBox group0 title="Manual Controls",size={185,112},pos={14,220} 
     3035//      Button button1,pos={sc*26,245*sc},size={sc*150,20*sc},proc=LoadDecimateButtonProc,title="Load and Decimate" 
     3036//      Button button2,pos={sc*25,277*sc},size={sc*150,20*sc},proc=ConcatenateButtonProc,title="Concatenate" 
     3037//      Button button3,pos={sc*25,305*sc},size={sc*150,20*sc},proc=DisplayConcatenatedButtonProc,title="Display Concatenated" 
     3038//      Button button4,pos={sc*29,52*sc},size={sc*130,20*sc},proc=Stream_LoadDecim,title="Load From List" 
     3039//       
     3040//      GroupBox group0 title="Manual Controls",size={sc*185,112*sc},pos={sc*14,220} 
    29923041//EndMacro 
    29933042 
     
    30033052// 
    30043053Proc V_ShowDecimatedGraph() 
     3054        Variable sc = 1 
     3055                         
     3056        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     3057                sc = 0.7 
     3058        endif 
    30053059 
    30063060        DoWindow/F V_DecimatedGraph 
     
    30093063                String fldrSav0= GetDataFolder(1) 
    30103064                SetDataFolder root:Packages:NIST:VSANS:Event: 
    3011                 Display /W=(25,44,486,356)/K=1/N=V_DecimatedGraph rescaledTime_dec 
     3065                Display /W=(25*sc,44*sc,486*sc,356*sc)/K=1/N=V_DecimatedGraph rescaledTime_dec 
    30123066                SetDataFolder fldrSav0 
    30133067                ModifyGraph mode=4 
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_EventMode_Utils.ipf

    r1242 r1247  
    44 
    55 
    6  
    7  
     6// 
     7// There are functions in this file to generate "fake" event data for testing 
     8// 
    89 
    910 
     
    10461047// 
    10471048Window V_Event_Reduce_Panel() 
     1049        Variable sc = 1 
     1050                         
     1051        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     1052                sc = 0.7 
     1053        endif 
     1054         
    10481055        PauseUpdate; Silent 1           // building window... 
    1049         NewPanel /W=(535,72,951,288) /K=1 as "Event File File Reduction" 
     1056        NewPanel /W=(535*sc,72*sc,951*sc,288*sc) /K=1 as "Event File File Reduction" 
    10501057        ModifyPanel cbRGB=(60535,51151,51490) 
    10511058        ModifyPanel fixedSize=1 
    10521059        SetDrawLayer UserBack 
    1053         DrawLine 7,30,422,30 
    1054         SetVariable PathDisplay,pos={77,7},size={300,13},title="Path" 
     1060        DrawLine 7*sc,30*sc,422*sc,30*sc 
     1061        SetVariable PathDisplay,pos={sc*77,7*sc},size={sc*300,13*sc},title="Path" 
    10551062        SetVariable PathDisplay,help={"This is the path to the folder that will be used to find the SANS data while reducing. If no files appear in the popup, make sure that this folder is set correctly"} 
    10561063        SetVariable PathDisplay,limits={-Inf,Inf,0},value= root:Packages:NIST:VSANS:Globals:EVRED:gCatPathStr 
    1057         Button PathButton,pos={3,3},size={70,20},proc=V_PickEVRPathButton,title="Pick Path" 
     1064        Button PathButton,pos={sc*3,3*sc},size={sc*70,20*sc},proc=V_PickEVRPathButton,title="Pick Path" 
    10581065        Button PathButton,help={"Select the folder containing the raw SANS data files"} 
    1059         Button helpButton,pos={385,3},size={25,20},proc=V_ShowEVRHelp,title="?" 
     1066        Button helpButton,pos={sc*385,3*sc},size={sc*25,20*sc},proc=V_ShowEVRHelp,title="?" 
    10601067        Button helpButton,help={"Show the help file for reducing event files"} 
    1061         PopupMenu ERFilesPopup,pos={3,45},size={167,19},proc=V_EVR_RedPopMenuProc,title="File to Reduce" 
     1068        PopupMenu ERFilesPopup,pos={sc*3,45*sc},size={sc*167,19*sc},proc=V_EVR_RedPopMenuProc,title="File to Reduce" 
    10621069        PopupMenu ERFilesPopup,help={"The displayed file is the one that will be reduced."} 
    10631070        PopupMenu ERFilesPopup,mode=1,popvalue="none",value= #"root:Packages:NIST:VSANS:Globals:EVRED:gMRedList" 
    10641071 
    1065         SetVariable ERSlices,pos={3,75},size={100,15},title="# of slices" 
     1072        SetVariable ERSlices,pos={sc*3,75*sc},size={sc*100,15*sc},title="# of slices" 
    10661073        SetVariable ERSlices,limits={0,1000,0},value=root:Packages:NIST:VSANS:Globals:EVRED:gNumSlices 
    10671074         
    1068         SetVariable ERSelSlice,pos={150,75},size={100,15},title="current slice" 
     1075        SetVariable ERSelSlice,pos={sc*150,75*sc},size={sc*100,15*sc},title="current slice" 
    10691076        SetVariable ERSelSlice,limits={0,1000,1},value=root:Packages:NIST:VSANS:Globals:EVRED:gCurSlice 
    10701077        SetVariable ERSelSlice,proc=V_ChangeSliceViewSetVar 
    10711078 
    1072         Button ToSTOButton,pos={305,45},size={100,20},proc=V_EVR_LoadAndSTO,title="Load to STO" 
     1079        Button ToSTOButton,pos={sc*305,45*sc},size={sc*100,20*sc},proc=V_EVR_LoadAndSTO,title="Load to STO" 
    10731080        Button ToSTOButton,help={"Load the event file and copy to STO"} 
    10741081 
    1075         Button TimeBinButton,pos={305,75},size={100,20},proc=V_EVR_TimeBins,title="Time Bins" 
     1082        Button TimeBinButton,pos={sc*305,75*sc},size={sc*100,20*sc},proc=V_EVR_TimeBins,title="Time Bins" 
    10761083        Button TimeBinButton,help={"Display the time bins"} 
    10771084                                 
    1078 //      SetVariable ERList,pos={3,48},size={350,13},proc=V_FileNumberListProc,title="File number list: " 
     1085//      SetVariable ERList,pos={sc*3,48*sc},size={sc*350,13*sc},proc=V_FileNumberListProc,title="File number list: " 
    10791086//      SetVariable ERList,help={"Enter a comma delimited list of file numbers to reduce. Ranges can be entered using a dash."} 
    10801087//      SetVariable ERList,limits={-Inf,Inf,1},value= root:Packages:NIST:VSANS:Globals:EVRED:gFileNumList 
    10811088 
    1082         PopupMenu ERProto_pop,pos={3,118},size={119,19},proc=V_EVR_ProtoPopMenuProc,title="Protocol " 
     1089        PopupMenu ERProto_pop,pos={sc*3,118*sc},size={sc*119,19*sc},proc=V_EVR_ProtoPopMenuProc,title="Protocol " 
    10831090        PopupMenu ERProto_pop,help={"All of the data files in the popup will be reduced using this protocol"} 
    10841091        PopupMenu ERProto_pop,mode=1,popvalue="none",value= #"root:Packages:NIST:VSANS:Globals:EVRED:gMRProtoList" 
    1085         Button ReduceAllButton,pos={3,178},size={180,20},proc=V_EVR_ReduceAllSlices,title="Reduce All Slices" 
     1092        Button ReduceAllButton,pos={sc*3,178*sc},size={sc*180,20*sc},proc=V_EVR_ReduceAllSlices,title="Reduce All Slices" 
    10861093        Button ReduceAllButton,help={"This will reduce all slices."} 
    1087         Button ReduceOneButton,pos={3,148},size={180,20},proc=V_EVR_ReduceTopSlice,title="Reduce Selected Slice" 
     1094        Button ReduceOneButton,pos={sc*3,148*sc},size={sc*180,20*sc},proc=V_EVR_ReduceTopSlice,title="Reduce Selected Slice" 
    10881095        Button ReduceOneButton,help={"This will reduce the selected slice."} 
    10891096         
    1090         Button DoneButton,pos={290,178},size={110,20},proc=V_EVR_DoneButtonProc,title="Done Reducing" 
     1097        Button DoneButton,pos={sc*290,178*sc},size={sc*110,20*sc},proc=V_EVR_DoneButtonProc,title="Done Reducing" 
    10911098        Button DoneButton,help={"When done reducing files, this will close this control panel."} 
    10921099EndMacro 
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Menu.ipf

    r1243 r1247  
    1414        "VSANS Help" 
    1515        "-" 
    16         "Main Control Panel",DoWindow/F Main_VSANS_Panel 
    17         "Data Display",DoWindow/F VSANS_Data 
    1816        "VCALC",VCALC_Panel() 
    1917        "VSANS Preferences",Show_VSANSPreferences_Panel() 
     18        "-" 
     19        Submenu "Find Windows" 
     20                "Data Catalog",DoWindow/F CatVSANSTable 
     21                "Main Control Panel",DoWindow/F Main_VSANS_Panel 
     22                "Data Display",DoWindow/F VSANS_Data 
     23        End 
    2024        "-" 
    2125        Submenu "Data Panels" 
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_PatchFiles.ipf

    r1246 r1247  
    17551755        Edit/W=(180*sc,40*sc,380*sc,550*sc)/HOST=#  root:Packages:NIST:VSANS:Globals:Patch:deadTimeWave 
    17561756        ModifyTable width(Point)=30 
    1757         ModifyTable width(root:Packages:NIST:VSANS:Globals:Patch:deadTimeWave)=80 
     1757        ModifyTable width(root:Packages:NIST:VSANS:Globals:Patch:deadTimeWave)=110*sc 
    17581758        RenameWindow #,T0 
    17591759        SetActiveSubwindow ## 
     
    20672067        Edit/W=(180*sc,40*sc,580*sc,550*sc)/HOST=#  root:Packages:NIST:VSANS:Globals:Patch:calibrationWave 
    20682068        ModifyTable width(Point)=30 
    2069         ModifyTable width(root:Packages:NIST:VSANS:Globals:Patch:calibrationWave)=70 
     2069        ModifyTable width(root:Packages:NIST:VSANS:Globals:Patch:calibrationWave)=100*sc 
    20702070        // the elements() command transposes the view in the table, but does not transpose the wave 
    20712071        ModifyTable elements(root:Packages:NIST:VSANS:Globals:Patch:calibrationWave) = (-3, -2) 
     
    24362436        Edit/W=(180*sc,40*sc,500*sc,370*sc)/HOST=#  panelW,xCtr_cm,yCtr_cm 
    24372437        ModifyTable width(Point)=0 
    2438         ModifyTable width(panelW)=50 
    2439         ModifyTable width(xCtr_cm)=60 
    2440         ModifyTable width(yCtr_cm)=60 
     2438        ModifyTable width(panelW)=70*sc 
     2439        ModifyTable width(xCtr_cm)=90*sc 
     2440        ModifyTable width(yCtr_cm)=90*sc 
    24412441        RenameWindow #,T0 
    24422442        SetActiveSubwindow ## 
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Protocol_Reduction.ipf

    r1246 r1247  
    27542754        ModifyPanel cbRGB=(57346,65535,49151) 
    27552755        SetDrawLayer UserBack 
    2756         SetDrawEnv fstyle= 1 
     2756        SetDrawEnv fstyle= 1,fsize=12*sc 
    27572757        DrawText 21*sc,20*sc,"Method of absolute calibration" 
    27582758        Button button0,pos={sc*52,33*sc},size={sc*150,20*sc},proc=V_UserSelectABS_Continue,title="Empty Beam Flux" 
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_TemperatureSensor.ipf

    r1242 r1247  
    4848 
    4949 
    50 Window V_SensorGraph() : Graph 
     50Proc V_SensorGraph() : Graph 
     51 
     52        Variable sc = 1 
     53                         
     54        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     55                sc = 0.7 
     56        endif 
     57 
    5158        PauseUpdate; Silent 1           // building window... 
    5259//      Display /W=(1500,350,2300,750)/N=V_SensorGraph/K=1 
    5360//      ControlBar/L 300 
    54         Display /W=(600,50,1050,780)/N=V_SensorGraph/K=1 
    55         ControlBar/T 380 
     61                 
     62        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     63                Display /W=(600*sc,50*sc,1050*sc,600*sc)/N=V_SensorGraph/K=1 
     64                ControlBar/T 300*sc 
     65        else 
     66                Display /W=(600,50,1050,780)/N=V_SensorGraph/K=1 
     67                ControlBar/T 380 
     68        endif 
     69         
    5670//      ShowTools/A 
    57         PopupMenu popup0,pos={10.00,10.00},size={87.00,23.00},proc=V_WorkFolderPopMenuProc,title="folder" 
     71        PopupMenu popup0,pos={sc*10.00,10.00*sc},size={sc*87.00,23.00*sc},proc=V_WorkFolderPopMenuProc,title="folder" 
    5872        PopupMenu popup0,mode=1,popvalue="RAW",value= #"\"RAW;SAM;ABS;\"" 
    59         PopupMenu popup1,pos={10.00,40.00},size={84.00,23.00},proc=V_SensorPopMenuProc,title="sensor" 
     73        PopupMenu popup1,pos={sc*10.00,40.00*sc},size={sc*84.00,23.00*sc},proc=V_SensorPopMenuProc,title="sensor" 
    6074        PopupMenu popup1,mode=1,popvalue="pick folder",value= root:Packages:NIST:VSANS:Globals:gSensorFolders 
    61         TitleBox title0,pos={10.00,80.00},size={25.00,19.00},fSize=10,variable=root:Packages:NIST:VSANS:Globals:gSensorMetaData 
     75        TitleBox title0,pos={sc*10.00,80.00*sc},size={sc*25.00,19.00*sc},fSize=10,variable=root:Packages:NIST:VSANS:Globals:gSensorMetaData 
    6276EndMacro 
    6377 
Note: See TracChangeset for help on using the changeset viewer.