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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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         
Note: See TracChangeset for help on using the changeset viewer.