Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 27 Giu 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')

Più risposte (0)

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by