Window specific marquee menu

Put this in a procedure file:

Menu "GraphMarquee"
  marquee_items(), do_something()
End

function /s marquee_items()
  string marquee_info = GetUserData("","","marquee")
  strswitch(marquee_info)
    case "special":
       string list = functionlist("*",";","WIN:special.ipf") // Assumes you want the marquee functions found in special.ipf.  
       break
    default:  
       list = "" // Or put some default list of marquee menu items here.  
       break
  endswitch
  return list
end

function do_something()
  getlastusermenuinfo
  execute /q/z s_value+"()"
end


Then add userData to your window:

SetWindow my_window userData(marquee)="special"

Forum

Support

Gallery

Igor Pro 8

Learn More

Igor XOP Toolkit

Learn More

Igor NIDAQ Tools MX

Learn More