How to remove scroll bar from Listbox?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!