Ignore:
Timestamp:
Jul 15, 2008 11:19:38 AM (15 years ago)
Author:
srkline
Message:

DoSaveFileDialog? now takes two optional parameters, fname and suffix that can speed file save/rename, especially when used with the subtract1D operation.

Invariant now has a new macro to solve for the volume fraction.

PNGs are used wherever possible for reports. Gizmo window are still the oddball, and are limited to native platform formats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/SANS/Reduction/WriteQIS.ipf

    r328 r393  
    811811 
    812812// returns the path to the file, or null if the user cancelled 
    813 Function/S DoSaveFileDialog(msg) 
    814         String msg 
     813// fancy use of optional parameters 
     814Function/S DoSaveFileDialog(msg,[fname,suffix]) 
     815        String msg,fname,suffix 
    815816        Variable refNum 
    816817//      String message = "Save the file as" 
    817         String outputPath 
    818          
    819         Open/D/M=msg/T="????" refNum 
     818 
     819        if(ParamIsDefault(fname)) 
     820//              Print "fname not supplied" 
     821                fname = "" 
     822        endif 
     823        if(ParamIsDefault(suffix)) 
     824//              Print "suffix not supplied" 
     825                suffix = "" 
     826        endif 
     827         
     828        String outputPath,tmpName 
     829        tmpName = fname + suffix 
     830         
     831        Open/D/M=msg/T="????" refNum as tmpName 
    820832        outputPath = S_fileName 
    821833         
Note: See TracChangeset for help on using the changeset viewer.