Ignore:
Timestamp:
Jun 10, 2016 3:40:55 PM (6 years ago)
Author:
srkline
Message:

A number of simple fixes to make the macros compatible with Igor 7, and in some places back-compatible with Igor 6. There were only a few instances where the IgorVersion? was checked, so it does not caues a huge disruption.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotUtils2D_v40.ipf

    r956 r1001  
    997997EndMacro 
    998998 
    999  
     999// 
     1000// in Igor 6, Gizmo windows are code 4096 
     1001// in Igor 7, Gizmo windows are code 65536 
     1002// need to check for version, since code 65536 is not allowed in Igor 6 
     1003//  
     1004// this function returns only the topmost window from the list 
    10001005Function/S TopGizmoWindow() 
    1001         Return(StringFromList(0,WinList("*",";","WIN:4096"))) 
     1006        if(IgorVersion() >= 7) 
     1007                return(StringFromList(0,WinList("*",";","WIN:65536"))) 
     1008        else 
     1009                return(StringFromList(0,WinList("*",";","WIN:4096"))) 
     1010        endif 
    10021011end 
    10031012 
Note: See TracChangeset for help on using the changeset viewer.