ObjectInfo('Rectangle'), Rectangle( and Binary Data
David Thompson
dthmpsn1 at uiuc.edu
Sun Mar 9 20:49:14 PDT 2008
>SelectObjects ObjectInfo("Name") = "H1"
>Message ObjectInfo("Rectangle")
>
>In my effort to determine the current rectangle
>that 'H1' occupies, my ObjectInfo("Rectangle")
>only gives me gobble d gook cuz I am not
>understanding how to get from gobble d gook to
>meaningful data cuz my brain apparently isn't
>good at binary. What am I supposed to do with
>'Xå`é' that my Message returns? I read the
>suggested Rectangle( docs but they didn't help
>move me forward.
As you said in your other email, ChangeObjects is
more appropriate for your application than
MoveObjects, but to answer the question above,
you would use functions like
rtop(ObjectInfo("Rectangle")),
rleft(ObjectInfo("Rectangle")),
rbottom(ObjectInfo("Rectangle")),
rright(ObjectInfo("Rectangle")),
rhigh(ObjectInfo("Rectangle")), and
rwide(ObjectInfo("Rectangle")) to extract the
various dimensions from the rectangle. You could
also use text funnels and the binaryvalue(
function to extract it directly from the binary,
but that would be less efficient as well as being
harder to figure out the next time you had
occasion to read that code.
Dave
More information about the Qna
mailing list