smart_scrollbars fixes Matlab's listbox/editbox scrollbars to only show as needed

バージョン 1.0.0.0 (6.9 KB) 作成者: Yair Altman
smart_scrollbars fixes Matlab's listbox/editbox scrollbars that display even when they are unneeded
ダウンロード: 265
更新 2016/4/20

ライセンスの表示

Syntax:
smart_scrollbars(hContainer)

Input parameters:
hContainer - optional handle to container (e.g., panel, tab or figure). Default = current figure (gcf)

Note: additional inputs may be specified and are ignored - this is useful for specifying smart_scrollbars as the target callback function (e.g., of the container's SizeChangedFcn). See example below.

Output parameters:
(none)

Examples:
smart_scrollbars; % fixes the scrollbars in all listboxes/editboxes in currrent figure
smart_scrollbars(hPanel); % fixes the scrollbars in all listboxes/editboxes in hPanel container
smart_scrollbars(hListbox); % fixes the scrollbars of the specified listbox
set(gcf,'SizeChangedFcn',@smart_scrollbars) % fix scrolling whenever the figure resizes

Technical explanation & details:
http://undocumentedmatlab.com/blog/smart-listbox-editbox-scrollbars

Warning:
This code heavily relies on undocumented and unsupported Matlab functionality. It works on Matlab 7+, but use at your own risk!

Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

引用

Yair Altman (2024). smart_scrollbars fixes Matlab's listbox/editbox scrollbars to only show as needed (https://www.mathworks.com/matlabcentral/fileexchange/56653-smart_scrollbars-fixes-matlab-s-listbox-editbox-scrollbars-to-only-show-as-needed), MATLAB Central File Exchange. に取得済み.

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

ヒントを得たファイル: 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