Invert Listbox Arrows

조회 수: 1 (최근 30일)
Jonathan
Jonathan 2011년 12월 1일
Hi,
I have the following string on a list box
1 2 3 4
When I click the arrow down it will go down the list in ascending order and the up arrow will go in descending order. What I want is that the down arrow would decrement the handle's value and the up arrow increment the handle's value. Is there a way to do this?
Thanks,
  댓글 수: 1
Jonathan
Jonathan 2011년 12월 1일
Maybe the question will be missinterpreted. What I really want is to scroll up with the down arrow button and scroll down with the up arrow button.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2011년 12월 1일
You could try using the KeyPressFcn callback: see http://www.mathworks.com/help/techdoc/ref/uicontrol_props.html#bqxoim8

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by