Ignore:
Timestamp:
Jun 16, 2008 3:44:46 PM (15 years ago)
Author:
srkline
Message:

Minor fixes to cursor hook in Wrapper - to act only on mouseup
Version number 6.010

Location:
sans/Dev/trunk/NCNR_User_Procedures/SANS/Analysis/Models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/SANS/Analysis/Models/Packages/Wrapper_v40.ipf

    r384 r385  
    11831183        STRUCT WMCheckboxAction &cba 
    11841184 
    1185         String topGraph= WinName(0,1)   //this is the topmost graph 
    1186         if(cmpstr(topGraph,"")==0)      //no graphs, uncheck and exit 
    1187                 CheckBox check_0,value=0 
    1188                 return(0) 
    1189         endif 
    1190                  
    1191         String ciStr = CsrInfo(A , topGraph) 
    1192          
    1193         ControlInfo/W=wrapperpanel popup_0 
    1194         String folderStr=S_Value 
    1195         String traceList = TraceNameList(topGraph, ";", 1 ) 
    1196          
     1185 
    11971186        switch( cba.eventCode ) 
    11981187                case 2: // mouse up 
     1188                        // check to make sure there really is a "topmost" graph          
     1189                        String topGraph= WinName(0,1)   //this is the topmost graph 
     1190                        if(cmpstr(topGraph,"")==0)      //no graphs, uncheck and exit 
     1191                                CheckBox check_0,value=0 
     1192                                return(0) 
     1193                        endif 
     1194                                 
     1195                        String ciStr = CsrInfo(A , topGraph) 
     1196                         
     1197                        ControlInfo/W=wrapperpanel popup_0 
     1198                        String folderStr=S_Value 
     1199                        String traceList = TraceNameList(topGraph, ";", 1 )              
     1200                 
    11991201                        Variable checked = cba.checked 
     1202                         
    12001203                        if(checked) 
    12011204                                //print "add the cursors to the topmost graph, if the data set is there, or move them" 
  • sans/Dev/trunk/NCNR_User_Procedures/SANS/Analysis/Models/PlotUtilsMacro_v40.ipf

    r325 r385  
    141141                                        SetDataFolder root: 
    142142                                        KillWaves $n0,$n1,$n2,$n3,$n4,$n5               // kill the default waveX that were loaded 
    143                                         //if(DataFolderExists("root:Packages:NIST")) 
    144                                         //      String/G root:Packages:NIST:gLastFileName = filename 
    145                                         //endif         //set the last file loaded to the one NOT loaded 
     143                                        if(DataFolderExists("root:Packages:NIST")) 
     144                                                String/G root:Packages:NIST:gLastFileName = filename 
     145                                        endif           //set the last file loaded to the one NOT loaded 
    146146                                        return          //quits the macro 
    147147                                endif 
Note: See TracChangeset for help on using the changeset viewer.