The Road to Delphi

Delphi – Free Pascal – Oxygene

Vcl Styles Utils updated to fix QC #114040, #114032 (XE2 and XE3)


I just commit in the Vcl Styles Project two new fixes to patch the QC 114040 and QC 114032 (these issues exist in Delphi XE2 and XE3), both reports are related to the Highlight colors used to draw the TColorBox and TComboBoxEx components when the Vcl Styles are active.

QC 114032

As you can see in the below image the TColorBox component doesn’t use the proper highlight color, but the TColorListBox uses the highlight color of the current Vcl Style.


The TColorBox control doesn’t use a Style Hook, so the fix was done using a interposer class. To apply the path just add the Vcl.Styles.Fixes unit to your uses list after of the Vcl.ExtCtrls unit. And the result will be


QC 114040

The TComboBoxEx control have a similar issue.


In this case fixing the Style Hook related to the TComboBoxEx control was the key.


To apply this fix, just register the TComboBoxExStyleHookFix style hook located in the Vcl.Styles.Fixes unit.

Author: Rodrigo

Just another Delphi guy.

2 thoughts on “Vcl Styles Utils updated to fix QC #114040, #114032 (XE2 and XE3)

  1. Rodrigo,

    Thanks for the updates. They helped me a lot.

    There is one problem though, with TComboBox component’s BiDi setting for RightToLeft languages: the alignment is still left-to-right on the component’s text. The expanded list, however, is ok.

    Best of luck.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s