当前位置:网站首页>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
边栏推荐
- ESP32 LVGL8. 1 - textarea text area (textarea 26)
- ESP32 LVGL8. 1 - bar progress bar (bar 21)
- Coolweather is revised and connected to the wind weather interface to realize the broken line diagram of temperature
- : app: transformclasseswithrobustfordevrease meituan hot repair compilation error record
- Nacos cluster construction and MySQL persistence configuration
- mysql_linux版本的下载及安装详解
- After opening the original normal project, the dependency package displays red and does not exist.
- Druid SQL和Security在美团点评的实践
- Solutions such as unknown or garbled code or certificate problem prompt in Charles's mobile phone packet capture, actual measurement.
- Introduction to ROS learning notes (I)
猜你喜欢
【数学建模】—— 层次分析法(AHP)
PyGame tank battle
MySQL Téléchargement et installation de la version Linux
ESP32 LVGL8. 1 - label (style 14)
ESP32 LVGL8. 1 - checkbox (checkbox 23)
Introduction to ROS learning notes (I)
机器学习理论之(8):模型集成 Ensemble Learning
Druid SQL和Security在美团点评的实践
7、 DOM (Part 2) - chapter after class exercises and answers
玻璃体中的硫酸软骨素
随机推荐
Golang 语言实现TCP UDP通信
WebView opens H5 video and displays gray background or black triangle button. Problem solved
深入理解 Golang 中的 new 和 make 是什么, 差异在哪?
Nacos cluster construction and MySQL persistence configuration
Treatment of incomplete display of listview height
QT curve / oscilloscope customplot control
机器学习理论之(7):核函数 Kernels —— 一种帮助 SVM 实现非线性化决策边界的方式
MySQL statement
程序员如何快速开发高质量的代码?
ESP32 LVGL8. 1 - anim animation (anim 16)
Yyds dry goods inventory stringprep --- Internet string preparation
使用 bitnami/postgresql-repmgr 镜像快速设置 PostgreSQL HA
Esp32 (UART 485 communication) - 485 communication of serial port (3)
机器学习理论之(8):模型集成 Ensemble Learning
Click the input box to pop up the keyboard layout and move up
Druid SQL和Security在美团点评的实践
Go language GUI framework Fyne Chinese garbled or not displayed
Simple use of viewbinding
C language simulates entering and leaving the stack, first in first out, first in first out, shared memory
The first leg of the national tour of shengteng AI developer creation and enjoyment day was successfully held in Xi'an