필터 지우기
필터 지우기

how to set handles based on index in MATLAB UI control table

조회 수: 1 (최근 30일)
raghavendra kandukuri
raghavendra kandukuri 2019년 5월 18일
답변: Walter Roberson 2019년 5월 18일
Hi,
I have this UI table where values are displayed based on the dropdown and edit box entries(PFA Ui table.png), the issue here is when i change those values in drop downs or edit box, i would like to high-lite or add the background that section of value in the table(PFA desired ui table).
Thanks in Advance.

답변 (1개)

Walter Roberson
Walter Roberson 2019년 5월 18일
In order to highlight or add a background for an individual entry of a uitable, you have three choices:
  1. Go in at the java level and change the detailed contents of the java canvas that uitable is using
  2. Use character vectors for all columns that you might possibly want to highlight, and code them using HTML.
  3. draw additional graphics that are not part of the uitable that just happen to be exactly where the uitable entry would have the content. This would be tricky to arrange.
See https://www.mathworks.com/matlabcentral/answers/25038-how-to-change-each-cell-color-in-a-uitable for code for option #2, and for Yair's link to code for option #1.

카테고리

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