call CwMoveObjectToFront hObject hObject (handle) The handle referencing an object
/* Sort all objects by width (widest to the front) using a modified insertion sort. */ vh = CwGetCurrentView() num = CwGetObjectCount() do nsorted = 0 to num - 1 obj.1 = CwFindPreviousObject(0) do i = 2 to num ndx = i - 1 obj.i = CwFindPreviousObject(obj.ndx) end biggest = 0 do i=num - nsorted to 1 by -1 w1 = CwGetProperty(obj.i, "Position:width") if w1 > biggest then do biggest = w1 biggestobj = i end end call CwMoveObjectToFront obj.biggestobj call pause end
Functions by NAME |
Index |
Functions by PURPOSE |