proper positioning now:
`creating pop-up menus in dbp
`by esc
sync on:sync rate 60
set window on
set window title "POP-UP MENU TESTS"
`----------------------
load dll "user32.dll",1
`----------------------
hwnd = call dll(1,"GetActiveWindow")
hmenu=call dll(1,"CreatePopupMenu")
null=call dll(1,"AppendMenuA",hmenu,0,0,"Hello!")
null=call dll(1,"AppendMenuA",hmenu,0,1,"Popup menus in DBP")
null=call dll(1,"AppendMenuA",hmenu,2048,2)
null=call dll(1,"AppendMenuA",hmenu,0,3,"Divided")
null=call dll(1,"AppendMenuA",hmenu,32,4,"Testing menubar break")
null=call dll(1,"AppendMenuA",hmenu,1,5,"Can't touch this!")
null=call dll(1,"AppendMenuA",hmenu,2,6,"Can't touch this either!")
null=call dll(1,"AppendMenuA",hmenu,8,7,"Checked off")
null=call dll(1,"AppendMenuA",hmenu,64,8,"Testing menu break")
null=call dll(1,"AppendMenuA",hmenu,128,9,"Highlighted")
null=call dll(1,"AppendMenuA",hmenu,15,10)
set text size 30
make memblock 1,8
do
cls rgb(110,110,110)
retval=call dll(1,"GetCursorPos",get memblock ptr(1))
if mouseclick()=2
returnv=call dll(1,"TrackPopupMenu",hmenu,256,memblock word(1,0),memblock word(1,4),0,hwnd,0)
endif
text 0,0,str$(returnv)
sync
loop
"That's not a bug, it's a feature!"
"Variables won't, constants aren't."