call CwMoveObjectToBack hObject
hObject (handle) The handle referencing an object
/* Sort all objects by width (widest to the back) 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
smallest=1000000000000000000000000
do i=nsorted + 1 to num
w1 = CwGetProperty(obj.i, "Position:width")
if w1 < smallest then do
smallest = w1
smallestobj = i
end
end
call CwMoveObjectToBack obj.smallestobj
call CwWaitOnRender vh
end
![]() Functions by NAME |
![]() Index |
![]() Functions by PURPOSE |