[frame_dev] Setting property values of conversion objects in an import client…

Hi…

I’m trying to use Sr_SetPropVal to set the anchored frame position of an
incoming image object. I started by trying ..

Sr_SetPropVal(srObj, SRW_PROP_POSITION, SRW_PVAL_INLINE);

but that caused compiler warnings and crashed Frame. The third argument
for Sr_SetPropVal is supposed to be a string and SRW_PVAL_INLINE is an
enumerated value. Page 141 of the Structure API Guide says ..

“Note that the property value is a string, in spite of the fact that
some of the properties are enumerated types or other numeric values.
These numeric values are handled as strings to unify the format of all
conversion object properties.”

What does that mean? How is an enumerated or numeric value “handled” as
a string?

I finally debugged this by printing the properties of an incoming image
and saw that the string value associated with the SRW_PROP_POSITION
property was “below” .. so I tried “inline” in place of SRW_PVAL_INLINE
and sure enough, all’s well.

Hopefully I’m just missing something obvious .. can anyone explain?

Thanks!

….scott

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/frame_dev/

Your email settings:
Individual Email | Traditional

To change settings online go to:
http://groups.yahoo.com/group/frame_dev/join
(Yahoo! ID required)

To change settings via email:
mailto:frame_dev-digest@yahoogroups.com
mailto:frame_dev-fullfeatured@yahoogroups.com

To unsubscribe from this group, send an email to:
frame_dev-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Leave a Reply

You must be logged in to post a comment.