Need to know how to move the entries of the Listbox up and down taking first and last entry into consideration ?

1 view (last 30 days)
% handles.fh=figure('numbertitle','off','name','Sort Channels','Position',... % [950 300 250 400]); % handles.lb=uicontrol('style','listbox','position',[30 70 200 300]); % set(handles.lb,'Tag','listbox') % set(handles.lb,'string',{'first' 'second' 'third' 'fourth' 'fifth'}); % handles.pb=uicontrol('style','pushbutton','position',[50 35 90 25],'string',... % 'Move up'); % set(handles.pb,'callback',{@pb_move_up,handles}) % handles.pb2=uicontrol('style','pushbutton','position',[50 5 90 25],'string',... % 'Move down'); % set(handles.pb2,'callback',{@pb_move_down,handles})

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!