Changing of Panel Border Color

27 views (last 30 days)
is it possible to change the border color of a panel?
I tryed
app.Panel.HighlightColor = 'g';
but I get the warning "Functionality not supported with figures created with the uifigure function. For more information, see Graphics Support in App Designer."
In the support text, I not found a solution. Is there a way to change the color?
Kind regards.

Accepted Answer

Geoff Hayes
Geoff Hayes on 1 Feb 2022
@Mathias Gießler - from Panel Properties, it says something similar: This property is valid only for panels in apps created using the figure function. So if you were to create the panel for a figure rather than a uifigure, then this would work. i.e.
fig = figure;
p = uipanel(fig);
p.Title = 'Display Options';
p.HighlightColor = 'r'
So no, I don't think that you can change the highlight color due to the way the app is created. You can change the BackgroundColor and ForegroundColor though.
  1 Comment
Martin Tarlie
Martin Tarlie on 8 Jun 2022
It would be really, really handy from a UI perspective to be able to change the HighlightColor when the parent is a uifigure. Any idea as to how technically challenging this is, and whether or not a change is in the works?

Sign in to comment.

More Answers (0)


Find more on Develop uifigure-Based Apps in Help Center and File Exchange





Community Treasure Hunt

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

Start Hunting!