Ignore:
Timestamp:
Sep 23, 2016 3:14:17 PM (6 years ago)
Author:
srkline
Message:

fix bugs in operation of patch panel (wrong button function) and bugs in mask draw panel where the maximum row/column allowed was not being updated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_MaskUtils.ipf

    r1002 r1013  
    177177                                val = DimSize(data, 0) -1 
    178178                        endif 
    179                          
     179 
     180//                      print "max = ",val 
     181                                                 
    180182                        SetVariable setvar0,limits={0,val,1} 
    181183                        NVAR gVal = root:Packages:NIST:VSANS:Globals:gMaskTube 
     
    400402                        DrawPanelToMask(popStr) 
    401403 
     404                        // fake a "click" on the radio buttons to re-set the row/col limits 
     405                        STRUCT WMCheckboxAction cba 
     406                        cba.eventCode = 2 
     407                         
     408                        ControlInfo check_0 
     409                        if(V_flag == 1)         //row is currently selected 
     410                                cba.ctrlName = "check_0" 
     411                        else 
     412                                cba.ctrlName = "check_1" 
     413                        endif 
     414                         
     415                        DrawMaskRadioCheckProc(cba)             //call the radio button action proc      
     416                         
    402417                        //overlay the mask 
    403418                        V_OverlayMask(popStr,1) 
     
    561576// if state==1, show the mask, if ==0, hide the mask 
    562577// 
    563 //** This assumes that if the overlay is/not present on the image display, then the currentTiube is also there/not 
     578//** This assumes that if the overlay is/not present on the image display, then the currentTube is also there/not 
    564579// and is not checked 
    565580// 
Note: See TracChangeset for help on using the changeset viewer.