[Xerte] Re: Can I use methods to modify an image inserted using rootIcon.loadIcon( )? Xerte Desktop 2.17
Paul Swanson
Paul.Swanson at harlandfs.com
Wed Apr 4 18:59:07 BST 2012
Thanks, Dave.
I was using inspect(rootIcon), but missed that entry. I wasn't looking
that far down the list. ;o)
However, I still haven't been successful in moving the icon. I've tried:
_level0.engine.IFC.logo._x=10;
_level0.engine.IFC.logo._y=10;
and
_level0.engine.IFC.logo.move(10,10);
... but no success. And no drop shadow with:
_level0.engine.IFC.logo.dropShadow(4, 135, 0x000000, 80);
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Wednesday, April 04, 2012 10:07 AM
To: Xerte list
Subject: [Xerte] Re: Can I use methods to modify an image inserted using
rootIcon.loadIcon( )? Xerte Desktop 2.17
If I use
rootIcon.loadIcon(FileLocation + 'media/luca.jpg');
then
inspect(rootIcon)
gives me
logo : _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 Swanson
Internal Business Systems Analyst
Internal Business Intelligence
Harland Financial Solutions
(800) 274-7280 Ext. 2462
Paul.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/774ab6e5/attachment-0001.html>
More information about the Xerte
mailing list