Re: FTPicture Constuctor Issue

Bob Keeney wrote:
I have a bunch of old code that I upgraded to version 1.1 (note that I'm not using the beta so if it's fixed in the beta let me know) that uses the FTCustom object.

When I get to the FTPicture.Constructor(parentControl as FormattedText, obj as XmlElement, generateNewID as boolean = true) method the obj.GetAttribute(FTCxml.XML_SCALED_WIDTH) and obj.GetAttribute(FTCxml.XML_SCALED_HEIGHT) are both come back as zero thus causing errors when it tries to create pictures.

Is there something I need to account for when looking at the old FTCustom subclassed objects?

As a temporary measure, if the scaled height or width come back as zero I use a scale factor of 1.

If could you send me the XML data that is having the problems off
list and I will take a look at it.

FTC Website: 
http://www.truenorthsoftware.com/FormattedTextControl/FormattedTextControl.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in 
the subject field.



Other related posts: