Article View: adobe.scripting.indesign
Article #16386Re: [VB] Center a right aligned paragraphs in a table
From: Matthew Frederick
Date: Sun, 21 Sep 2003 20:54
Date: Sun, 21 Sep 2003 20:54
7 lines
1708 bytes
1708 bytes
I understand your question (this version), but unfortunately I don't know of any way of determining the width of any text, whether it's selected, in a cell, or anything else. The brute force approach I used in the previous (misunderstood) question would work, I suppose, slightly modified (enlarge the column width until every item is only a single line, then shrink the column in tiny increments until one of them is forced to two lines, save that width plus the increment as the maximum text width, then return the column to its original width), but it's really clunky and could take a while to run. Once you have the text width the problem is greatly simplified. I still only have a really rudimentary understanding of how to work with tables, using that clunky object iteration system I explained before, so I'm not likely to be of much help. I wanted to respond anyway, though, as it's pretty frustrating to post questions here and get no response at all. ;) Matthew
Technical Details
Message-ID:
<2ccd7909.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccd7909.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,87869e3f37548296 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-09-21 14:08:11 PST From: "Matthew Frederick" <mfrederick@qwest.net> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: [VB] Center a right aligned paragraphs in a table Message-ID: <2ccd7909.0@webx.la2eafNXanI> Date: Sun, 21 Sep 2003 13:54:55 -0700 References: <2ccd7909.-1@webx.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit