[Xerte] Re: Can I use methods to modify an image inserted using rootIcon.loadIcon( )? Xerte Desktop 2.17

Dave Burnett d_b_burnett at hotmail.com
Wed Apr 4 18:07:08 BST 2012


If I use rootIcon.loadIcon(FileLocation + 'media/luca.jpg');

then inspect(rootIcon) 
gives melogo : _level0.engine.IFC.logo 

If I don't loadIcon, no logo property.So they are connected, just not sure where to go from there.

Date: Wed, 4 Apr 2012 09:41:22 -0700
From: Paul.Swanson at harlandfs.com
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Can I use methods to modify an image inserted using	rootIcon.loadIcon( )? Xerte Desktop 2.17



I’ve loaded a small graphic using rootIcon.loadIcon(), but it sits a bit too high and too far to the right. Can I use the move() method to change its position and add a drop shadow with dropShadow()? Is there an internal reference to this object? I’ve tried creating my own by both: customLogo = rootIcon.loadIcon(FileLocation + ‘media/myLogo.png’); and: rootIcon.loadIcon(FileLocation + ‘media/myLogo.png’).id = “customLogo”;  followed by: customLogo.move(10,10);customLogo.dropShadow(4, 135, 0x000000, 80); The logo appears, but its position is unchanged and no drop shadow has been applied. Do I have to modify the graphic in an image processing program? No big deal, but easier to just move it around in Xerte since I can see it in relation to the interface (using the default interface). Paul SwansonInternal Business Systems AnalystInternal Business IntelligenceHarland Financial Solutions(800) 274-7280 Ext. 2462Paul.Swanson at harlandfs.com 


This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120404/91553670/attachment.html>


More information about the Xerte mailing list