如何改变的TrackBar蜱颜色在的WinForms? [英] How to change the TrackBar Tick Color in Winforms?

查看:109
本文介绍了如何改变的TrackBar蜱颜色在的WinForms?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的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.

这篇关于如何改变的TrackBar蜱颜色在的WinForms?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆