필터 지우기
필터 지우기

How to change the color of ticks of a slider?

조회 수: 8 (최근 30일)
Mahmud Hasan
Mahmud Hasan 2023년 2월 6일
편집: Praveen Reddy 2023년 2월 16일
I am trying to find the property of a slider that controls the color of major and minor ticks in Matlab 2021a. The slider has a FontColor Property that only changes the numbers of the slider, but not the ticks. For example, in the following picture I changed the FontColor property that only changed the colors of the numbers from black to white but not the ticks' color. How can I change this color of ticks?
  댓글 수: 2
Jonas
Jonas 2023년 2월 6일
afaik not possible directly, but have a look into this post and the toolbox mlapptools
Mahmud Hasan
Mahmud Hasan 2023년 2월 14일
Thanks Jonas, but this post doesn't seem to have an option for this basic slider. Thank you anyway.

댓글을 달려면 로그인하십시오.

답변 (1개)

Praveen Reddy
Praveen Reddy 2023년 2월 14일
편집: Praveen Reddy 2023년 2월 14일
Hi Mahmud Hasan,
I understand that you wanted to change the tick colors in slider GUI Component. With standard sliders, you cannot set the tick colors. The “FontColor” property can only be used to change the tick label colors.
Please refer to the MATLAB Central File Exchange to know more about the package:
Regards,
Praveen Reddy.
  댓글 수: 2
Mahmud Hasan
Mahmud Hasan 2023년 2월 14일
Thanks Parveen. Do you know if Matlab has any plan to support to change the color of ticks in standard slider? If they do then what would be the approximate time? Thanks.
Praveen Reddy
Praveen Reddy 2023년 2월 16일
편집: Praveen Reddy 2023년 2월 16일
Hi Mahamud,
I have informed the relevant team about this. This may be rolled out in future releases. Unfortunately, I cannot state any time frame.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by