当前位置:网站首页>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
边栏推荐
- Treatment of incomplete display of listview height
- 玻璃体中的硫酸软骨素
- 配置iptables
- ctfshow-web362(SSTI)
- After opening the original normal project, the dependency package displays red and does not exist.
- : app: transformclasseswithrobustfordevrease meituan hot repair compilation error record
- After CANopen starts PDO timing transmission, the heartbeat frame time is wrong, PDO is delayed, and CANopen time axis is disordered
- Esp32 (UART event) - serial port event learning (1)
- The type initializer for ‘Gdip‘ threw an exception
- [mathematical modeling] - analytic hierarchy process (AHP)
猜你喜欢
【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生
WebView opens H5 video and displays gray background or black triangle button. Problem solved
Introduction to ROS learning notes (I)
ESP32 LVGL8. 1 - input devices (input devices 18)
使用 bitnami/postgresql-repmgr 镜像快速设置 PostgreSQL HA
使用 bitnami/postgresql-repmgr 镜像快速设置 PostgreSQL HA
ESP32 LVGL8. 1 - bar progress bar (bar 21)
【数学建模】—— 层次分析法(AHP)
简化路径(力扣71)
STM32: LCD显示
随机推荐
Get a list of recent apps
CANopen usage method and main parameters of object dictionary
Iptables - L executes slowly
Query the logistics update quantity according to the express order number
The first leg of the national tour of shengteng AI developer creation and enjoyment day was successfully held in Xi'an
QT error: no matching member function for call to ‘connect‘
22年字节跳动飞书人力套件三面面经
数据库上机实验四(数据完整性与存储过程)
listener.log
Résolution: cnpm: impossible de charger le fichier... Cnpm. PS1 parce que l'exécution de scripts est désactivée sur ce système
Use bitnami / PostgreSQL repmgr image to quickly set up PostgreSQL ha
机器学习理论之(7):核函数 Kernels —— 一种帮助 SVM 实现非线性化决策边界的方式
Use stm32cube MX / stm32cube ide to generate FatFs code and operate SPI flash
从技术体系到商业洞察,中小研发团队架构实践之收尾篇
: app: transformclasseswithrobustfordevrease meituan hot repair compilation error record
After opening the original normal project, the dependency package displays red and does not exist.
WebView opens H5 video and displays gray background or black triangle button. Problem solved
os_ authent_ Prefix
Click the input box to pop up the keyboard layout and move up
Practice of Druid SQL and security in meituan review