How to remove scroll bar from Listbox?

조회 수: 4 (최근 30일)
Akshay A
Akshay A 2017년 4월 18일
Hi,
I am implementing a gui which has a list box. I am scrolling this list using two push buttons (up and down) and selecting the list item using another push button(select).
Initially, I am disabling scrollbar in opening function using these commands:
% removing vertical scrollbar from listbox(setup_window)
hsetup_window = findobj('-regexp','Tag','setup_window');
jsetup_window = findjobj(hsetup_window);
% VerticalScrollBarPolicy accepts the self-explanatory values of:
% VERTICAL_SCROLLBAR_ALWAYS (=22)
% VERTICAL_SCROLLBAR_NEVER (=21)
% and VERTICAL_SCROLLBAR_AS_NEEDED (=20)
set(jsetup_window,'VerticalScrollBarPolicy',21)
but when I reset the strings in the list box, scrollbar is appearing again.
If I disable it after reset then their is flickering.
I want to remove scrollbar permanently.
Thank you in advance.

답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by