Page 1 of 1

TIntlDatePicker with Flat border

PostPosted: November 2nd, 2013, 3:56 pm
by Theprasit
Hi,

Is it possible to change a border of TIntlDatePicker to flat style with bordercolor support?

Just went thru your code by not found how to modify. Do you have any suggestion on this modification.

Regards,

TS

Re: TIntlDatePicker with Flat border

PostPosted: November 3rd, 2013, 2:40 pm
by Kambiz
Hi,

I'm afraid that I can't help you. The IntlDatePicker render mostly using its native underlying edit control.

A workaround is setting the BorderStyle property to bsNone then using a TShape component (or another appropriate control) to draw your own border around the control.

Re: TIntlDatePicker with Flat border

PostPosted: November 4th, 2013, 5:11 pm
by Theprasit
Thank you for your support. I tried to modify your code in "WMNCPaint" and manage to set flat border
I decide to change dropdown button too but no luck as cannot modify "Paint" method due to private var field.

Your component is much more useful for me, will search for any alternative.

Thank you and Regards,

TS