[Xerte] drawing stuff with code
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Mon Feb 15 14:46:11 GMT 2010
icon.previousSibling.clip()
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Monday, February 15, 2010 2:45 PM
To: Xerte list
Subject: RE: [Xerte] drawing stuff with code
OK, no way to genericize this then.
I have to add a text icon, give it a target ID, then add the function
call in a script underneath.
No way to say "the icon above me" without explicitly having assigned an
ID?
----------------------------------------
> Subject: RE: [Xerte] drawing stuff with code
> Date: Mon, 15 Feb 2010 14:24:18 +0000
> From: Julian.Tenney at nottingham.ac.uk
> To: xerte at lists.nottingham.ac.uk
>
> They should just do that:
>
> Add a text icon to draw into, id=myIcon
>
> SCR:
> myDraw = myIcon.addDraw(0,0,400,400);//adds the drawing area
> myDraw.freehand();
>
> //now you can draw in that region with the mouse...?
>
>
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave
Burnett
> Sent: Monday, February 15, 2010 2:22 PM
> To: Xerte list
> Subject: [Xerte] drawing stuff with code
>
>
>
> The drawing editor and I don't get along, so I'm trying to set up a
draw
> function I can call with parameters.
>
> What is the best way to handle creating code-drawn objects so they
erase
> on page changes and I can target them for erase()?
>
> Cheers,
>
> Dave
>
> _________________________________________________________________
> Hotmail: Trusted email with Microsoft's powerful SPAM protection.
>
http://clk.atdmt.com/GBL/go/201469226/direct/01/________________________
> _______________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/201469227/direct/01/________________________
_______________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
More information about the Xerte
mailing list