uitable UserData property has inconsistent type

1 visualización (últimos 30 días)
Thomas
Thomas el 6 de Feb. de 2015
Comentada: Thomas el 9 de Feb. de 2015
I have an old GUI created with Guide that has a uitable. When I run it in 2014b, its property 'UserData' is initialized to
1x0 empty Graphics array
(I set a breakpoint in OpeningFcn to see this.)
If I create a uitable in a new gui under 2014b, 'UserData' is initialized to an empty double array, [].
I don't understand this, what could I be doing that results in such inconsistent behavior?
  2 comentarios
Geoff Hayes
Geoff Hayes el 7 de Feb. de 2015
Thomas - have you verified in the property inspector that the UserData of the uitable (from the old GUI) is not an empty vector? What does the inspector show you?
Thomas
Thomas el 9 de Feb. de 2015
Thank you for this insight, it was very helpful.
In the inspector, the value was completely empty, that was interpreted as a 1 x 0 empty Graphics array. If I enter the text '[]', it is interpreted as a 0 x 0 double array.
(In 2013b you could edit the value in the inspector, in 2014b a separate edit tool pops up.)

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 7 de Feb. de 2015
The graphics system has changed in 2014b. The GUIs created by GUIDE are not designed to be independent from the platform. So it is not "inconsistent", if an old GUI shows a different behavior compared with a new GUI.
  1 comentario
Thomas
Thomas el 9 de Feb. de 2015
So what am I supposed to do with the old gui, throw it away? There is no tool to update it.
The documentation is not clear, anyway, while the graphics system has changed, a GUIDE created .fig is just a file. And why should an old gui use the new graphics system, but a new gui still behaves like in the old graphics system?
I will probably have to convert it to a programmatic gui.

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by