Home » Re: [frame_dev] Setting property values of conversion objects in

Re: [frame_dev] Setting property values of conversion objects in

Thanks Frank.

I appreciate the validation .. I guess I’m not going too crazy! :)

….scott

Frank Elmore wrote:
>
> Hello Scott,
>
> We ran into this issue when we were adding this functionality to
> FrameScript a few months ago. It appears that the SrwFmPropValT enum
> is meaningless except as a guide to the names of some of the property
> values. You need to use a string value here containing the value of
> the property, even if the value is really an integer or metric. The
> SrwFmPropValT seems to be a leftover from some earlier design. That’s
> our guess anyway.
>
> Frank Elmore
> Project leader for FrameScript
>
>
> —– Original Message —–
> *From:* Scott Prentice
> *To:* frame_dev@yahoogroups.com
> *Sent:* Wednesday, September 26, 2007 9:10 PM
> *Subject:* [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/

Post a Comment

You must be logged in to post a comment.