Changeset 882 for sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS
- Timestamp:
- Dec 3, 2012 3:31:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/EventModeProcessing.ipf
r881 r882 169 169 Button button5,pos={175,147},size={140,20},proc=ExportSlicesButtonProc,title="Export Slices as VAX" 170 170 Button button6,pos={378,13},size={40,20},proc=EventModeHelpButtonProc,title="?" 171 172 Button button7,pos={175+155,122},size={140,20},proc=AdjustEventDataButtonProc,title="Adjust Events" 173 Button button8,pos={175+155,147},size={140,20},proc=CustomBinButtonProc,title="Custom Bins" 171 174 172 175 Button button1,pos = {10,50}, size={150,20},title="Process Data",fSize=12 … … 201 204 SetActiveSubwindow ## 202 205 EndMacro 206 207 208 Function AdjustEventDataButtonProc(ba) : ButtonControl 209 STRUCT WMButtonAction &ba 210 211 switch( ba.eventCode ) 212 case 2: // mouse up 213 // click code here 214 Execute "EventCorrectionPanel()" 215 // 216 break 217 case -1: // control being killed 218 break 219 endswitch 220 221 return 0 222 End 223 224 Function CustomBinButtonProc(ba) : ButtonControl 225 STRUCT WMButtonAction &ba 226 227 switch( ba.eventCode ) 228 case 2: // mouse up 229 // click code here 230 Execute "Show_CustomBinPanel()" 231 // 232 break 233 case -1: // control being killed 234 break 235 endswitch 236 237 return 0 238 End 239 Show_CustomBinPanel() 240 203 241 204 242 Function ShowEventDataButtonProc(ba) : ButtonControl … … 1637 1675 ModifyGraph msize=1 1638 1676 // SetAxis/A=2 left //only autoscale the visible data (based on the bottom limits) 1639 //SetAxis bottom 0,15001677 SetAxis bottom 0,1500 1640 1678 ErrorBars rescaledTime OFF 1641 1679 Label left "\\Z14Time (seconds)" … … 1865 1903 ////////////// Post-processing of the event mode data 1866 1904 1867 MacroEventCorrectionPanel()1905 Proc EventCorrectionPanel() 1868 1906 1869 1907 PauseUpdate; Silent 1 // building window... … … 2143 2181 // trying to draw the panel 2144 2182 // 2145 MacroShow_CustomBinPanel()2183 Proc Show_CustomBinPanel() 2146 2184 DoWindow/F CustomBinPanel 2147 2185 if(V_flag ==0)
Note: See TracChangeset
for help on using the changeset viewer.