主题:  劳烦劳烦劳烦!!还是那右击级联菜单问题

kayxue00000

职务:普通成员
等级:1
金币:0.0
发贴:4
#12004/12/29 16:44:46
多谢关照!!!
右击级联菜单原代码如下
==================================
popupHandle:=tMsCreatePopupList(WindowHandle)
result :=tMsAddItem(popupHandle,1,0,"第五章")
result :=tMsAddItem(popupHandle,1,1,"第一节")
result :=tMsAddItem(popupHandle,1,2,"第二节")
result :=tMsAddItem(popupHandle,1,3,"第三节")
result :=tMsAddItem(popupHandle,1,4,"第四节")
result :=tMsAddItem(popupHandle,1,5,"第五节")
result :=tMsAddItem(popupHandle,1,6,"第六节")
result :=tMsAddItem(popupHandle,1,7,"第七节")
result :=tMsAddItem(popupHandle,2,0,"-")
result :=tMsAddItem(popupHandle,3,0,"退出")
result :=tMsAddItem(popupHandle,4,0,"-")
result := tMsDisplayControl(popupHandle,CursorX,CursorY+40,0, 0, 1)
if result="第五章:第一节" then GoTo(IconID@"第五章第一节")
if result="第五章:第二节" then GoTo(IconID@"第五章第二节")
if result="第五章:第三节" then GoTo(IconID@"第五章第三节")
if result="第五章:第四节" then GoTo(IconID@"第五章第四节")
if result="第五章:第五节" then GoTo(IconID@"第五章第五节")
if result="第五章:第六节" then GoTo(IconID@"第五章第六节")
if result="第五章:第七节" then GoTo(IconID@"第五章第七节")
if result="退出" then GoTo(IconID@"主界面")
===================================

多谢多谢!! :p :p





















编辑历史:[此帖最近一次被 Rock 编辑过(编辑时间:2004-12-29 18:01:04)]


魔岩

职务:版主
等级:6
金币:34.0
发贴:4453
#22004/12/29 18:49:19
置顶的精彩实例不是有范例吗?
vip.5d.cn/rock/5DExample/R_menu.zip

另外tMsControls.u32生成菜单在XP系统下不能正常显示!



yangbing

职务:普通成员
等级:1
金币:0.0
发贴:47
#32004/12/29 19:48:46
如何让它在XP中正常使用呢?



魔岩

职务:版主
等级:6
金币:34.0
发贴:4453
#42004/12/29 22:12:14
换用budmenu.u32或者其他的插件拉