How to change the color of ticks of a slider?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1285635/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1285640/image.png)
Risposte (1)
Praveen Reddy
il 14 Feb 2023
Modificato: Praveen Reddy
il 14 Feb 2023
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 Commenti
Praveen Reddy
il 16 Feb 2023
Modificato: Praveen Reddy
il 16 Feb 2023
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.
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!