当前位置:网站首页>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
边栏推荐
- SQL中函数 decode()与 replace()的用法
- Use Chenxi bookkeeping book to analyze the balance of revenue and expenditure of each account in a certain period of time
- On iptables
- 数据库上机实验四(数据完整性与存储过程)
- K210串口通信
- Redis common interview questions
- The corresponding permissions required to automatically open the app in the setting interface through accessibility service
- 7、 DOM (Part 2) - chapter after class exercises and answers
- 12 examples to consolidate promise Foundation
- The type initializer for ‘Gdip‘ threw an exception
猜你喜欢
7、 DOM (Part 2) - chapter after class exercises and answers
One of the reasons why the WebView web page cannot be opened (and some WebView problem records encountered by myself)
ESP32 LVGL8. 1 - input devices (input devices 18)
Machine learning practice - naive Bayes
从技术体系到商业洞察,中小研发团队架构实践之收尾篇
mysql_linux版本的下載及安裝詳解
【数学建模】—— 层次分析法(AHP)
Machine learning theory (7): kernel function kernels -- a way to help SVM realize nonlinear decision boundary
ESP32 LVGL8. 1 - arc (arc 19)
机器学习理论之(8):模型集成 Ensemble Learning
随机推荐
WebView saves the last browsing location
Tencent map and high logo removal method
ESP32 LVGL8. 1 - roller rolling (roller 24)
Can filter
Keil RVMDK compiled data type
ctfshow-web361(SSTI)
MySQL statement
RPM包管理
Nacos作为服务配置中心实战
解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本
Introduction to ROS learning notes (I)
Treatment of incomplete display of listview height
Chondroitin sulfate in vitreous
QT error: no matching member function for call to ‘connect‘
Golang 语言实现TCP UDP通信
One of the reasons why the WebView web page cannot be opened (and some WebView problem records encountered by myself)
Machine learning practice - naive Bayes
迁移学习进阶
[today in history] April 23: the first video uploaded on YouTube; Netease cloud music officially launched; The inventor of digital audio player was born
Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system