Article View: adobe.scripting.indesign
Article #16112Re: Confusion about pages and spreads
From: Eelko_Heuvelmans
Date: Thu, 16 Oct 2003 10:29
Date: Thu, 16 Oct 2003 10:29
28 lines
1871 bytes
1871 bytes
oke then.. that helped.
I did some experimenting with frames and images.
The following example moves a frame using MoveTo to 10,10 and moves the image in the frame also to 10,10 using MoveBy (Like setting an offset)
REM A array that holds the x,y coordinates
Dim IFramePos() = {10,10}
ImageFrame.ContentType = InDesign.idContentType.idGraphic 'set type
ImageFrame.GeometricBounds = iFrameSize 'is declared elsewhere in the code, works..
ImageFrame.Move (IFramePos) 'pass ONE argument thus using moveTo
ImageFrame.Place (path) 'place a image
REM now an example of using moveBy
Dim MoveBY() as Integer = {10,10} 'These ar the coordinates to move to
myImage = IMageFrame.Images.Item(1) 'get the earlier placed image
REM Set it's position relative to it's parent frame, Also
REM here i have to use this comma thus "faking" the first
REM argument that is passed along to Move()
myImage.Move(,MoveBY)
Well,.. I never had used this before, thanx for pointing me to it Olav!
I'll be able to go on now, when new a question raises i'll be back :D
Thanx
Eelko
Technical Details
Message-ID:
<2ccddd87.4@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccddd87.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,92dc2d163d22d37e X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-10-16 03:41:43 PST From: Eelko_Heuvelmans@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Confusion about pages and spreads Message-ID: <2ccddd87.4@webx.la2eafNXanI> Date: Thu, 16 Oct 2003 03:29:55 -0700 References: <2ccddd87.-1@webx.la2eafNXanI> Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit