Ignore:
Timestamp:
Mar 20, 2020 11:51:13 AM (3 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/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 
Note: See TracChangeset for help on using the changeset viewer.