A mouse-over popup menu
Posted December 23rd, 2011 by RGerkin
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
