Change background color of uitable row name fields

조회 수: 36 (최근 30일)
Tristan Thompson
Tristan Thompson 2021년 2월 23일
댓글: Mark Magdaleno 2023년 10월 15일
I want to be able to change the background color of the row name field in a uitable in R2019b.
I currently have a check in place that appends 'Insufficient Data!' into the rowname property of my table if there is insufficient data for that row of the table.
To improve on space efficiency, I want to highlight the row name field to show this.
I am currently formatting the background color of the table cells using uistyle, is it possible to use uistyle for changing the background color of the row name fields?
EDIT: For clarity, I am trying to change the background color of the row names (point 1, point 2 etc... instead of appending 'Insufficient Data!' into the row name

답변 (1개)

Adam Danz
Adam Danz 2021년 2월 23일
편집: Adam Danz 2021년 2월 23일
In Matlab r2019b and later, use addstyle() to control color of cells in a uitable. The uitable must be within a uifigure (such as in AppDesigner).
  댓글 수: 5
Marten
Marten 2023년 8월 22일
이동: Adam Danz 2023년 8월 24일
let me know if there are any updates on this topic. as for 2023a i still didnt find a solution :)
Mark Magdaleno
Mark Magdaleno 2023년 10월 15일
2023B doesnt seem to support this as well. Still hoping. Row Cells highlighed with the rowname not highlighted looks funky.

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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by