Flat Combo

Question:
Do you know how to create a flat, non-3D combo box with only a thin black border? Setting CTL3D to False doesn’t seem to have an effect on the combo.

Answer:
This would be difficult because if you follow the inheritance branch up fromTDBCombo, you see that it is derived from TWinControl. The only way I cansee to do this is to override TWinControl’s PaintWindow method and paint thecanvas yourself.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: