Wild screen display with rbbox in 2016a. Need help

I just found out that the behavior of rbbox() on my computer is quite wild. I tried the example code from help document, and if I click on the figure, the half of my screen gets distorted (see screenshot). After I press win+D and refresh the screen, everything goes fine.
So what's wrong with rbbox() and is there a remedy for that?
Thanks

 Accepted Answer

5 Comments

Thank you very much Walter for this. It seems that this is a severe issue for MATLAB and hopefully that they are working on that and will bring some udpate packages.
Hello Walter, I checked my program and I think the only workaround in my app is to hold the program flow as rbbox does and wait for an mouse button-up event. Do you know any way to implement this? Tkns, Song
Hello Walter, after trying a little, I think I get a workaround by myself.
I added a while endless loop, watching for the mousebuttonup event, and then let the program flow go further. At least this solve the issue with distorted screen and still give me the same functionality, even though now no box lines can be seen. :P
Sorry, I am not familiar with the details of this or how to work around the associated Windows bugs (other than to roll back the problem Windows updates.)
There is a solution for this problem. Please see the link in the next answer!

Sign in to comment.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!