当前位置:网站首页>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
边栏推荐
- Go language GUI framework Fyne Chinese garbled or not displayed
- ctfshow-web362(SSTI)
- ESP32 LVGL8. 1 - label (style 14)
- WebView saves the last browsing location
- Recyclerview control list item layout match_ Fundamental principle of parent attribute invalidation
- ESP32 LVGL8. 1 - anim animation (anim 16)
- Coolweather is revised and connected to the wind weather interface to realize the broken line diagram of temperature
- 解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本
- 回路-通路
- 使用晨曦记账本,分析某个时间段每个账户收支结余
猜你喜欢

MVVM model

PyGame tank battle

Esp32 drive encoder -- siq-02fvs3 (vscade + IDF)

Excel intercept text

mysql_linux版本的下载及安装详解

Esp32 (UART ecoh) - serial port echo worm learning (2)

The first leg of the national tour of shengteng AI developer creation and enjoyment day was successfully held in Xi'an

Teach you to quickly rename folder names in a few simple steps

使用 bitnami/postgresql-repmgr 镜像快速设置 PostgreSQL HA

ctfshow-web362(SSTI)
随机推荐
22年字节跳动飞书人力套件三面面经
On iptables
玻璃体中的硫酸软骨素
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
Deeply understand what new and make in golang are and what are the differences?
机器学习理论之(8):模型集成 Ensemble Learning
Practice of Druid SQL and security in meituan review
Introduction to ROS learning notes (II)
ESP32 LVGL8. 1 - event (event 17)
c#:泛型反射
Introduction to micro build low code zero Foundation (lesson 3)
ESP32 LVGL8. 1 - msgbox message box (msgbox 28)
ESP32 LVGL8. 1 - anim animation (anim 16)
listener. log
#yyds干货盘点#stringprep --- 因特网字符串预备
ESP32 LVGL8. 1 - BTN button (BTN 15)
Druid SQL和Security在美团点评的实践
ctfshow-web361(SSTI)
Can filter