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