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)
Show older comments
% 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})
1 Comment
Jan
on 10 Mar 2015
The question is not clear. Where do you want to move what? What does the posted code demonstrate?
Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!