DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: qiaoguoqiang
今日帖子: 0
在线用户: 2
导航: 论坛 -> 移动应用开发 斑竹:flyers,iamdream  
作者:
男 mp654kk (mp654kk) ▲△△△△ -
普通会员
2023/10/7 17:10:19
标题:
请问FMX里ComboBox如何禁止popup 浏览:535
加入我的收藏
楼主: 请问FMX里ComboBox如何禁止popup
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2023/10/8 0:14:28
1楼: NOTE: 

You can prevent the default popoup menu by adding an empty (no menu items) TPopupMenu to the form and assigning it to the TEdit.PopupMenu.

Internally TStyledEdit checks (in TStyledEdit.ShowContextMenu() ) if the PopupMenu property is not nil, and if so, shows the user defined popup menu, otherwise it shows the default popup menu

https://docwiki.embarcadero.com/Libraries/Sydney/en/FMX.Controls.TControl.ShowContextMenu
------
try set to NIL popup from component, try use "hack" to access it if not possible directly....

type
xxx = class( zzzzz )

...
  xxx(   cccc ).PropertyXXXX = ???

---
you can try send PostMessage() when popup is opening...
PostMessage(ComboBox.Handle, CB_XXXXXXXXXX, Cardinal(-1), 0);
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 mp654kk (mp654kk) ▲△△△△ -
普通会员
2023/10/8 15:42:14
2楼: @emailx45 谢谢 这个思路不错
----------------------------------------------
-
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行40.03906毫秒 RSS