Man Scilab

dragrect
Scilab Function

dragrect - Drag rectangle(s) with mouse

Calling Sequence

[final_rect,btn]=dragrect(initial_rect)

Parameters

Description

dragrect drags one or more rectangles anywhere on the screen. The 4xn matrix rect defines the rectangles. Each column of initial_rect must contain the initial rectangle position as [left;top;width;height] values. When a button is clicked dragrect returns the final rectangles definition in final_Rect .

Examples


xsetech(frect=[0,0,100,100])
r=dragrect([10;10;30;10])
xrect(r)
 
  

See Also

xrect ,   xrects ,   xclick ,   xgetmouse ,  

Back