[basiljs] set text properties of overflow text

When i change the pointSize or any other propertie then only the text that is visible get's changed.
The text in the overflow is not.
How can i effect all text?
#includepath "~/Documents/;%USERPROFILE%Documents";
#include "basiljs/bundle/basil.js";
function setup() {
       b.units(b.MM);
function draw() {
   var t = b.text("sad", 20, 20, 100, 200);
    t.contents = TextFrameContents.placeholderText;
    b.itemHeight(t, b.itemHeight(t)/2);
    b.typo(t, "pointSize", 4);   
    b.itemHeight(t, b.itemHeight(t)*2);
b.go();

Hi
I think panel in InDesign doesn't count ReturnCode as character.
it should be
charsAmount  == count in panel + ( paragraphs.length - 1 )
maybe is for Editor, not for Programmer!
thank you
mg.

Similar Messages

  • Find overflow Text

    Hi every one
    is there a script that help to find the text boxes with overflow text (like in indesign with overset text)

    Here is how to select the text frame.
    textFrame.GraphicIsSelected = 1;
    You can go to the page by using something like this with FrameScript:
    Set doc.CurrentPage = textFrame.Page;
    Unfortunately, ExtendScript doesn't have this .Page shortcut, so you will have to figure out how to navigate from the textFrame object to the Page object. If your text frames are always in an anchored frame directly inside the main text flow, then it is pretty straightforward. However, you may want to make a general purpose function where you can find the Page object for any FrameMaker object, regardless of where it is on the page. You should pose this as a separate discussion on the list. If I have time, I will try to work out the code for you.
    Rick

  • Acrobat 9 Text Box Default Text Properties

    Acrobat 9: How do you change the default text properties for a text box?

    I take it you are talking about the text box from the Comment and Markup Toolbar?
    Yes, to access the Properties of a drawn box, select the box and right click(Control click on Mac) , a pop up menu will appear, choose > Properties... and amend as necessary. (Sounds like you probably knew that bit already).
    When in the Properties dialog box you will see a check box at the bottom that says 'Make Properties Default'
    Also an already modified box can be right clicked on the reveal 'Make Current Properties Default' from the pop up menu
    Paul

  • How do I get text properties at a TextLoc

    I want to get the text properties of the text location where my cursor is:
    var doc = app.ActiveDoc;
    var textLoc = doc.TextSelection.beg;
    Any pointers would be appreciated.
    Rick Quatro

    Hi Rick,
    According to the documentation, the Doc object has a GetTextProps method that expects a TextLoc. Seems to be exactly what you need. Page 477 of the FrameMaker 10 Scripting guide.
    Jang

  • Dreamweaver Help | Set text properties in the Property inspector

    This question was posted in response to the following article: http://helpx.adobe.com/dreamweaver/using/set-text-properties-property-inspector.html

    The note at the bottom of the first section (About formatting text (CSS versus HTML)) says -
    "You can combine CSS and HTML 3.2 formatting within the same page. Formatting is applied in a hierarchical manner: HTML 3.2 formatting overrides formatting applied by external CSS style sheets, and CSS embedded in a document overrides external CSS."
    Please be aware that embedded CSS will ONLY override external CSS if the external CSS link is closer to the  tag than the embedded CSS (i.e., it comes earlier in the flow of the document).  If the embedded CSS comes first in the flow of the document, it will be overridden by the external CSS instead.

  • Help with problem specifying text properties (style & antiAliasMethod)

    I would be very grateful if someone could help me figure out what I am doing wrong in specifying certain text properties, namely style and antiAliasMethod.  I have tried many different things and consulted the JavaScript Reference Guide, Tools Guide and PS CS4 Scripting Guide, as well as several example scripts, but I can't seem to find the information needed.
    The snippet of code below adds a text layer to a document and places text on it;  What I want is white Arial bold 10 point text with no antialiasing (this would appear as "none" in the PS CS4 text tool dialog).  This code does everything except get the bold property and the antialiasing = none property.  Instead, what this code produces is white Arial normal (not bold) crisp (not none) text,
    My attempt to get no antialiasing instead of "crisp" causes an execution error, so that line is commented out below.  The line setting style to "BOLD" does not create an execution error, but it doesn't give me bold, either (instead I get normal).
    I am certain these errors mean I do not understand the correct way to express the code to set these properties.  Can someone set me straight about how to do this?
    Thanks.
            // Create a new text layer at the top of the document
            var myLayerRef = newDocRef.artLayers.add();
            myLayerRef.kind = LayerKind.TEXT;
            myLayerRef.name = "Test";
            var myTextRef = myLayerRef.textItem;
            // Set the text color, font, size, etc.
            var textColor = new SolidColor;
            textColor.rgb.red = 255;
            textColor.rgb.green = 255;
            textColor.rgb.blue = 255;
            myTextRef.color = textColor;
            myTextRef.font = "ArialMT";
            myTextRef.style = "BOLD";
    //        myTextRef.antiAliasMethod = "NONE";
            myTextRef.size = 10;
            // Set the text position, blend mode and opacity
            var tx = 10;
            var ty = 50;       
            myTextRef.position = new Array(tx,ty);
            myLayerRef.blendMode = BlendMode.NORMAL;
            myLayerRef.opacity = 100;
            // Insert the text
            myTextRef.contents = "Hello World";

    Update:
    I discovered how to fix both problems myself.
    The antialiasing was fixed by statement: myTextRef.antiAliasMethod = AntiAlias.NONE;
    The bold problem was fixed by changing the font name to "Arial-BoldMT" and deleting the statement which attempted to set the style to "BOLD".
    Thanks for your interest.  No further help is needed on this issue.

  • Default text properties

    Here is a part of your Helpfile:
    Adding text to a slide
    To add new text, do one of the following:
    To use one of the preset text effects, click Text in the Extras panel, and then drag a text sample onto the slide.
    To add plain text, click the Add Text button .
    Double-click the text and type in the Edit Text dialog box (to change the sample text it contains), and then click OK.
    In the Properties panel, set any of the following options:Note: The text properties specified here become the defaults for adding text.
    But the text properties specified here become not the defaults for adding text.
    Why not?

    Hi,
    Can you please expalin what software your are working on?
    -Swarnima

  • Feature Request: overflow text (threading text into another text box) as in InDesign

    I would like to see overflow text (threading text into another text box) as in InDesign

    Brilliant. Thanks for the reply. The file I'm using is the same one I've been using as a emplate for about 3 years now, but I've recently upgraded to Windows 8 and re-installed my copy of InDesign onto that, so I could have inadvertantly flicked one of these settings on during setup.
    I'll look through the properties or something and see if I can find the language settings.
    Thanks Steve, I appreciate your help. :-)

  • How to set Action type of Message Text Input Programatically.

    Hi,
    I am trying to create a PPR Event on a Message Text Input of Standard Page.
    I am extending the controller and trying to set the Action Type to firePartialAction and Event to XXXX
    Is it possible to set those properties?
    Regards,
    Krishna

    Hi,
    user1000 wrote:
    I am trying to create a PPR Event on a Message Text Input of Standard Page.
    I am extending the controller and trying to set the Action Type to firePartialAction and Event to XXXX
    Is it possible to set those properties?---Yes ,it possible in OAF.
    OAMessageTextInputBean Textinput=(OAMessageTextInputBean)webBean.findChildRecursive("Textinput");
    FirePartialAction FireActionA = new oracle.cabo.ui.action.FirePartialAction();
    FireActionA.setEvent("PPR");
    FireActionA.setUnvalidated(true);
    Textinput.setPrimaryClientAction(FireActionA);
    Regards
    Meher Irk

  • How can I set a signature on my text messages?

    How can I set a signature on my text messages?

    I have iphone4, recently changed my phone number.  Prior to the change all of my outgoing sms showed my name and phone number.  Since I changed the number have not been able to show the new number on outgoing texts. So I don't understand why my number showed before but unable to add it now.....?
    I lost a lot of data when I changed the number so I performed a back-up restore, which restored the data I lost.  But now my text messages are showing my old phone number.....!!
    Any idea how I can change so the new number is displayed?
    I use texting a lot more than I do email with my phone. 

  • I purchased a text tone from Itunes.  It shows up in my library, but not as a text tone.  Is there a way for me to set it as a text tone for all texts?  Or I am stuck with factory settings?

    I purchased a text tone from Itunes.  It shows up in my library, but not as a text tone.  Is there a way for me to set it as a text tone for all texts?  Or I am stuck with factory settings?

    So it is conseidered a customized text tones even if it was purchased through iTunes?  Confusing.  Since I bought it through itunes as a text tone I assumed it would work.  OOOPS
    Thanks so much

  • How to set alert mail contain SQL text activities

    How to set alert mail contain SQL text activities.
    In "Notification Templates" topic have no Available Tags about sql text. Can I send mail alert with SQL text?

    it should be text/plain, for a complete list refer
    http://www.freeformatter.com/mime-types-list.html
    Regards.

  • Acrobat XI Pro crashing when changing highlighted text properties

    After install update 11.0.07 EVERY after highlighting a section of text and attempting to change the properties the program crashes, this is happening in ALL my documents with highlighted text
    Here is what I see, first screen shot is a PDF file that I received. To rule out errors in the first file I created the file in the second screen shot with the same results in both files when attempting to change the highlighted text properties ie CRASH
    I'm in two mind as to ether uninstall and re install and apply update 11.0.06 , as there was no problem then, as this only seemed to start when update 11.0.07 was applied. OR to totally remove and re-install and then apply update 11.0.07  and see if this continues

    I have the same problem with KERNELBASE.dll but the procedure is the same, I change into something thanks
    Nome dell'applicazione che ha generato l'errore: Acrobat.exe, versione: 11.0.4.63, timestamp: 0x52288928
    Nome del modulo che ha generato l'errore: KERNELBASE.dll, versione: 6.1.7601.18409, timestamp: 0x53159a86
    Codice eccezione: 0xc06d007e
    Offset errore 0x0000c42d
    ID processo che ha generato l'errore: 0x18ec
    Ora di avvio dell'applicazione che ha generato l'errore: 0x01cf833d351b70ed
    Percorso dell'applicazione che ha generato l'errore: C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
    Percorso del modulo che ha generato l'errore: C:\Windows\syswow64\
    Nome dell'applicazione che ha generato l'errore: Acrobat.exe, versione: 11.0.4.63, timestamp: 0x52288928
    Nome del modulo che ha generato l'errore: KERNELBASE.dll, versione: 6.1.7601.18409, timestamp: 0x53159a86
    Codice eccezione: 0xc06d007e
    Offset errore 0x0000c42d
    ID processo che ha generato l'errore: 0x18ec
    Ora di avvio dell'applicazione che ha generato l'errore: 0x01cf833d351b70ed
    Percorso dell'applicazione che ha generato l'errore: C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
    Percorso del modulo che ha generato l'errore: C:\Windows\syswow64\KERNELBASE.dll
    ID segnalazione: 730f9cd2-ef30-11e3-a912-00269e8fad5f
    ID segnalazione: 730f9cd2-ef30-11e3-a912-00269e8fad5f

  • Can't view overflow text in document sent for commenting

    We use Acrobat 9 Pro for Windows in my office. When my coworker sends me a pdf form document for commenting (through the commenting menu), and that document contains form fields with overflow text, I can't get a scroll bar and can't access the overflow text. I do see the + overflow text indicator in the lower right corner of the field, but can't activate it by clicking on it. On the other hand, if my coworker sends me the same form document as a simple attachment, I can get to the overflow text with no problem. We're using Windows XP on Dell desktop computers. Thanks for any solutions.
    Paul

    If a document is enabled for commenting, all form fields are disabled. If extended for use with Reader (i.e., Advanced > Extend Features in Adobe Reader), both commenting and certain forms usage rights (and a few others) are enabled. But if you have Acrobat Pro, she shouldn't need to do anything more than send the original document that has not been enabled for commenting. You only need to do that for Reader users.
    George

  • Setting a label with the text from cmd

    I know that label.setText("sdf"); usually prints out what ever we set in the label. But what i need help in is actually to get the text from the command prompt and print it unto the label. I'm doing a school project that requires users to click a GUI component menu "start server". This actually calls a batch file that connects the pc and a mobile phone with bluetooth. So, actually when the server(pc) is connecting, it prints out text like : "connecting..." . I want to disable the command prompt and actually print all those text unto a label on the GUI. Please help me somebody.

    these are three classes that object_au suggested might help me to print things from a cmd to a label:-
    ------------------------AutoReader.java---------------------------
    package au.com.objects.io;
    import java.io.*;
    import java.util.*;
    * Reads a text stream line by line notifying registered listeners of it's progress.
    public class AutoReader implements Runnable
         private BufferedReader In = null;
         private ArrayList Listeners = new ArrayList();
         * Constructor
         * @param in stream to read, line by line
         public AutoReader(InputStream in)
              this(new InputStreamReader(in));
         * Constructor
         * @param in reader to read, line by line
         public AutoReader(Reader in)
              In = new BufferedReader(in);
         * Adds listener interested in progress of reading
         * @param listener listener to add
         public void addListener(Listener listener)
              Listeners.add(listener);
         * Removes listener interested in progress of reading
         * @param listener listener to remove
         public void removeListener(Listener listener)
              Listeners.remove(listener);
         * Handles reading from stream until eof, notify registered listeners of progress.
         public void run()
              try
                   String line = null;
                   while (null!=(line = In.readLine()))
                        fireLineRead(line);
              catch (IOException ex)
                   fireError(ex);
              finally
                   fireEOF();
         * Interface listeners must implement
         public interface Listener
              * Invoked after each new line is read from stream
              * @param reader where line was read from
              * @param line line read
              public void lineRead(AutoReader reader, String line);
              * Invoked if an I/O error occurs during reading
              * @param reader where error occurred
              * @param ex exception that was thrown
              public void error(AutoReader reader, IOException ex);
              * Invoked after EOF is reached
              * @param reader where EOF has occurred
              public void eof(AutoReader reader);
         * Notifies registered listeners that a line has been read
         private void fireLineRead(String line)
              Iterator i = Listeners.iterator();
              while (i.hasNext())
                   ((Listener)i.next()).lineRead(this, line);
         * Notifies registered listeners that an error occurred during reading
         private void fireError(IOException ex)
              Iterator i = Listeners.iterator();
              while (i.hasNext())
                   ((Listener)i.next()).error(this, ex);
         * Notifies registered listeners that EOF has been reached
         private void fireEOF()
              Iterator i = Listeners.iterator();
              while (i.hasNext())
                   ((Listener)i.next()).eof(this);
    ------------------------AutoReaderDocument .java---------------------------
    package au.com.objects.swing.text;
    import javax.swing.text.*;
    import java.io.*;
    import au.com.objects.io.*;
    import java.awt.*;
    * Document implementation that automatically reads it's contents from multiple readers.
    * Each Reader is handled by a seperate thread.
    public class AutoReaderDocument extends PlainDocument
         implements AutoReader.Listener
         * Default Constructor, creates empty document
         public AutoReaderDocument()
         * Adds a new source Reader to read test from. The reading is handled
         * in a seperate dedicated thread.
         public void addReader(Reader in)
              AutoReader auto = new AutoReader(in);
              auto.addListener(this);
              new Thread(auto).start();
         * Invoked when a line is read from one of threads.
         * Appends line of text to document.
         * @param reader where line was read from
         * @param line line read
         public void lineRead(AutoReader in, final String line)
              EventQueue.invokeLater(new Runnable() { public void run()
                   try
                        insertString(getLength(), line+'\n', null);
                   catch (BadLocationException ex)
                        ex.printStackTrace();
         public void error(AutoReader in, IOException ex)
              ex.printStackTrace();
         public void eof(AutoReader in)
    ------------------------SwingExecExample.java---------------------------
    package au.com.objects.examples;
    import au.com.objects.swing.text.*;
    import java.util.*;
    import javax.swing.*;
    import java.io.*;
    * Example demonstrating reading output from Process.exec() into a JTextArea.
    public class SwingExecExample
         public static void main(String[] args)
              AutoReaderDocument output = new AutoReaderDocument();
              JFrame f = new JFrame("exec");
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.getContentPane().add(new JScrollPane(new JTextArea(output)));
              f.setSize(400, 200);
              f.show();
              try
                   Process p = Runtime.getRuntime().exec(args);
                   output.addReader(new InputStreamReader(p.getInputStream()));
                   output.addReader(new InputStreamReader(p.getErrorStream()));
              catch (IOException ex)
                   ex.printStackTrace();

Maybe you are looking for