How to remove scroll bar from Listbox?

4 visualizzazioni (ultimi 30 giorni)
Akshay A
Akshay A il 18 Apr 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.

Risposte (0)

Categorie

Scopri di più su App Building in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by