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_TemperatureSensor.ipf

    r1242 r1247  
    4848 
    4949 
    50 Window V_SensorGraph() : Graph 
     50Proc V_SensorGraph() : Graph 
     51 
     52        Variable sc = 1 
     53                         
     54        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     55                sc = 0.7 
     56        endif 
     57 
    5158        PauseUpdate; Silent 1           // building window... 
    5259//      Display /W=(1500,350,2300,750)/N=V_SensorGraph/K=1 
    5360//      ControlBar/L 300 
    54         Display /W=(600,50,1050,780)/N=V_SensorGraph/K=1 
    55         ControlBar/T 380 
     61                 
     62        if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 
     63                Display /W=(600*sc,50*sc,1050*sc,600*sc)/N=V_SensorGraph/K=1 
     64                ControlBar/T 300*sc 
     65        else 
     66                Display /W=(600,50,1050,780)/N=V_SensorGraph/K=1 
     67                ControlBar/T 380 
     68        endif 
     69         
    5670//      ShowTools/A 
    57         PopupMenu popup0,pos={10.00,10.00},size={87.00,23.00},proc=V_WorkFolderPopMenuProc,title="folder" 
     71        PopupMenu popup0,pos={sc*10.00,10.00*sc},size={sc*87.00,23.00*sc},proc=V_WorkFolderPopMenuProc,title="folder" 
    5872        PopupMenu popup0,mode=1,popvalue="RAW",value= #"\"RAW;SAM;ABS;\"" 
    59         PopupMenu popup1,pos={10.00,40.00},size={84.00,23.00},proc=V_SensorPopMenuProc,title="sensor" 
     73        PopupMenu popup1,pos={sc*10.00,40.00*sc},size={sc*84.00,23.00*sc},proc=V_SensorPopMenuProc,title="sensor" 
    6074        PopupMenu popup1,mode=1,popvalue="pick folder",value= root:Packages:NIST:VSANS:Globals:gSensorFolders 
    61         TitleBox title0,pos={10.00,80.00},size={25.00,19.00},fSize=10,variable=root:Packages:NIST:VSANS:Globals:gSensorMetaData 
     75        TitleBox title0,pos={sc*10.00,80.00*sc},size={sc*25.00,19.00*sc},fSize=10,variable=root:Packages:NIST:VSANS:Globals:gSensorMetaData 
    6276EndMacro 
    6377 
Note: See TracChangeset for help on using the changeset viewer.