uicontrol(tableHandle)
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Won-Mean Lee
am 18 Dez. 2015
Kommentiert: Won-Mean Lee
am 18 Dez. 2015
I am trying to set focus to a uitable using uicontrol(), but am getting this error:
Error using uicontrol
While setting the 'Parent' property of 'UIControl':
Table cannot be a parent.
I have previously used uicontrol() with other uicontrol objects, as per http://www.mathworks.com/help/matlab/ref/uicontrol.html.
I don't want the user to have to click in the table before having to scroll through it.
Is there a possible workaround? This is on MATLAB R2015b.
Thank you!
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 18 Dez. 2015
uitable() is not a uicontrol() so you cannot uicontrol() a uitable() . To set focus on the uitable() call uitable() on the handle.
The call you were making was being interpreted as asking uicontrol to create a new uicontrol whose parent was the uitable.
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!