fixuilabels

バージョン 1.0.0.0 (2.86 KB) 作成者: Kesh Ikuma
Change 'text' uicontrol objects' vertical alignment
ダウンロード: 488
更新 2013/6/11

ライセンスの表示

'Text' style uicontrols align vertically to 'top', which is different from 'edit' style uicontrols, which aligns to 'middle' (as of R2013a). However, Matlab does not expose uicontrol's 'VerticalAlignment' setting for uicontrol object. Here is the fix.

FIXUILABELS traverses through the java objects contained within the current MATLAB figure and adjust the underlying java objects for all the 'text' style uicontrols so that their texts better line up with the adjacent 'edit' style uicontrols at the same height.

FIXUILABELS(FIG) fixes the uicontrols in the figure with handle FIG.

Caveat: After the fix, 'text' control is positioned 1 px below 'edit' control. I have not resolved this yet without changing the uicontrols' position. If anyone has a solution, please leave a comment!

引用

Kesh Ikuma (2024). fixuilabels (https://www.mathworks.com/matlabcentral/fileexchange/42188-fixuilabels), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2013a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersMigrate GUIDE Apps についてさらに検索
タグ タグを追加
謝辞

ヒントを得たファイル: findjobj - find java handles of Matlab graphic objects

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0