How to remove scroll bar from Listbox?

4 Ansichten (letzte 30 Tage)
Akshay A
Akshay A am 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.

Antworten (0)

Kategorien

Mehr zu App Building finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by