A mouse-over popup menu

Run this example:

newpanel
button myButton proc=myProc


With this code in a user procedure:

function myProc(info)
    struct wmbuttonaction &info
   
    if(info.eventcode==5)
        CtrlNamedBackground myBkg, proc=myBkgFunc,start=ticks+60,period=60
    elseif(info.eventcode==6)
        CtrlNamedBackground myBkg, kill
    endif
end

function myBkgFunc(info)
    struct wmbackgroundstruct &info
   
    popupcontextualmenu "Hello!"
    return 1
end

Forum

Support

Gallery

Igor Pro 9

Learn More

Igor XOP Toolkit

Learn More

Igor NIDAQ Tools MX

Learn More