movesprite

Moves the sprite action or group, name, in the Activate user interface. movesprite is only available in the Activate GUI.

Syntax

movesprite(name, x, y)

Inputs

name
The name of the sprite action or group.
Type: string
x
The x position.
Type: integer
y
The y position.
Type: integer

Examples

Move the sprite action to the given x and y location:
addribbonpagegroup('Test2','Lines');

addribbonpagegroup('Test2','Comments');
addspriteactiongroup('Test2', 'Comments', 'TestSG4', 'Uncomment',0,80);
movesprite('TestSG4', 0, -5);
addspriteaction('TestSG4', 'TestActionLabel4','TestAction4','HandleUncomment', 'Uncomment-80.png','','',true);

addspriteactiongroup('Test2', 'Comments', 'TestSG5', 'Comment',0,80);
movesprite('TestSG5', -10, -5);
addspriteaction('TestSG5', 'TestActionLabel5','TestAction5','HandleComment', 'Comment-80.png','','',true);
		
function HandleUncomment()
	disp('Uncomment is handled');
end

function HandleComment()
	disp('Comment is handled');
end