DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: hxh57738897
今日帖子: 28
在线用户: 18
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2021/10/19 9:28:34
标题:
TComboBoxde控件在Style=csSample的情况下,在第二个屏幕不显示选项的BUG 浏览:2143
加入我的收藏
楼主: 新建VCL工程,在窗口增加TComboBoxde控件,设置Style=csSample,设置高度为200的情况下,随便插入几个Item,运行后,移动到第二个屏幕上,点击控件,下面显示的所有选项消失,只保留最上面的一行。
Windows10,RAD 11。
不知道是不是BUG,还是只有我这样?
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2021/10/19 10:24:44
1楼: ComboBoxEx1.Style := csExSimple;


创建一个带有固定列表(列表框)下方的编辑框。 列表的长度由组合框的高度决定

Creates an edit box with a fixed list (list box) underneath. The length of the list is determined by the Height of the combo box
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2021/10/19 10:31:07
2楼: 难道是我的计算机的问题?
我用delphi新建,也是这个样子。
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2021/10/19 10:35:30
2楼: procedure TForm1.Button2Click(Sender: TObject);
var
  MyItem: TComboExItem;
begin
  ComboBoxEx1.Style := csExDropDown; //csExSimple = ListBox;
  //
  for var i := 0 to 6 do
  begin
    MyItem         := TComboExItem.Create(ComboBoxEx1.ItemsEx);
    MyItem.Caption := Format('Item%d', [i]);
  end;
  //
  ShowMessage(ComboBoxEx1.ItemsEx.Count.ToString);
end;
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2021/10/19 10:36:07
3楼: It's OK!!!
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2021/10/19 10:38:13
4楼: RAD 11 ALexandria

procedure TForm1.Button2Click(Sender: TObject);
var
  MyItem: TComboExItem;
begin
  ComboBoxEx1.Style := csExSimple; { csExDropDown; // }// csExSimple = ListBox;
  //
  for var i := 0 to 6 do
  begin
    MyItem         := TComboExItem.Create(ComboBoxEx1.ItemsEx);
    MyItem.Caption := Format('Item%d', [i]);
  end;
  //
  ComboBoxEx1.Height := 200; // <--- ok!
  //
  ShowMessage(ComboBoxEx1.ItemsEx.Count.ToString);
end;
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2021/10/19 10:40:57
5楼: 按此在新窗口浏览图片
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2021/10/19 10:43:31
6楼: TComboBoxEx也是这样,拖到第二个屏幕,鼠标移动到该控件,下拉选项都没有了。
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2021/10/19 10:46:08
7楼: 当您复制并粘贴到另一个表单时,ComboBoxEx HEIGHT = 默认大小 = 26
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2021/10/19 15:06:25
8楼: 可能我没说清楚,放好控件后,编译运行,再拖动窗口,到了第二个显示器,鼠标移动到控件,就没了下拉的选项。
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2021/10/19 20:55:46
9楼: Well, if you (before) talked about the second monitor, that would be clearer.
Problems with Delphi and different monitor resolutions (even more than one monitor) are well known for many reasons.
Perhaps you should investigate the settings in "Project -> Options" related to multi-monitor...

Note: I don't have 2 monitors to test.
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2021/10/23 21:13:45
10楼: 非常感谢!目前只有这一个控件有问题。
----------------------------------------------
-
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2021/10/23 21:15:11
11楼: 2个显示器的型号、分辨率都一样,字体没有放大缩小。
----------------------------------------------
-
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2021/10/26 9:42:56
12楼: 更新补丁1后,问题依然存在。
----------------------------------------------
-
作者:
男 wk_knife (wk_knife) ★☆☆☆☆ -
盒子活跃会员
2021/10/29 19:35:52
13楼: 用两个控件和数据绑定模拟吧。
----------------------------------------------
-
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2021/11/5 16:10:47
14楼: 那样太麻烦了,等官方修复吧。
----------------------------------------------
-
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2021/11/25 21:01:37
15楼: 12月补丁还是没有解决这个问题!!!
----------------------------------------------
-
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2022/5/19 15:54:32
16楼: 版本11的Update1(202203)该问题还没有解决。
请问谁英文好,把这个BUG反馈上去(不知道有没有人已经反馈了)。
----------------------------------------------
-
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2022/5/21 8:13:02
17楼: 试顶,这个问题好烦啊。
----------------------------------------------
-
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2022/5/26 8:48:06
18楼: 再次提问,顶。
----------------------------------------------
-
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2022/7/15 18:47:56
19楼: 11.1.5版本还真是一个奇特的版本,就是11.1,加上提示提速。还是没有解决这个问题,移动到第二个屏幕,就失效。
----------------------------------------------
-
作者:
男 dbyoung (dbyoung) ★☆☆☆☆ -
普通会员
2022/7/16 0:06:04
20楼: @hz_2009 (盒子)
  我看你如此在意这个问题,不知自己动手解决。

  VCL 不过是对 Windows 标准控件的封装。VCL、QT、MFC 大家是一样的。
  你可以先用 VS 或 QT 写个简单的 DEMO,测试一下,确定一下是系统问题,还是 VCL 问题。
  如果确定是 VCL 问题,那么你这一顿操作下来,肯定知道 VCL 的 bug 出在哪里了。
  (我猜测应该是某个消息没有设置导致的,或者是某个属性没有设置)

  有源码,一切都好说。VCL 源码宝库是值得你花时间去研究的。
  不要老是想着做伸手党,不利于你水平提高。

  你要是个大富翁,出个3K、5K美刀,坛里的大佬们分分钟就给你解决了。
----------------------------------------------
武汉天气不好
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2022/8/31 14:35:08
21楼: @dbyoung (dbyoung)

你说的对。
找机会安装VS试试看。
不过我估计大概率是VCL的BUG,因为10.4.2版本编译出来的就没问题。
至于VCL源代码,惭愧,水平有限,看不懂,pascal也不熟。
----------------------------------------------
-
作者:
男 hz_2009 (盒子) ★☆☆☆☆ -
普通会员
2022/8/31 14:43:59
22楼: 运行了几个以前编译的程序,在第二个屏幕运行,确实没问题。
可以确定,从11.0版本开始,都有这个问题。
----------------------------------------------
-
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行78.125毫秒 RSS