
Window specific marquee menu

RGerkin
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 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More
Thanks for the solution. In addition, need a suffix "dynamic" after "Menu" .
May 5, 2020 at 06:08 am - Permalink