How to hide partial lines in a TextArea

I am using a TextArea component and programatically assigning some text to it.  Sometimes, the last line does not fit into the given width and height of the control.  Is there any way I can not show any lines that are partially displayed?
Any advice is welcome.
Thanks,
Om

Gordon, I tried the isTruncated() method.  It is returning false all the time even though the text is visibly being truncated.  From the documentation,
=================================================
isTruncated()    method    
public function isTruncated():Boolean
Language Version:     ActionScript 3.0
Product Version:     Flex 4
Runtime Versions:     Flash Player 10, AIR 1.5
Determines if the text, once composed, has been truncated.
=================================================
I am programatically setting the text value of the RichText control.  But the docs say that the isTruncated will return truncation only after the text has been composed.  Does this mean that I have to wait for an event or maybe a timer interval before I can query for this value?
To be safe, I create a timer and query the isTruncated() a second after I set the text value.  But it still says isTruncated is false when the text is obviously getting truncated.
Is this a bug or am I missing something?
Thanks,
Om

Similar Messages

  • How to hide Bottom Line in Report ?

    Hi everyone,
    We are working on Reports 11gr2 64-bit.
    In every report, when text is completed on a page, a horizonal line (i.e. bottom line) at the end of the every page is shown and printed unnecessarily.
    But creates problem in printed stationary, specially in Cheque-printing.
    Kindly advise me how to hide this bottom-line, specially in printing.
    Thanks.
    Dev.
    Edited by: ocpdev on Apr 5, 2013 6:29 PM

    HI
    Is these reports are developed on 11g or migrated from earlier version.
    Anyhow, to test it, - create a report from scratch on 11g and run it, Also check the Footer for any Lines on it.
    I hope you can identify the issue by redoing the thing for testing
    Best of luck
    ocpdev wrote:
    Hi everyone,
    We are working on Reports 11gr2 64-bit.
    In every report, when text is completed on a page, a horizonal line (i.e. bottom line) at the end of the every page is shown and printed unnecessarily.
    But creates problem in printed stationary, specially in Cheque-printing.
    Kindly advise me how to hide this bottom-line, specially in printing.
    Thanks.
    Dev.
    Edited by: ocpdev on Apr 5, 2013 6:29 PM

  • How to hide division lines in numbers?

    Is it possible to hide the lines you see in every spresdsheet you create?
    Also, how do you avoid those same lines to be printed out?
    Thanks

    There are two different kinds of lines: Borders and Gridlines. They both go around cells but they are not the same thing.
    Borders are the lines that print. Borders can be turned off (set to "none"). You can set one, many, or all of them to "none".
    Gridlines are not seen unless you have set one or more borders to "none"; the borders cover them up.  Gridlines only are visible when the table is selected. Gridlines cannot be turned off but they do not print.
    So, the answers to your questions are
    The lines you see in every table can be turned off, kind of.  You can turn off the borders but you cannot turn off the gridlines.
    Borders that are set to "none" will not be printed. When the table is not selected, what you see is what will be printed.

  • Flex charts: How to hide axis lines with CSS?

    Hello!
    How do I hide my axis lines with CSS? Shouldn't this work?
    <mx:Style>
      @namespace mx "library://ns.adobe.com/flex/mx";
      mx|ColumnChart {
        horizontalAxisStyleName: myAxisStyles;
        verticalAxisStyleName: myAxisStyles;
      .myAxisStyles { showLine: false; }
    </mx:Style>
    I also tried display: none.
    Prior to this I used:
    <mx:horizontalAxisRenderers>
      <mx:AxisRenderer showLine="false" axis="{someName.horizontalAxis}" />
    </mx:horizontalAxisRenderers>
    <mx:verticalAxisRenderers>
      <mx:AxisRenderer showLine="false" axis="{someName.verticalAxis}" />
    </mx:verticalAxisRenderers>
    But it produced some annoying warnings:
    Data binding will not be able to detect assignments to "horizontalAxis".
    Data binding will not be able to detect assignments to "verticalAxis".
    Thanks!
    --Dwayne

    Regarding the data binding warnings, see if you can get away without specifying the axis. Not sure if that will work. Otherwise, give the axis an id like the example at the bottom of http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/charts/AxisRenderer. html#axis.
    The doco for showLine says "Specifies whether to display the axis. The default value is true." I think it's referring to the line at the bottom of the axis, next to the numbers. It's nothing to do with the grid lines. Which explains why your code doesn't work.
    If you are not using gridlines at all (= not using the lines, not using horizontal-fill and horizontal-alternate-fill etc), then I think you can just get rid of them by specifying an empty array. Either in actionscript or in your chart tag (<mx:ColumnChart id="highlights" dataProvider="{results.result}" showDataTips="true">) add the argument: backgroundElements = "[]".
    If this is not desireable, go to plan b:
    You can control gridlines via css like this:
    mx|GridLines {
        gridDirection: both; // horizontal or vertical also accepted, but not "none".
    If you want none... well I've got some code where I do this:
    (backgroundElements[0] as GridLines).setStyle("gridDirection", "horizontal");
    // One of the arguments is the alpha, i.e. alpha=0 (translucent)
    var stroke:SolidColorStroke = new SolidColorStroke(0, 0, 0);
    (backgroundElements[0] as GridLines).setStyle("horizontalStroke", stroke);
    ... and that definitely works.

  • How to 'hide' one stroked-only object behind another?

    I'm struggling with something that shouldn't be this difficult!
    I'm laying-out a white-only T-Shirt logo (to go on a dark-green T-shirt)
    For the sake of simplicity, let's say I have two ovals with no fill, just a white stroke.  A small oval overlapping (on-top-of) part of the edge of a larger (underneath) oval.    I
    Any advice on how to 'hide' the line that's 'behind' the top object?
    Thusly: http://i.imgur.com/ZghWTMa.jpg  

    Actually, I'm not completely sure yet.
    Steve's answer assumes screen printing with a single opaque white ink. It won't work if printing to non-opaque composite transfers, or cutting from aplique vinyl, or if you're going to import the two-ellipse artwork for combination with other artwork.
    Since you don't know:
    1. Draw the two circles with a stroke color and a fill color (ex: black Stroke, white fill) on both.
    2. Apply the desired stroke weight.
    3. Object>Path>Outline Stroke.
    4. Pathfinder palette: Merge.
    5. White pointer: Select the two inside regions and delete.
    6. You now have a single Compound Path; no overlapping objects, and actual "holes" where you want the substrate to show through. Apply whatever fill color (white, etc.) you need.
    But bear in mind what has already been stated: White, unless defined as a Spot Color, does not "print." Think in terms of inks, not in terms of "color". In a program like Illustrator, "white" normally means "no ink." And you always have to know what printing method you are designing for.
    JET

  • How can hide the command line of a t.code in the portal

    Dear Experts.
    I have the following doubt:
    How can hide the Command Line of a Report that is called with a T.Code in the portal?
    Attach Image:
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    When I created a service using the T.Code SICF for the T.Code , I can hide buttons and the filed command line  using
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    With notes 1010519, "SAP GUI for HTML: Simplified Title Area Without Menu and OK Code" and 959417.
    But the problem is that when I create the service in the T.Code SICF, I also have that create an Iview IAC in the portal.
    The Question is : How can hide this fields and buttons if I want Publish the T.code using an Iview Transaction in the portal?
    In this moment I have used the two options:
    1 option) I created a service using the t.Code SICF for my Transaction and I also created an Iview IAC in the portal for call the service.
    RESULT:
    SAP Web Application Server
             500 Connection timed out
            Error: -5
           Version: 7000
           Component: ICM
           Date/Time: Sat Jun 12 20:26:39 2010 
           Module: icxxthr_mt.c
           Line: 2698
           Server: xyxab...
    Error Tag: {-}
    Detail: Connection to partner timed out after 60s
    2)  created an Iview Transaction  in the portal and  call my transaction.
    RESULT.
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    But not can hide the field Command Line and other buttons.
    I think that the command :
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    Only can be used if I create a service using the T.Code SICF .
    Best Regards
    Carmen.

    Hi Carmen,
    The bottom line is that this cannot be done for transaction iviews without modifying the standard webgui service in SICF, which is probably not a good idea (since it affects everyone using SAP GUI for HTML). (You could hack the appintegrator to add the ~webgui_simple_toolbar parameter to the transaction URL template in the portal, but again its not a recommended thing to do ...). Better to create an IAC service in SICF with ~webgui=1 where you set the required appearance using an appropriate value for ~webgui_simple_toolbar, and then create an IAC iview to point at this service.
    You can even override the ~transaction value configured in the new service in individual IAC iviews by entering the appropriate value in the application parameter of the iview, for example:
    ~okcode=/nSU01
    And you can pass parameters in the same way:
    ~okcode=/nSU01 USR02-BNAME=xyz;USREFUS-USERALIAS=abc;
    By the way, it would not be recommended to create a URL iview to access an IAC, since you are likely to encounter session management issues in this scenario - better to use an IAC iview.
    Regards, Rory

  • How can I hide the scroll bar in TextArea?

    How can I hide the scroll bar in TextArea?

    Hi. To remove the horizontal scrollbar you can do this:
    textArea.setWrapText(true);
    To remove the vertical scrollbar you can do this:
    ScrollBar scrollBarv = (ScrollBar)ta.lookup(".scroll-bar:vertical");
    scrollBarv.setDisable(true);  and set the opacity to 0 in the css file:
    //css file
    .text-area .scroll-bar:vertical:disabled {
        -fx-opacity: 0;
    }Here is an example:
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ContextMenu;
    import javafx.scene.control.MenuItem;
    import javafx.scene.control.ScrollBar;
    import javafx.scene.control.TextArea;
    import javafx.scene.input.ContextMenuEvent;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    public class TextAreaSample extends Application {
        @Override
        public void start(Stage primaryStage) {
        final TextArea textArea = new TextArea();
            textArea.setWrapText(true);
            StackPane root = new StackPane();
            root.getChildren().add(textArea);
            Scene scene = new Scene(root, 300, 250);
            primaryStage.setScene(scene);
            primaryStage.show();
            scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm());
            ScrollBar scrollBarv = (ScrollBar)textArea.lookup(".scroll-bar:vertical");
            scrollBarv.setDisable(true);
        public static void main(String[] args) {
            launch(args);
    }

  • How to hide line console parameters through Cisco ACS

    Hi,
    Can any one of you please help me in the following scenario ?
    I want to hide the line console, line aux and line vty configuration parameters of the cisco devices based on user level privillages through Cisco ACS. For example, if a user logs into the devices with privilege level 7, then he should not be able to see the line paramenters on the cisco devices for which he had privilege level 7 access.
    Can you please help me out how to achieve this?? Your help in this regard is highly appriciated.
    Thanks

    This thing is possible with local authorization on IOS device. With ACS this is not possible.
    In acs you can set what all commands a specific user can issue. That feature is called command authorization.
    For show run you need to give priv 15. ACS works in a different way if you compare it with setting up local priv lvls on router/switch.
    Best way to set it up is to give all user priv lvl 15 and then define what all commands user can execute.
    Note : Having priv 15 does not mean that user will able to issue all commands.
    We will set up command authorization on acs to have control on users.
    This is how your config should look,
    aaa authentication login default group tacacs+ local
    aaa authorization exec default group tacacs+ if-authenticated
    aaa authorization commands 1 default group tacacs+ if-authenticated
    aaa authorization commands 15 default group tacacs+ if-authenticated
    aaa authorization config-commands
    aaa accounting commands 1 default start-stop group tacacs+
    aaa accounting commands 15 default start-stop group tacacs+
    http://www.cisco.com/en/US/products/sw/secursw/ps2086/products_configuration_example09186a00808d9138.shtml
    Regards,
    ~JG
    Do rate helpful posts

  • How to hide movement of slanting lines of ProgressBar in mode=ProgressBarMode.EVENT

    How to hide movement of slanting lines of ProgressBar in
    mode=ProgressBarMode.EVENT ?
    At first before starting of process I need to display empty
    ProgressBar...
    Thanks.

    How to hide movement of slanting lines of ProgressBar in
    mode=ProgressBarMode.EVENT ?
    At first before starting of process I need to display empty
    ProgressBar...
    Thanks.

  • How to make the last line of the textarea visible all the time?

    Hello,
    I am making an online chat application in JSP and XHTML. The chat log and online users� names textareas are refreshed every 5 seconds. When it comes to many messages in the chat log textarea, the scrollbar appears. Then, every time the chat log textarea is refreshed, I need to move the scrollbar down to see the last line of the textarea.
    Are there any ideas how to make the last line of the textarea visible all the time without moving the scrollbar?
    Thanks in advance.
    Dan

    I put the below code on the page, but it didn't work.
    Are there any ideas? Thanks.
    <table border="0" cellspacing="1">
    <tr>
    <th>Chat Log</th>
    <th>Users now online</th>
    </tr>
    <tr>
    <td><textarea rows="20" cols="60" name = "messages" readonly = "readonly"><%= texts %></textarea></td>
    <td><textarea rows="20" cols="20" name = "names" readonly = "readonly"><%= names %></textarea></td>
    </tr>
    </table>
    <script type="text/javascript">
    <!--
    document.messages.scrollIntoView(false);
    //-->
    </script>

  • How to select one line in TextArea?

    does anybody know how to click one line in TextArea and get the contents of the line(string)? How can I implement the action?
    any hints would be appreciated.
    thanks in advance.

    The term 'line' might mean a displayed line of text or it might mean text delimited by a newline character.
    If you mean text delimited by a newline character, then sylvain.barbot has an approach that may work. A MouseListener would know when a click occurs and could determine the 'line' of text between \n's from the current Caret position.
    If you mean a displayed line of text, that will be difficult unless you put restrictions on the TextArea. If you allow the TextArea to be resized or use a variable-width font, then I can't think of a way to do what you want. The number of characters per line changes depending on the current size and the character content of the TextArea. You might as well write your own TextArea.
    If you use a fixed-width font, then you should be able to calculate the number of characters per line. With a ComponentListener, you should be able to re-calculate the number of characters per line when the TextArea is resized. It would be easiest if you did not allow resizing of the TextArea and used a fixed-width font. Then getCaretPosition() would give you the position in the whole TextArea and you could calculate the line start and end.

  • How to insert new line in textarea

    I try programatiaclly to add for example three strings in <textarea>
    the final result should be something like this:
    --TEXTAREA TAG BEGIN
    line1
    line2
    line3
    --TEXTAREA TAG END
    I tried the hack described here;
    http://www.mail-archive.com/[email protected]/msg08294.html
    <c:set var="temp" value="one
    two"/>
    <c:set var="newline" value="${fn:substring(temp,4,5)}"/>after that I used it like this:
    <textarea>
      // forEach begin (write some output)
        <c:out value="${newline}"></c:out> //try to add new line
      // forEach end
    </textarea>Sorry about the wrong comment style, I'm just pointing out whta I expect as a result.
    I was surprised when I found out that "newline" value is "t" instead of special character "\n" or "\r". Anyway, I didn't receive the desired result.
    I use XML JSP files and UTF-8.
    Can anyone help me?

    I think I remember using a pre tag in between.
    <pre>
    // ur text area tags here.
    </pre>

  • How to hide RMAN command line args from "ps -ef" command?

    Hi there
    This is not RMAN question per say but it is related to my RMAN script. Part of this RMAN script is below:
               rman target / catalog ${RMANID}/${RMANPW}@${RMANSID} log=${TMPFILE} << EOF
    While the script is running, if I issue "ps -ef | grep rman" command (from my own user id or as 'oracle' user), I see following:
              oracle   32522 32492 36 15:32 pts/1
    00:00:01 rman target / catalog rman/rman2013@rmancat log=/tmp/oratmp32492
    Is there a way to hide the values of the variables (Id, Pwd, SID) from the "ps -ef" command?
    If not, any other an alternates?
    Best regards

    How to Hide RMAN Passwords when Connecting to a Target Database (Doc ID 183377.1)
    How To Hide Usernames And Passwords In RMAN Logfile (Doc ID 246192.1)

  • How to hide the pricing conditions specified in pricing procedure of sd.

    dear friends,
    my situation is to hide the conditions specified in the pricing procedure. so that it is not viewed by the some users.can you please tell me how to hide the conditions. so some of the persons, who are having authorization to see the conditions , will be able to see the pricing conditions.
    can you please suggest me how to do this.
    regards,
    g.v.shivakkumar

    Authorisation  issues viz. Role Impementations
    Hide Condition Records Line Item & Header Wise from all the transactions QK / So /  P.I. / Enquiry / Invoice etc. for specific user grps. - in CRETATE / AMEND / DISPLAY / REPORTS all
    Only Display the fields
    regards,
    g.v.shivakkumar

  • How to hide remote IP address in header for roaming users

    Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep 1 2009)
    libimta.so 7.3-11.01 64bit (built 19:54:45, Sep 1 2009)
    Using /opt/sun/comms/messaging64/config/imta.cnf (compiled)
    Hello everyone,
    We have a new messaging server and have been struggling in our effort to figure out how to hide the remote IP address of users who send email from a remote location. When a roaming user sends out an email from a remote location using SMTP AUTH to authenticate, the messaging server includes the remote ISP's dynamic IP address in the header of the email, which in turn results in some recipient mail servers blocking the mail message as spam. What we want to do is have messaging server rewrite or remove the roaming user's dynamic email address so the header does not reflect a user working remotely. The net effect would be the header not reflecting any external address and the messaging appearing to have originated internally.
    Any assistance on this would be greatly appreciated. Thanks in advance.

    MarketData.com wrote:
    We have a new messaging server and have been struggling in our effort to figure out how to hide the remote IP address of users who send email from a remote location. When a roaming user sends out an email from a remote location using SMTP AUTH to authenticate, the messaging server includes the remote ISP's dynamic IP address in the header of the email, which in turn results in some recipient mail servers blocking the mail message as spam.How often is this occurring (messages being blocked as "spam" due to the content of an existing Received header)?
    What spam software is being used that blocks these messages?
    Very large organisations/ISP's use Sun Messaging Server and this is the first time I have heard of this occurring.
    What we want to do is have messaging server rewrite or remove the roaming user's dynamic email address so the header does not reflect a user working remotely. The net effect would be the header not reflecting any external address and the messaging appearing to have originated internally.Removing the IP address information is going to be extremely difficult. The standards are quite clear that the Received: header should include the IP address information.
    RFC 2821 (SMTP), Section 4.4 Trace Information:
       When an SMTP server receives a message for delivery or further
       processing, it MUST insert trace ("time stamp" or "Received")
       information at the beginning of the message content, as discussed in
       section 4.1.1.4.
       This line MUST be structured as follows:
       -  The FROM field, which MUST be supplied in an SMTP environment,
          SHOULD contain both (1) the name of the source host as presented
          in the EHLO command and (2) an address literal containing the IP
          address of the source, determined from the TCP connection.Regards,
    Shane.

Maybe you are looking for

  • Standard Job Definition - What are these?

    Can someone tell me what the following jobs are?  Can't find any SAP documentation on these. I see them in the BWCCMS, but can't find any information on them.  Shouldn't these be documented if they are defined as standard jobs that should be run? SAP

  • Buffer cache

    Hi, How we can find out which table need to be kept in buffer cache. Regards, W@s..

  • Linksys in Corporate Environment

    I've got a WRT54G.  I've also got a cable at my corporate client's office that I can plug directly into my PC, and when I do so, (Win XP, DHCP enabled), I get an IP address for my machine of 192.168.1.x, and I am able to access the internet, mail etc

  • How do I share raw footage that I downloaded directly to Final Cut

    I need to send some footage for transcription. I was planning to use WeTransfer since I know it. When I downloaded the footage from my SD card to my Mac I imported directly to FCP, which usually I don't do. Usually I would download to my external HD

  • I can't run compiz

    i followed th e wiki i installed all but the fusion-icon load nothing typing compiz the windows borders disapear if anyone can't guide for at leat know what is wrong by the way, i have a Nvidia card fx5200 and only a few hours ago i was running beryl