how I can make both border and data of uitable to be the same size

8 Ansichten (letzte 30 Tage)
Hi
making uitable to be normalized to its parent panel
when panel change size the uitbale border increase and the row/colons inside table keep their size
how I can make both border and data of uitable to be the same size when uitable is normlized

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 27 Dez. 2012
Bearbeitet: Azzi Abdelmalek am 27 Dez. 2012
t = uitable;
set(t,'Data',ones(3))
set(t,'ColumnWidth',{100})
  1 Kommentar
Walter Roberson
Walter Roberson am 27 Dez. 2012
Note: ColumnWidth is in pixels, and there is no way to tell MATLAB to use normalized units for ColumnWidth. To use this approach, you will need to calculate the widths in pixels that you want to use.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by