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