How to remove scroll bar from Listbox?

2 visualizaciones (últimos 30 días)
Akshay A
Akshay A el 18 de Abr. de 2017
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.

Respuestas (0)

Categorías

Más información sobre App Building en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by