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