필터 지우기
필터 지우기

Random GUI CDATA result with buttons that is annoying? Any Ideas?

조회 수: 2 (최근 30일)
So I have a GUI and I added a button to open an axes in a new figure, I have the button CDATA set to a 10x10 pixel image with no text, it mimics the tiny arrows in the matlab interface for opening tabs in new windows. Anyways, when I click the button and it executes the function, afterwards, there are random black pixels scattered throughout the image, like 5 or 6, so I mean its not a huge deal, but when you only have 100 pixels, its enough to make it look messy and annoying. When I click any other button in my GUI, it fixes itself.
I tried just resetting the CDATA at the end of the function it called, but that did not work.
Any idea why its doing this or how I could fix it?
Thanks, Shaun

채택된 답변

Walter Roberson
Walter Roberson 2012년 6월 20일
Sometimes there are little glitches in which the easiest way to proceed is a bit ugly:
set() the button Enable property to 'off', call drawnow() to update the screen, set() the Enable property to 'on', call drawnow() again.
  댓글 수: 2
Shaun VanWeelden
Shaun VanWeelden 2012년 6월 20일
Thanks! Definitely would not figured that one out..
Walter Roberson
Walter Roberson 2012년 6월 20일
Did it work in your situation?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by