Forum > Win32/64

scrollbox corner color

(1/1)

scribly:
I'm wondering if there is a way to change the color of the corner(bottom right) scrollboxes like the ones used in Tmemo and TScrollbox

Handoko:
You can't, that is OS/theme/widgetset depended component.

But programmers like to make impossible things become possible. Hey, changing the corner color is easy at least on GTK2. See the image below, I changed it to red.

Just put a TShape on there and don't forget to set the Pen.Color := clNone or the same color as brush color.

scribly:
I guess that's an option.  But I'll use a borderless panel instead as TShape on windows is always a background object. It can't get in front of a scrollbox

Handoko:

--- Quote from: scribly on February 18, 2021, 05:45:04 pm ---... always a background object. It can't get in front of a scrollbox

--- End quote ---

Have you tried to set its z-order? On the form designer > right click on the panel (or shape or what you want to put it front) > Z-order > Move to Front. Alternatively, if you use a TShape you can set the color to clDefault or clForm.

Navigation

[0] Message Index

Go to full version