导航:
论坛 -> DELPHI技术
斑竹:liumazi,sephil
作者:
2022/9/4 8:06:22
标题:
RAD Studio 11就是与TComboBox干上了,旧BUG不修改,新BUG又来了
浏览:2986
加入我的收藏
楼主:
RAD Studio 11就是与TComboBox干上了,旧BUG不修改,新BUG又来了。 旧BUG:新建VCL工程,在窗口增加TComboBox控件,设置Style=csSample,设置高度为200(这个随便),随便插入几个Item,编译运行后,移动窗口到第二个屏幕上,点击控件或者鼠标移动到控件,Items中所有选项消失,整个控件不可用。Windows10,RAD 11、11.1、11.1.5、11.2均出现。 新BUG:11.2版本,新建VCL工程,在窗口增加1个TComboBox控件,再增加1个TComboBox控件,设置Style=csSample,设置高度为200(这个随便),2个控件都随便插入几个Item,保存工程,退出工程。然后重新进入工程,点击控件,Items中所有选项消失(大概率事件,多重复几次必然出现,点击Items发现里面也是空的,这个时候编译运行显示还有选项),而且消失后,工程退出不显示保存,重新进入,选项还存在。VMWare虚拟机安装Windows11,RAD 11.2出现。
----------------------------------------------
-
作者:
2022/9/4 8:52:03
1楼:
去提交质量反馈啊。在这说谁给你解决
----------------------------------------------
-
作者:
2022/9/4 9:57:22
2楼:
- Win10 21H2 - RAD 11.2 Alexadria - VCL forms 32bits - 2 TComboBox as above (1 csSimple, 1 regular) - saved and exit... -- open again, and clicked and NOTHING HAPPENS = ALL IT'S OK for ME!
此帖子包含附件: 大小: 5.4K
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
2022/9/4 10:26:39
3楼:
多试几次。也有可能我装在虚拟机? 一楼:英语不好。
----------------------------------------------
-
作者:
2022/9/4 10:41:20
4楼:
你是如何在窗口放置两个TComboBox控件的?
----------------------------------------------
-
作者:
2022/9/4 10:44:29
5楼:
就跟二楼那样放,Items项目填了20个,出现下拉框。当然我又试了试只添加几个,也是一样的效果,消失。
----------------------------------------------
-
作者:
2022/9/4 12:48:32
6楼:
https://www.microsoft.com/zh-cn/software-download/windows10ISO/ Windows 10 (multi-edition ISO) 官方 win10 多版本 用对key就行 我自己用工作站版
----------------------------------------------
[alias] co = clone --recurse-submodules up = submodule update --init --recursiveupd = pullinfo = statusrest = reset --hard懒鬼提速https://www.cctry.com/ >http://qalculate.github.io/downloads.htmlhttps://www.cctry.com/
作者:
2022/9/4 13:23:12
7楼:
非虚拟机环境11.1试了下,没发生这个问题。 你这是不是什么三方插件导致的?
----------------------------------------------
z@S7
作者:
2022/9/4 14:44:37
8楼:
试了试Win11+11.2版本,没发现LZ说的问题。 反复开了几次工程,也关掉程序重开再打开工程。 LZ可以看看窗体文件, 那些Item到底丢了没。 类似: object ComboBox1: TComboBox Left = 88 Top = 120 Width = 145 Height = 23 Style = csSimple TabOrder = 0 Text = 'ComboBox1' Items.Strings = ( 'ItemA' 'ItemB' 'ItemC' 'ItemD' 'ItemE' 'ItemA1' 'ItemB2' 'ItemC3' 'ItemD4' 'ItemE5') end object ComboBox2: TComboBox Left = 312 Top = 120 Width = 145 Height = 23 TabOrder = 1 Text = 'ComboBox2' Items.Strings = ( 'ItemH' 'ItemI' 'ItemJ' 'ItemK' 'ItemL' 'ItemH1' 'ItemI2' 'ItemJ3' 'ItemK4' 'ItemL5') end
----------------------------------------------
Bye bye DDRFAN...
作者:
2022/9/4 14:46:59
9楼:
是单独防治的两个控件,还是你使用复制第一个,然后粘贴生成的第二个?
----------------------------------------------
-
作者:
2022/9/4 15:00:25
8楼:
7楼:11.2版本,虚拟机中啥都没装,虚拟机原先测试过11.1.5,卸载了后,删除了所有含有emba的目录,注册表没有清理过。第三方控件没有安装过。
----------------------------------------------
-
作者:
2022/9/4 15:06:18
10楼:
9楼:第二个从第一个复制的。
----------------------------------------------
-
作者:
2022/9/4 15:09:01
11楼:
//---------- #ifndef Unit2H #define Unit2H //---------- #include <System.Classes.hpp> #include <Vcl.Controls.hpp> #include <Vcl.StdCtrls.hpp> #include <Vcl.Forms.hpp> #include <Vcl.Buttons.hpp> //---------- class TForm2 : public TForm { __published: // IDE-managed Components TComboBox *ComboBox2; TComboBox *ComboBox1; TBitBtn *BitBtn1; TComboBox *ComboBox3; void __fastcall BitBtn1Click(TObject *Sender); private: // User declarations public: // User declarations __fastcall TForm2(TComponent* Owner); }; //---------- extern PACKAGE TForm2 *Form2; //---------- #endif //---------- #include <vcl.h> #pragma hdrstop #include "Unit2.h" //---------- #pragma package(smart_init) #pragma resource "*.dfm" TForm2* Form2; //---------- __fastcall TForm2::TForm2(TComponent* Owner) : TForm(Owner) { ; } //---------- void __fastcall TForm2::BitBtn1Click(TObject* Sender) { ShowMessage(IntToStr(ComboBox1->Items->Count) + "," + IntToStr(ComboBox2->Items->Count)); } //---------- object Form2: TForm2 Left = 0 Top = 0 Caption = 'Form2' ClientHeight = 683 ClientWidth = 865 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -12 Font.Name = 'Segoe UI' Font.Style = [] TextHeight = 15 object ComboBox2: TComboBox Left = 280 Top = 64 Width = 145 Height = 265 Style = csSimple DragMode = dmAutomatic TabOrder = 0 Text = 'ComboBox1' Items.Strings = ( '1' '2' '3' '4' '5' '6' '7' '8' '9' '10' '11' '12' '13' '14' '15' '16' '17') end object ComboBox1: TComboBox Left = 104 Top = 64 Width = 145 Height = 23 DropDownCount = 15 TabOrder = 1 Text = 'ComboBox1' Items.Strings = ( '1' '2' '3' '4' '5' '6' '7' '8' '9' '10' '11' '12' '13' '14' '15' '16' '17' '18' '19' '20') end object BitBtn1: TBitBtn Left = 240 Top = 408 Width = 75 Height = 25 Caption = 'BitBtn1' TabOrder = 2 OnClick = BitBtn1Click end object ComboBox3: TComboBox Left = 504 Top = 72 Width = 145 Height = 241 Style = csSimple TabOrder = 3 Text = 'ComboBox3' Items.Strings = ( 'ws' 'df' 'gh' 'jk' 'kmn') end end
----------------------------------------------
-
作者:
2022/9/4 15:11:17
12楼:
退出工程,再次进入,点击ComboBox3,选项都没了。 object ComboBox3: TComboBox Left = 504 Top = 64 Width = 145 Height = 241 Style = csSimple TabOrder = 3 Text = 'ComboBox3' end
----------------------------------------------
-
作者:
2022/9/4 15:12:09
13楼:
这个时候不保存,退出工程,选项又回来了。 object ComboBox3: TComboBox Left = 504 Top = 64 Width = 145 Height = 241 Style = csSimple TabOrder = 3 Text = 'ComboBox3' Items.Strings = ( 'ws' 'df' 'gh' 'jk' 'kmn') end
----------------------------------------------
-
作者:
2022/9/4 15:12:59
14楼:
1楼说的反馈,我学习了一下,去反馈了,不过用的是中文。
----------------------------------------------
-
作者:
2022/9/4 15:48:34
15楼:
11.2还没正式发布吧,还用中文报告,这。。。。。。,能低调点不。哎。。。
----------------------------------------------
-
作者:
2022/9/4 16:57:09
16楼:
报告的挺妙 鸟笼山又要被剿匪了……
----------------------------------------------
z@S7
作者:
xjia (xjia)
★☆☆☆☆
-
盒子活跃会员
2022/9/4 16:57:57
16楼:
楼主说的是BCB,不是DELPHI
----------------------------------------------
-
作者:
2022/9/4 18:41:03
17楼:
to hz_2009 反馈的链接给一下,我帮你翻译,然后在原帖后面跟帖。
----------------------------------------------
只有偏执狂才能生存!
作者:
2022/9/4 19:08:05
18楼:
15楼:测试版应该没问题吧。 17楼:谢谢nevergrief (孤独骑士) https://quality.embarcadero.com/browse/RSP-39000
----------------------------------------------
-
作者:
2022/9/4 19:47:33
19楼:
16楼:delphi,我这里一样。
----------------------------------------------
-
作者:
2022/9/4 20:09:41
20楼:
呃, 1)难道只有LZ一个人遇到这个问题? 2)用于商业开发得,还是得买正版啊。
----------------------------------------------
Bye bye DDRFAN...
作者:
2022/9/4 22:50:14
21楼:
在单荧幕上没问题,没有双荧幕的环境可以测试,所以不清楚。
----------------------------------------------
-
作者:
2022/9/4 22:52:57
22楼:
这是IDE的问题吗?
----------------------------------------------
-
作者:
2022/9/5 8:08:21
23楼:
有可能是我的软件环境的缘故? 20楼:正版也是出这个问题,从11.0就出现了。
----------------------------------------------
-
作者:
2022/9/5 23:15:51
24楼:
我贴了翻译以后,官方回复,让我新开一个贴子。 但是我不明白的,我是应该只为新问题开一个贴子,还是两个问题各新开一个贴子? 官方不回复楼主、只回复我,看来官方连google翻译都懒得用啊。
----------------------------------------------
只有偏执狂才能生存!
作者:
2022/9/6 7:28:54
25楼:
感觉在第二个屏时才显示正确,但高度无效
----------------------------------------------
-delphi新资讯站 http://www.delphigear.cn
作者:
2022/9/7 19:26:30
26楼:
就是这个 bug,所以我从不用 CSsimple,而且感觉没啥必要,用个listbox在它下面也差不多 @emailx45 drag and move the app From Main-monitor to secondary-monitor, you will find this bug
----------------------------------------------
delphi 是兴趣,和工作无关,即使它倒闭。又不靠它 delphi 吃饭,怕甚?
作者:
dalas (dalas)
★☆☆☆☆
-
普通会员
2022/9/7 19:29:44
26楼:
第一个问题在公司电脑有复现,在家电脑没有复现。 第二个问题,都没有复现。 两台电脑硬件品牌不同公司的是HP,家里的是联想, 操作系统和RAD都相同,但其他软件不同, windows 10 ltsc x64,rad 11.2 iny 绿色版。
此帖子包含附件: 大小: 2.35M
----------------------------------------------
-
作者:
2022/9/9 10:46:16
27楼:
谢谢nevergrief (孤独骑士)的翻译。 因为你懂英文,所以问你啊。你可以新开一个问题。 非常感谢!
----------------------------------------------
-
作者:
2022/9/9 10:58:19
28楼:
26楼:@ dalas (dalas) 我的计算机是DELL工作站,2个屏幕,Windows10工作站版。 我把原先RAD版本卸载,重新在本机安装11.2测试,还是出现这个问题。新建工程,增加2个TComboBox,1个设置为csSimple,2个控件都添加Items,保存工程,退出工程,再次进入工程,点击设置为csSimple的控件,第一次就成功消失了,所有Items都没了。 退出工程,关闭IDE,重新打开IDE,打开工程,点击设置为csSimple的控件,第一次就成功消失了,所有Items都没了。 所以我这里每次重新都成功,当然多试几次有可能有不成功的。 不过我的计算机确实有点问题,经常文件管理器和Edge最大化后,上面部分(包括标题栏、菜单、快捷方式)都是空白,点击后没反应,是下面的窗口有反应(恢复正常页面大小,移动到屏幕上方也没问题,只有最大化才出问题),原先每次都是重启,昨天发现:打开设置|系统|屏幕,打开3D显示模式即可。
----------------------------------------------
-
作者:
vga (vga)
★☆☆☆☆
-
盒子活跃会员
2022/9/14 5:47:31
29楼:
设置工具 中 建模(modeling)节点的 界面 一直未 按皮肤 渲染,其它节点已经都完成了!
此帖子包含附件: 大小: 37.4K
----------------------------------------------
-
作者:
vga (vga)
★☆☆☆☆
-
盒子活跃会员
2022/9/14 5:49:17
30楼:
这是渲染过的
此帖子包含附件: 大小: 49.2K
----------------------------------------------
-
作者:
vga (vga)
★☆☆☆☆
-
盒子活跃会员
2022/9/14 5:53:37
31楼:
工具栏 中添加 panel 问题仍未处理!
此帖子包含附件: 大小: 4.7K
----------------------------------------------
-
作者:
2022/9/17 11:04:35
32楼:
请问Delph11.1 有这个问题吗? 我一直用 Delphi11.1
----------------------------------------------
kittyapp
作者:
2022/9/18 5:04:11
33楼:
to @vga When needs so much "graphical compositions", maybe you need to use "DoubleBuffers" properties to better redraw the canvas of all children!!! For that, these property exists!!! :> For Tools->MODELING menu -->> the SKINS was not applyed in RAD 11.2 == BLANK backgroung .... Embarcadero-BUG >:( ---------- I believe Embarcadero missed this menu and forgot to make the necessary changes! 我相信 Embarcadero 错过了这个菜单并忘记进行必要的更改! ----------
此帖子包含附件: 大小: 88.5K
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
2022/9/18 5:13:38
34楼:
@hz_2009 and @Dalas about "your problem with lost data on screen in ListBox", try use "DOUBLEBUFFERED" property for test in your screen! ---- DOUBLEBUFFERED property in visual TControls: Determines whether the control's image is rendered directly to the window or painted to an in-memory bitmap first. When DoubleBuffered is false, the windowed control paints itself directly to the window. When DoubleBuffered is true, the windowed control paints itself to an in-memory bitmap that is then used to paint the window. Double buffering reduces the amount of flicker when the control repaints, but is more memory intensive. When a windowed control is a dock site and has an associated dock manager, it must be double-buffered. Note: Some controls, such as TRichEdit, can't paint themselves into a bitmap. For such controls, DoubleBuffered must be set to false.
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
vga (vga)
★☆☆☆☆
-
盒子活跃会员
2022/9/18 14:36:51
35楼:
thank you.
----------------------------------------------
-