I can make TPanel Border as Black by disabling "Ctl3D" and TPanel Border Style as "bsSingle" and TPanel BevelKind as "bkNone" and TPanel BevelInner "bvNone". But my need is to make TPanel Border as "Blue" or "Red". The other way is to "Caliing Form Paint Event" but I do not wish to use it. Please help me.
Asked
Active
Viewed 3,510 times
1 Answers
2
Your only way to go is:
- Study
TCustomPanel.Paint
code inVcl.ExtCtrls.pas
and - Override it in
TPanel
(class) to tailor it to your requirement;
You may use a interposer class in the form unit containing your panel.

David Heffernan
- 601,492
- 42
- 1,072
- 1,490

menjaraz
- 7,551
- 4
- 41
- 81
-
You could make a slightly larger panel behind it, colour that red & show/hide it – Mawg says reinstate Monica Feb 15 '17 at 20:43