Dear TMS Support,
Environment:
- C++Builder 12.3
- TMS VCL UI Pack: 13.5.5.0
I am using TAdvStringGrid with an external editor (a combo box control derived from TWinControl) by FormControlEditLink.
I noticed the following behavior:
- OwnerDraw = false
- DPI = 100%
- Skin/NativeStyle not used
- ItemHeight = 0 (auto calculation)
- RepositoryItem not used
- The issue occurs only when the combo box is used as a custom editor of TAdvStringGrid
- On the first use everything works fine, but from the second time with the same content,
the clickable selection area of the second-last item in the drop-down becomes extremely narrow. - I tried TComboBox and TAdvComboBox with fixed ItemHeight = 15 and it works fine. I updated my demo code.
My questions are:
- Is this a known issue in TAdvStringGrid or TFormControlEditLink when reusing external editors?
- If so, what is the root cause?
- If the cause is identified, could you please advise the recommended fix or workaround?
My main goal is to understand the cause and, if possible, apply the proper solution or workaround.
TAdvStringGrid.zip (42.9 KB)
