1185907650 发表于 2022-1-10 14:44:54

火山PC深入玩转自定义菜单

本帖最后由 1185907650 于 2022-1-11 09:26 编辑

一、创建系统菜单Ctrl+I,快速插入,如下https://www.lkuaiy.com/image/editor/1641535147049177.png
二、封装类①创建模板类Ctrl+D创建类,如下图https://www.lkuaiy.com/image/editor/1641535157094219.png
②封装取图标句柄对象https://www.lkuaiy.com/image/editor/1641535**383511.pnghttps://www.lkuaiy.com/image/editor/1641535169830934.pnghttps://www.lkuaiy.com/image/editor/1641535176118430.png
③创建菜单项https://www.lkuaiy.com/image/editor/1641535180712132.pnghttps://www.lkuaiy.com/image/editor/1641535185411670.png
④创建下拉项及插入https://www.lkuaiy.com/image/editor/1641535188933500.pnghttps://www.lkuaiy.com/image/editor/1641535192132643.png
⑤选中和取消https://www.lkuaiy.com/image/editor/1641535197613552.png
⑥启用禁用https://www.lkuaiy.com/image/editor/1641535202497855.png
⑦删除修改https://www.lkuaiy.com/image/editor/1641535206718233.png
⑧**出菜单https://www.lkuaiy.com/image/editor/1641535210280165.png
三、调用①修改系统菜单https://www.lkuaiy.com/image/editor/1641535214908500.png
②创建https://www.lkuaiy.com/image/editor/1641535219242234.pnghttps://www.lkuaiy.com/image/editor/1641535222560834.png
③修改、禁用等https://www.lkuaiy.com/image/editor/1641535226850417.png
④触发菜单事件https://www.lkuaiy.com/image/editor/1641535232145247.png
四、演示https://www.lkuaiy.com/image/editor/1641535236402625.gif
例子下载:**** Hidden Message *****

nurjay 发表于 2022-1-10 20:39:17

很不错!!!辛辛苦了,收下

1185907650 发表于 2022-1-11 09:27:07

日常一顶

1185907650 发表于 2022-1-13 09:36:16

日常一顶

米粒 发表于 2022-1-13 10:31:36

官方连个高级菜单都没空封装!

itismine 发表于 2022-1-13 10:50:45

学习一下。

qaz2428119 发表于 2022-1-15 20:02:15

如果好用,可以自己改改

网络注册会员 发表于 2022-1-16 07:03:51


学习一下

芒g一号 发表于 2022-1-18 16:58:10

感谢分享

lichenxui 发表于 2022-1-18 17:44:19

收下学习
页: [1] 2 3 4 5 6
查看完整版本: 火山PC深入玩转自定义菜单