当前位置:网站首页>Screen right-click menu in souI
Screen right-click menu in souI
2022-04-23 18:52:00 【Brick Porter】
at present SOUI Only the text control has a right-click menu . But generally speaking, it may not be necessary to display . Even if you want to display it, you may need to beautify it and so on . Here's how to deal with it .
First step : Add the right-click event of all controls to the event processing .
EVENT_MAP_BEGIN()
...
EVENT_HANDLER(EVT_CTXMENU, OnCtxMenu)
EVENT_MAP_END()
The second step : Handling events , take bCancel Set to TRUE. You can cancel the right-click menu . Of course, it can also be ID Or name to partially disable or enable .
void OnCtxMenu(EventArgs* pEvt)
{
EventCtxMenu* pRelEvt = sobj_cast<EventCtxMenu>(pEvt);
if (pRelEvt)
{
pRelEvt->bCancel = TRUE;
}
}
Of course, it can also be replaced with its own menu . Like beautification .
版权声明
本文为[Brick Porter]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210603257351.html
边栏推荐
- Methods of nested recycleview to solve sliding conflict and incomplete item display
- listener.log
- How about CICC wealth? Is it safe to open an account up there
- ESP32 LVGL8. 1 - bar progress bar (bar 21)
- 简化路径(力扣71)
- WebView saves the last browsing location
- 深入理解 Golang 中的 new 和 make 是什么, 差异在哪?
- 电路在线模拟
- Simplified path (force buckle 71)
- ESP32 LVGL8. 1 - textarea text area (textarea 26)
猜你喜欢
昇腾 AI 开发者创享日全国巡回首站在西安成功举行
Summary of actual business optimization scheme - main directory - continuous update
实战业务优化方案总结---主目录---持续更新
STM32: LCD显示
STM32: LCD display
解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本
解决:cnpm : 無法加載文件 ...\cnpm.ps1,因為在此系統上禁止運行脚本
Machine learning theory (8): model integration ensemble learning
Introduction to ROS learning notes (I)
listener.log
随机推荐
Sentinel服务熔断实战(sentinel整合ribbon+openFeign+fallback)
How can programmers quickly develop high-quality code?
ESP32 LVGL8. 1 - label (style 14)
Can filter
Halo open source project learning (VII): caching mechanism
Domestic GD chip can filter
ctfshow-web361(SSTI)
One of the reasons why the WebView web page cannot be opened (and some WebView problem records encountered by myself)
Machine learning theory (8): model integration ensemble learning
Tencent map and high logo removal method
机器学习理论之(7):核函数 Kernels —— 一种帮助 SVM 实现非线性化决策边界的方式
Practice of Druid SQL and security in meituan review
Use of kotlin collaboration in the project
【数学建模】—— 层次分析法(AHP)
22年字节跳动飞书人力套件三面面经
Esp32 (UART event) - serial port event learning (1)
ctfshow-web362(SSTI)
Advanced transfer learning
微搭低代码零基础入门课(第三课)
listener.log