- 最后登录
- 2024-6-3
- 注册时间
- 2009-10-16
- 阅读权限
- 100
- 积分
- 18803
- 纳金币
- 17488
- 精华
- 1
|
Arrow Nudge (Interactive Behavior)
Summary
Use the arrow keys to nudge an object around in its XY plane.
Category
Latest Behaviors
Author
Gavin Kistner
Difficulty
(Reference)
Time to Complete
5 Minutes
Downloads
Click Here
to download the associated files.
(This document covers version 1.0.4 of the 'Arrow Nudge' behavior, current as of 2005-Apr-08)
Description
The
Nudge By
property controls how far the object moves when an arrow key is pressed. (The object moves by 10 times this value when the shift key is down and an arrow key is pressed.)
If
Use Selected Color?
is checked, the object will change to the Selected Color when focused (by clicking on it).
If
Start With Focus?
is checked, the object will initially get the focus as though it had been clicked on. (If more than one behavior specifies this option, the last one to run will get focus.)
This behavior uses the
Focusable
behavior to track which text object is selected; see that behavior for events which may fire on the parent object.
Basic Properties
Nudge By
The amount to move the position by when the arrow keys are pressed.
Use Selected Color?
Change the object to another color when focused?
Selected Color
Color to use for the object when selected.
Start With Focus?
Should the object start out with focus?
Actions
Focus Parent
Move focus to the parent element.
Blur Parent
Remove focus from the parent element.
Events
Nudged
Fires when the object is moved by the arrow keys.
Demonstration
View Demonstration Project
Download Project File
|
|