Filter löschen
Filter löschen

Why are UIPANELs renderered incorrectly, when using the OpenGL renderer?

1 Ansicht (letzte 30 Tage)
I've created a uipanel object in a figure:
u = uipanel(,'Units','pixels','Position',[20 20 200 200]);
If I switch the figure's Renderer to OpenGL
set(gcf,'Renderer','opengl')
Then the uipanel is rendered improperly. Specifically, the background of the uipanel is rendered in the wrong location, but the border is in the proper place.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Jun. 2009
This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
This is a bug in MATLAB 7.0 (R14), related to the calculation of the location of the background area in uipanels.
As a work around, use the zbuffer or painters renderers:
set(gcf,'Renderer','zbuffer')
set(gcf,'Renderer','painters')

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by