next-item ( menu dir -- )


Vocabulary
ui.gadgets.menus.private

Inputs
menuan object
diran object


Outputs
None

Definition


:: next-item ( menu dir -- )
menu [ items>> ] [ control-value ] bi :> ( items curr ) curr
[
items length :> max curr items index :> indx indx dir +
max rem items nth
] [ items first ] if menu set-control-value ;