Ignore:
Timestamp:
Mar 19, 2020 4:35:21 PM (2 years ago)
Author:
srkline
Message:

A large number of changes to the size of panels to enable "Laptop Mode" where all of the panels and controls are scaled down so that they fit on screen and are still in correct proportion. For the laptop I'm using for testing, the resolution is 1920x1080. For this, a scaling of 0.7 seems to work. The on/off of the "laptop Mode" is controlled by a checkbox in the preference panel (under the General tab).

There are still more panels to update in the next commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_IQ_Annular.ipf

    r1242 r1246  
    9393        SetDataFolder $("root:Packages:NIST:VSANS:"+folderStr) 
    9494 
     95        Variable sc = 1 
     96         
     97        NVAR gLaptopMode = root:Packages:NIST:VSANS:Globals:gLaptopMode 
     98                 
     99        if(gLaptopMode == 1) 
     100                sc = 0.7 
     101        endif 
     102 
    95103        DoWindow/F V_Phi_Graph 
    96104        if(V_flag == 0) 
    97                 Display /W=(35,45,572,419)/N=V_Phi_Graph /K=1 
     105                Display /W=(35*sc,45*sc,572*sc,419*sc)/N=V_Phi_Graph /K=1 
    98106        else 
    99107                RemoveFromGraph/Z iPhiBin_qxqy_FLRTB 
Note: See TracChangeset for help on using the changeset viewer.