Ignore:
Timestamp:
Sep 21, 2007 3:18:47 PM (16 years ago)
Author:
srkline
Message:

Changed NSORT to display rescaling and overlap constants behind the OS file save dialog, allowing the user to cancel the save it something is amiss.

No significant change in trans=1 panel behavior in Correct.ipf

Cosmetic changes to RawWindowHook? (drawing order) to look nicer w/OS native panels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.00/Correct.ipf

    r116 r167  
    958958        endif 
    959959        //get input from the user 
    960         NewDataFolder/O root:tmp_trans 
    961         Variable/G root:tmp_trans:inputTrans=0.9 
    962         Variable/G root:tmp_trans:returnCode=0 
     960        NewDataFolder/O root:myGlobals:tmp_trans 
     961        Variable/G root:myGlobals:tmp_trans:inputTrans=0.9 
     962        Variable/G root:myGlobals:tmp_trans:returnCode=0 
    963963        DoTransInput(type) 
    964         NVAR inputTrans=root:tmp_trans:inputTrans 
    965         NVAR code=root:tmp_trans:returnCode 
     964        NVAR inputTrans=root:myGlobals:tmp_trans:inputTrans 
     965        NVAR code=root:myGlobals:tmp_trans:returnCode 
    966966        newTrans=inputTrans             //keep a copy before deleting everything 
    967967        newCode=code 
     
    970970        Endif 
    971971//      printf "You entered %g and the code is %g\r",newTrans,newCode 
    972         KillDataFolder root:tmp_trans 
     972//      KillDataFolder root:tmp_trans 
    973973         
    974974        if(newCode==1) 
     
    987987         
    988988//      Print "ignore now" 
    989         NVAR val=root:tmp_trans:returnCode 
     989        NVAR val=root:myGlobals:tmp_trans:returnCode 
    990990        val=0           //code for ignore once 
    991991         
     
    10021002        DrawText 15,125,"(Reset this in Preferences)" 
    10031003        SetVariable setvar0,pos={20,170},size={160,17},limits={0,1,0.01} 
    1004         SetVariable setvar0,value= root:tmp_trans:inputTrans,title="New Transmission" 
     1004        SetVariable setvar0,value= root:myGlobals:tmp_trans:inputTrans,title="New Transmission" 
    10051005 
    10061006        Button button0,pos={36,56},size={120,20},proc=IgnoreNowButton,title="Ignore This Time" 
     
    10151015 
    10161016//      Print "ignore always" 
    1017         NVAR val=root:tmp_trans:returnCode 
     1017        NVAR val=root:myGlobals:tmp_trans:returnCode 
    10181018        val=1           //code for ignore always 
    10191019        DoWindow/K tmp_GetInputPanel            // Kill self 
     
    10241024 
    10251025//      Print "use new Value" 
    1026         NVAR val=root:tmp_trans:returnCode 
     1026        NVAR val=root:myGlobals:tmp_trans:returnCode 
    10271027        val=2           //code for use new Value 
    10281028        DoWindow/K tmp_GetInputPanel            // Kill self 
     
    10331033 
    10341034//      Print "Abort" 
    1035         NVAR val=root:tmp_trans:returnCode 
     1035        NVAR val=root:myGlobals:tmp_trans:returnCode 
    10361036        val=4           //code for abort 
    10371037        DoWindow/K tmp_GetInputPanel            // Kill self 
Note: See TracChangeset for help on using the changeset viewer.