系统托盘右键菜单坐标问题MROW( )
MROW( ) 函数,返回 Visual FoxPro 主窗口、用户自定义窗口或表单中鼠标指针的行位置。我在系统托盘,右键调出菜单
DEFINE POPUP 快捷菜单 SHORTCUT RELATIVE FROM MROW()+100,MCOL()
DEFINE BAR 1 OF 快捷菜单 PROMPT "aaa"
DEFINE BAR 2 OF 快捷菜单 PROMPT "bbb"
DEFINE BAR 3 OF 快捷菜单 PROMPT "ccc"
DEFINE BAR 4 OF 快捷菜单 PROMPT "ddd"
DEFINE BAR 5 OF 快捷菜单 PROMPT "eee"
DEFINE BAR 6 OF 快捷菜单 PROMPT "fff"
DEFINE BAR 7 OF 快捷菜单 PROMPT "ggg"
ON SELECTION BAR 1 OF 快捷菜单 messagebox("aaa")
ON SELECTION BAR 2 OF 快捷菜单 messagebox("bbb")
ON SELECTION BAR 3 OF 快捷菜单 messagebox("ccc")
ON SELECTION BAR 4 OF 快捷菜单 messagebox("ddd")
ON SELECTION BAR 5 OF 快捷菜单 do ExitCmd
ACTIVATE POPUP 快捷菜单
红字那里,为什么要+60以上,菜单才是在最底下?要是0的话,他就在最上面