Article View: adobe.indesign.sdk
Article #4392Re: How to create a textframe and insert text?
From: Ken_Sadahiro
Date: Fri, 18 Jun 2004 18:01
Date: Fri, 18 Jun 2004 18:01
10 lines
1430 bytes
1430 bytes
You should create a text frame using kCreateMultiColumnItemCmdBoss instead of IPathUtils::CreateRectangleSpline. Using this command automatically associates a new text story with the multicolumn item. (See SDKLayoutHelper::CreateTextFrame). Then, you need to navigate over to the kTextStoryBoss (ITextModel) that is associated with your new multicolumn item, then call ITextModelCmds::InsertCmd to create the insert command, and then process it. (See SnpTextModelHelper::InsertText) You might find a lot of other tips if you look at the slides for these online plugin development training sessions: * Session 11: Text Model * Session 12: Text Layout You can access these from <http://partners.adobe.com/asn/indesign/sdk.jsp>. (ASN WebLogin required to access SDK contents)
Technical Details
Message-ID:
<3bb4aa2f.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb4aa2f.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f63e9,98478f347d3b68fe X-Google-Attributes: gidf63e9,public From: Ken_Sadahiro@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.indesign.sdk Subject: Re: How to create a textframe and insert text? Message-ID: <3bb4aa2f.0@webx.la2eafNXanI> Date: Fri, 18 Jun 2004 11:01:15 -0700 References: <3bb4aa2f.-1@webx.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit