Changeset 316


Ignore:
Timestamp:
Apr 25, 2008 10:49:50 AM (14 years ago)
Author:
srkline
Message:

Adding error handling if the proper help file could not be found

Location:
sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/AvgGraphics.ipf

    r260 r316  
    318318Function ShowAvePanelHelp(ctrlName) : ButtonControl 
    319319        String ctrlName 
    320         DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[Average Options]" 
     320        DisplayHelpTopic/Z/K=1 "SANS Data Reduction Tutorial[Average Options]" 
     321        if(V_flag !=0) 
     322                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     323        endif 
    321324end 
    322325 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/FIT_Ops.ipf

    r313 r316  
    116116        String ctrlName 
    117117        DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[Fit Lines to Your Data]" 
     118        if(V_flag !=0) 
     119                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     120        endif 
    118121end 
    119122 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/Includes_v510.ipf

    r261 r316  
    6767// 
    6868Menu "SANSBeta" 
     69        "Help for Beta Operations",DisplayHelpTopic/Z/K=1 "Beta SANS Tools" 
     70        "-" 
    6971        "FillEMPUsingSelection" 
    70         "GuessEveryTransFile" 
    71         "GuessSelectedTransFiles" 
     72//      "GuessEveryTransFile" 
     73//      "GuessSelectedTransFiles" 
    7274        "ClearSelectedTransAssignments" 
    7375        "-" 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/MainPanel.ipf

    r298 r316  
    153153Proc HelpMainButtonProc(ctrlName) : ButtonControl 
    154154        String ctrlName 
    155         DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial" 
     155        DisplayHelpTopic/Z/K=1 "SANS Data Reduction Tutorial" 
     156        if(V_flag !=0) 
     157                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     158        endif 
    156159End 
    157160 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/MaskUtils.ipf

    r303 r316  
    362362Function ShowMaskHelp(ctrlName) : ButtonControl 
    363363        String ctrlName 
    364         DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[Draw a Mask]" 
     364        DisplayHelpTopic/Z/K=1 "SANS Data Reduction Tutorial[Draw a Mask]" 
     365        if(V_flag !=0) 
     366                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     367        endif 
    365368End 
    366369 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/Menu.ipf

    r260 r316  
    5454 
    5555Function SANSHelp() 
    56         DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial" 
     56        DisplayHelpTopic/Z/K=1 "SANS Data Reduction Tutorial" 
     57        if(V_flag !=0) 
     58                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     59        endif 
    5760End 
    5861 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/MultipleReduce.ipf

    r260 r316  
    201201 
    202202        DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[Reduce Multiple Files]" 
     203        if(V_flag !=0) 
     204                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     205        endif 
    203206End 
    204207 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/NSORT.ipf

    r303 r316  
    449449Function ShowNSORTHelp(ctrlName) : ButtonControl 
    450450        String ctrlName 
    451         DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[Sort and Combine Averaged Datasets]" 
     451        DisplayHelpTopic/Z/K=1 "SANS Data Reduction Tutorial[Sort and Combine Averaged Datasets]" 
     452        if(V_flag !=0) 
     453                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     454        endif 
    452455End 
    453456 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/PatchFiles.ipf

    r260 r316  
    664664Function ShowPatchHelp(ctrlName) : ButtonControl 
    665665        String ctrlName 
    666         DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[Patch File Headers]" 
     666        DisplayHelpTopic/Z/K=1 "SANS Data Reduction Tutorial[Patch File Headers]" 
     667        if(V_flag !=0) 
     668                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     669        endif 
    667670End 
    668671 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/ProtocolAsPanel.ipf

    r303 r316  
    932932Function ShowProtoHelp(ctrlName) : ButtonControl 
    933933        String ctrlName 
    934         DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[Build a Data Reduction Protocol]" 
     934        DisplayHelpTopic/Z/K=1 "SANS Data Reduction Tutorial[Build a Data Reduction Protocol]" 
     935        if(V_flag !=0) 
     936                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     937        endif 
    935938End 
    936939 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/Subtract_1D.ipf

    r260 r316  
    124124Function ShowSub1DHelp(ctrlName) : ButtonControl 
    125125        String ctrlName 
    126         //DoAlert 0,"The help file has not been written yet\r\r\t\t :-(" 
    127         DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[Subtract 1D Data]" 
     126        DisplayHelpTopic/Z/K=1 "SANS Data Reduction Tutorial[Subtract 1D Data]" 
     127        if(V_flag !=0) 
     128                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     129        endif 
    128130End 
    129131//kills both the panel and the graph, and then the data folder 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/Tile_2D.ipf

    r260 r316  
    7878Function ShowTileHelp(ctrlName) : ButtonControl 
    7979        String ctrlName 
    80         DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[Tile 2-D Images]" 
     80        DisplayHelpTopic/Z/K=1 "SANS Data Reduction Tutorial[Tile 2-D Images]" 
     81        if(V_flag !=0) 
     82                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     83        endif 
    8184end 
    8285 
     
    600603Function ShowRawExportHelp(ctrlName) : ButtonControl 
    601604        String ctrlName 
    602         DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[2-D ASCII Export]" 
     605        DisplayHelpTopic/Z/K=1 "SANS Data Reduction Tutorial[2-D ASCII Export]" 
     606        if(V_flag !=0) 
     607                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     608        endif 
    603609end 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/Transmission.ipf

    r260 r316  
    10671067        String ctrlName 
    10681068        DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[Calculate Transmissions]" 
     1069        if(V_flag !=0) 
     1070                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     1071        endif 
    10691072End 
    10701073 
  • sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.10/WorkFileUtils.ipf

    r260 r316  
    12041204Function ShowWorkMathHelp(ctrlName) : ButtonControl 
    12051205        String ctrlName 
    1206         DisplayHelpTopic/K=1 "SANS Data Reduction Tutorial[2-D Work File Arithmetic]" 
     1206        DisplayHelpTopic/Z/K=1 "SANS Data Reduction Tutorial[2-D Work File Arithmetic]" 
     1207        if(V_flag !=0) 
     1208                DoAlert 0,"The SANS Data Reduction Tutorial Help file could not be found" 
     1209        endif 
    12071210End 
    12081211 
Note: See TracChangeset for help on using the changeset viewer.