Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread border color
Thu, Feb 16 2017 1:16 PMPermanent Link

erickengelke

Avatar


I've been trying to change the border colors of tdialogs.

I thought I was onto something with:

TInterfaceController(self).element.border.bottom.Color := clBlack;
etc.

but that doesn't seem to be right.  Has anyone got a working sample where you changed the border colors?
I've been through the source but don't even see where the default colors are set so I can class it.  Maybe I've been staring at the screen too long to see something obvious.

Thanks
Erick
http://www.erickengelke.com
Tue, Feb 21 2017 2:53 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Erick,

<< I've been trying to change the border colors of tdialogs.

I thought I was onto something with:

TInterfaceController(self).element.border.bottom.Color := clBlack;
etc.

but that doesn't seem to be right.  Has anyone got a working sample where you changed the border colors? >>

You need to change the control interface in order to do so.  The borders are actually the background of the base UI element so that they can contain scrollbars, etc.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Feb 21 2017 9:25 PMPermanent Link

erickengelke

Avatar

Tim Young [Elevate Software] wrote:
>but that doesn't seem to be right.  Has anyone got a working sample where you changed the border colors? >>

>You need to change the control interface in order to do so.  The borders are actually the background of the base UI >element so that they can contain scrollbars, etc.

Thanks, that works!

Erick
http://www.erickengelke.com
Image