Textbox has no background color in Matlab 2014b (and higher)

2 vues (au cours des 30 derniers jours)
Ray
Ray le 6 Mai 2015
Commenté : Ray le 6 Mai 2015
Hi,
I just updated a plot to run on Matlabs new graphics engine but I can not manage to change background color of a textbox. It stays transparent all the time.
In MATLAB 2014a it worked finde to call e.g.
set (hVertStopMarkers(k),'BackgroundColor','green')
but in MATLAB 2015a the exat same command does not change anything. The background stays transparent. Im able to switch other things like fontsize using
set (hVertStartMarkers(k),'FontSize',10)
How can I access and change background color now?
Thanks!
  2 commentaires
Phillip
Phillip le 6 Mai 2015
Hi
What happens is you execute the following code?
figure;
h = uicontrol('Style','edit');
set(h,'BackgroundColor','green');
Does that work?
Ray
Ray le 6 Mai 2015
Yes. For a seperated plot like the example above this is working.
I would love to give a small example of my code but I cant. The problem is that the GUI I'm working with is pretty complex. One can add and remove different timeseries from different datasets, edit and cut, resample, compare again... ect. So it's hard to extract a small example.
Anyway. In MATLAB 2014a the background color of the textbox was as I wanted.. Any Ideas what I could try?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by