🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16770

Re: [VB] Positioning problem

#16770
From: Alex Bu
Date: Thu, 31 Jul 2003 23:27
17 lines
1723 bytes
Hi Ole!

That makes a lot of sense! This label property is really cool. Sorry for keeping you so busy ;-)

Maybe you can help me with this one: Working with labels works really great. But in another case I need to align an object vertically at the middle of the selected (empty) row of a table. The object will be not placed in the table just on top. The problem is I'm not sure how to get the "position" or middle of the row. I tried to fill in a character to get the baseline and ascent to determine the vertical center of the row. But I got completely lost. This is what I came up with so far:

Set myCells = myInDesign.Selection.Item(1)
myCells.Cells.Item(1).TextContents = "A"
myInDesign.Selection = myCells.Cells.Item(1).Characters
Set myTextLine = myInDesign.Selection.Item(1)
Set myTextLineCenter = myTextLine.Baseline - (myTextLine.Ascent / 2)
myCells.Cells.Item(1).TextContents = ""

Isn't there an easier way to do this?
Thanks very much for your help!

Alex
Technical Details
Message-ID: <1dea239d.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1dea239d.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,29dc4ffd33a03c3d
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-31 16:37:47 PST
From: "Alex Bu" <12three@gmx.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Positioning problem
Message-ID: <1dea239d.1@WebX.la2eafNXanI>
Date: Thu, 31 Jul 2003 16:27:48 -0700
References: <1dea239d.-1@WebX.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit