find all tables and uicontrols, and set to normalized dimensions

1 view (last 30 days)
Hi Group,
I have a figure with many uicontrols (text, buttons, drop menu, etc.) and tables set in a single figure. The problem I have is that the figure set does not resize properly depending on the screensize available for the user.
I think I need to firstly find all tables and uicontrols, and set them to normalized font size, position, and dimension, but I dont know exactly how
I have tried set(findall(hObject, '-property', 'Units'), 'Units', 'norm');
which placed correctly the tables, but did not change column dimensions. All other uicontrols stayed still
Maybe I have to set individually each handles? Anybody has fasttrack approach?
Thanks
bob le bricoleur

Answers (1)

Walter Roberson
Walter Roberson on 26 Dec 2012
The code you used is correct.
The column widths in uitable() are not controlled by Units: they are controlled by the display width of the data that is stored in the columns (and column headers).

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!