Changeset 876


Ignore:
Timestamp:
Nov 19, 2012 11:48:59 AM (10 years ago)
Author:
matthew.was
Message:

Updated the RA Panel to include a help button

File:
1 edited

Legend:

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

    r874 r876  
    19111911        SetVariable expc,help={"This sets the exponent \"c\" for some x-axis formats. The value is ignored if the model does not use \"c\" as an adjustable exponent"} 
    19121912        SetVariable expc,limits={-10,10,0},value= root:Packages:NIST:RescaleAxis:gRAExpC 
     1913        Button RAHelp, pos={220,110}, size={20,20}, proc=RAHelpButtonProc, title="?" 
    19131914EndMacro 
    19141915 
     
    19191920        CheckBox check_8 value=0 
    19201921end 
     1922 
     1923Function RAHelpButtonProc(ba) : ButtonControl 
     1924        STRUCT WMButtonAction &ba 
     1925 
     1926        switch( ba.eventCode ) 
     1927                case 2: // mouse up 
     1928                        // click code here 
     1929                        DisplayHelpTopic/Z/K=1 "Rescaled Axis" 
     1930                        if(V_flag !=0) 
     1931                                DoAlert 0,"The Rescaled Axis Help file could not be found" 
     1932                        endif 
     1933                        break 
     1934        endswitch 
     1935 
     1936        return 0 
     1937End 
    19211938 
    19221939Proc ExportData(ctrlName): ButtonControl 
Note: See TracChangeset for help on using the changeset viewer.