A DropDownEdit used as an TcxBarEditItem causes an EInvalidIndex when a DPI-Change occurs.
- Please run the attached test-case
- Drop down the shell combo box bar item
- While the drop down bar item is still focused, cause a DPI-Change (in my case, I pressed Win+Left to move the form to a monitor with different DPI settings)
- EInvalidImageIndex occurs with the following call stack:
Delphi:76d79ab2 KERNELBASE.RaiseException + 0x62
System.Classes.TList.Get(5)
:00471d54 TList.Get + $1C
System.Classes.TList.Get(???)
Vcl.Controls.TWinControl.GetControl(???)
Vcl.Controls.TWinControl.ScaleControlsForDpi(168)
dxForms.TdxForm.ScaleControlsForDpi(168)
Vcl.Forms.TCustomForm.ScaleForPPIRect(168,???)
Vcl.Forms.TCustomForm.WMDpiChanged((736, (), 168, 168, (), $19FE34, 0))
dxForms.TdxForm.WMDPIChanged((736, 11010216, 1703476, 0, 168, 168, (), 65076, 25, (), 0, 0, ()))
Hello Sebastian,
Thank you for sharing your sample project. It may take us some time to examine this scenario.