如何改变的TrackBar蜱颜色在的WinForms?颜色、TrackBar、WinForms

2023-09-04 23:19:35 作者:待你如初恋

我使用的TrackBar WinForms应用程序。背景色属性可以改变,但这样做使得每一个滴答几乎看不见的颜色。我没有看到一个明确的属性修改嘀的颜色。有我丢失的东西或方法来改变刻度的颜色?

I have a winforms app using a trackbar. The BackColor property is available for change, but doing so makes the color of each "tick" almost invisible. I don't see an explicit property to modify the color of the "tick". Is there something I am missing or a way to change the color of the tick?

推荐答案

的TrackBar是围绕本机Windows控件的包装。最喜欢的本地控制,它绘制使用系统的颜色本身由用户选择。你不能自行更改。除了让你自己控制,没有什么可以做,但挑选一个对比鲜明的背景色罢了。其通常应该是相同的颜色作为所述容器。其通常是一个系统的颜色以及(控制)。

TrackBar is a wrapper around a native Windows control. Like most native controls, it draws itself using the system colors as selected by the user. You can't change it yourself. Beyond making your own control, there's nothing you can do but pick a contrasting background color. Which typically ought to be the same color as the container. Which typically is a system color as well ("Control").

有一个一致的不同的应用程序之间的外观和感觉被认为是一种资产。它可以说就是用户喜欢选择一个自定义主题,并期望计划相应地改变。

A consistent look-and-feel between different applications was considered an asset. It arguably is, users like to pick a custom theme and expect programs to change accordingly.

 
精彩推荐
图片推荐