Selecting text without being editible

Is there a way to set text within items like mx:List and
mx:DataGrid so that it is selectable (and can be copied via Ctrl+C)
without the text being editible. In some cases I need a list of
data with text selectable for use in other applications but I don't
want to edit the text values as well.
Hope this makes sense, Any advice would be greatly
appreciated.
Cheers,
Leigh.

Hi Leigh,
Something like that:
<?xml version="1.0"?>
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
>
<mx:TextInput id="ti_text" text="{data.label}"
editable="false"/>
</mx:VBox>
Cheers,
Dmitri.

Similar Messages

  • Selecting Text in a JTextArea

    Hi, I have this problem with the JTextArea Caret positioning behaviour.
    I wanna select some text when I click (click, no dragging included) on a line. I use setcaretposition in the beggining of the line and movecaretposition in the end of the line.
    Nothing happens!!
    If I click the mouse and drag it a little bit then it works fine selecting the text showing the right colors and everything.
    I tried with the addhighlight method in the higlighter instance of JTextArea but it doesn't really select it, just changes it color.
    What do I have to do so that I can select text without having to drag when I click??
    Thaks a lot

    This shows you how to do it using a right click:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    public class TextAreaTest extends JFrame
         JTextArea textArea;
         JScrollPane scrollPane;
         public TextAreaTest()
              textArea = new JTextArea( "one two\nthree four", 10, 30 )
                   //  the tab character is not inserted into the text area
                   public boolean isManagingFocus()
                        return false;
              textArea.setLineWrap( true );
              textArea.setSize( textArea.getPreferredSize() );
              textArea.setSelectionColor( Color.red );
              textArea.setSelectedTextColor( Color.green );
              try
                   System.out.println( textArea.modelToView( 4 ) );
                   System.out.println( Utilities.getRowStart(textArea, 4) );
              catch (Exception e) {}
              textArea.addMouseListener( new MouseAdapter()
                   public void mouseClicked(MouseEvent e)
                        if ( SwingUtilities.isRightMouseButton(e) )
                             try
                                  int offset = textArea.viewToModel( e.getPoint() );
                                  System.out.println( textArea.modelToView( offset ) );
                                  int start = Utilities.getWordStart(textArea, offset);
                                  int end = Utilities.getWordEnd(textArea, offset);
                                  String word = textArea.getDocument().getText(start, end-start);
                                  System.out.println( "Selected word: " + word );
                                  int rowStart = Utilities.getRowStart(textArea, offset);
                                  int rowEnd = Utilities.getRowEnd(textArea, offset);
                                  System.out.println( "Row start offset: " + rowStart );
                                  System.out.println( "Row end   offset: " + rowEnd );
                                  textArea.select(rowStart, rowEnd);
                             catch (Exception e2) {}
              textArea.addCaretListener( new CaretListener()
                   public void caretUpdate(CaretEvent e)
                        int caretPosition = textArea.getCaretPosition();
                        Element root = textArea.getDocument().getDefaultRootElement();
                        int row = root.getElementIndex( caretPosition );
                        int column = caretPosition - root.getElement( row ).getStartOffset();
                        System.out.println( "Row   : " + ( row + 1 ) );
                        System.out.println( "Column: " + ( column + 1 ) );
              textArea.addKeyListener( new KeyAdapter()
                   public void keyPressed(KeyEvent e)
                        System.out.println( textArea.getDocument().getDefaultRootElement().getElementCount() );
              scrollPane = new JScrollPane( textArea );
              getContentPane().add( scrollPane );
              getContentPane().add( new JTextField(10),BorderLayout.SOUTH );
    //          textArea.getInputMap().put( KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "" );
         public static void main(String[] args)
              TextAreaTest frame = new TextAreaTest();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setVisible(true);
    }

  • Clipboard.autocopy=false in about:config, - no effect. selecting text still copies to clipboard

    I have a custom firefox extension that grabs data from the clipboard, as well as selected text from the firefox document. Problem is, every time I select text, it overrides the clipboard data with selected text data. The clipboard always mirroring my text selection. I need to disable this. Or, ensure that selected text gets sent to primary clipboard, while firefox extension accesses clipboard. (I am assuming nsIClipboard pulls data from clipboard vs primary-clipboard).
    I am confident that selected text is being dumped into clipboard, and not into primary clipboard. Selected text always overrides whatever I copied using Ctrl + C command. Middle mouse click, or Ctrl + V output same thing.
    I have changed the default setting in about:config to clipboard.autocopy value= false. I have restarted my system and selected text still saves to clipboard. This issue does show up on this thread here https://bugzilla.mozilla.org/show_bug.cgi?id=854565. But it is checked as solved. Apologies if this question should have been posted there. I am using Linux Mint 17, Firefox 32.0.3
    Any help greatly appreciated.

    I have solved the problem. I first updated all my software, which had no effect. Then I realized another extension may be adding this functionality. And voila! I am pretty sure Fastest Search was the culprit. I disabled the addon, although, this feature can probably be turned off.
    I hope this helps any future users that face this same issue.

  • Is it possible to highlight text without a pop-up  being made in Acrobat XI?

    I am trying to figure out if its possible to highlight text without a pop-up being made as I am using the highlighter tool to just mark  important information for quizzes and do not need a pop-up made each time I highlight! Is there a way to disable pop-ups being created? Thank you for your time.

    Thanks for your reply Dave, but I want to know if a pop-up has to be created internally when highlighting. Can you disable to sticky note part of the highlight?
    Here's an example: I highlight my college books and don't need all those pop-ups being made behind the scenes. In Acrobat X, all of my highlights would slow down the program immensely,
    thankfully in XI, it doesn't happen at all, nor do I want it to in the future. Thank you for your time.

  • How do I turn selected text in a Pages document into two columns without turning the whole document into two columns?

    How do I turn selected text in a Pages document into two columns without turning the whole document into two columns?

    Menu > Insert > Layout Break (before and after text) > click in text > Inspector > Layout > Layout > columns: 2
    Peter

  • Applescript to copy selected text to TextEdit without clipboard

    Hi,
    I am looking for an simple Apple Script that can copy any selected text, start TextEdit and paste it in. I have managed to do this with the clipboard but I would like it to work without clipboard. So that it copies the selected text to a variable and paste it from the variable afterwards.
    Is there any easy solution to this?

    if you're talikng about copying selected text anywhere, the easy solution is to use an automator service. 
    launch automator
    choose service
    choose 'receive selected text in any application' at the top - should be the default
    use the 'New TextEdit Document' action or the 'Set Contents of TextEdit Document' action, depending on what you need
    save, and run from the services menu
    if you want to select text from a specific application then you can use automator or get more fine-grained control by using Applescript, but appllescript doesn't have an easy way to get generic selected text.

  • How can I send text messages without being a thread as an group??

    Hi guys, I want to send text messages so several person without being an SMS as an group chat.
    Why do I want it?? Well it's mostly to send Christmas greetings to several persons without they know to whom I send to because many of them dot even know each other.. And I don't want the recipients to see the numbers of other recipients..
    I've read in the forum that you can turn off the "group messaging" in the "messages" bar. However i don't have that, so is there any other ways I can aens text without it being an SMS as group????

    naxster wrote:
    I've read in the forum that you can turn off the "group messaging" in the "messages" bar. However i don't have that, so is there any other ways I can aens text without it being an SMS as group????
    Thats because use you're not looking I the right place.  Settings -> Messages -> group messaging

  • Applying Character Attributes without Selecting Text

    How do I apply a character attribute to a range of text without selecting the text? (If it's selected, I can do a ITextAttributeSuite::SetBooleanAttribute(), but I can't select the text for this particular case.)
    I tried IAttributeStrand::DoApplyOverrides() and ICommand::ApplyCmd(), but neither did anything. Maybe I'm setting up the calls wrong. I'll continue to investigate, but in the meantime, if anyone knows how to do this, please let me know. Thanks.

    You could try an unmanaged selection with the selection suite -<br /><br />InterfacePtr<ITextTarget> target((ITextTarget*)CreateObject(kTextSuiteBoss, IID_ITEXTTARGET);<br />target->SetTextUnmanaged(textModelRe, RangeData(s, e, RangeData:kLeanForward));<br /><br />Ian

  • How to pull only column names from a SELECT query without running it

    How to pull only column names from a SELECT statement without executing it? It seems there is getMetaData() in Java to pull the column names while sql is being prepared and before it gets executed. I need to get the columns whether we run the sql or not.

    Maybe something like this is what you are looking for or at least will give you some ideas.
            public static DataSet MaterializeDataSet(string _connectionString, string _sqlSelect, bool _returnProviderSpecificTypes, bool _includeSchema, bool _fillTable)
                DataSet ds = null;
                using (OracleConnection _oraconn = new OracleConnection(_connectionString))
                    try
                        _oraconn.Open();
                        using (OracleCommand cmd = new OracleCommand(_sqlSelect, _oraconn))
                            cmd.CommandType = CommandType.Text;
                            using (OracleDataAdapter da = new OracleDataAdapter(cmd))
                                da.ReturnProviderSpecificTypes = _returnProviderSpecificTypes;
                                //da.MissingSchemaAction = MissingSchemaAction.AddWithKey;
                                if (_includeSchema == true)
                                    ds = new DataSet("SCHEMASUPPLIED");
                                    da.FillSchema(ds, SchemaType.Source);
                                    if (_fillTable == true)
                                        da.Fill(ds.Tables[0]);
                                else
                                    ds = new DataSet("SCHEMANOTSUPPLIED");
                                    if (_fillTable == true)
                                        da.Fill(ds);
                                ds.Tables[0].TableName = "Table";
                            }//using da
                        } //using cmd
                    catch (OracleException _oraEx)
                        throw (_oraEx); // Actually rethrow
                    catch (System.Exception _sysEx)
                        throw (_sysEx); // Actually rethrow
                    finally
                        if (_oraconn.State == ConnectionState.Broken || _oraconn.State == ConnectionState.Open)
                            _oraconn.Close();
                }//using oraconn
                if (ds != null)
                    if (ds.Tables != null && ds.Tables[0] != null)
                        return ds;
                    else
                        return null;
                else
                    return null;
            }r,
    dennis

  • Design View - Can't Select Text, Only Divs

    This is a page I did not build, and I hope I can describe this properly. Here's the published page -
    www.wheeltime.com
    I'm in CS4 and there are two things going on when trying to edit in design view. The first is I can't select text of content. Clicking to select said content, say a line of text or a word, selects and highlights the entire div container and all the content within in one big chunk. Why is DW not letting me select the actual content? This is the first time I've enver encountered this issue. 
    This is the same for all the div ontainers on the page. But another, perhaps related problem, has to do with this content area. In design view, there's a fixed height, so not only can I not select the content, but I can't see it all. It's OK in the browser, expands as it should. I've looked at all the properties anywhere and don't see any height attribute anywhere, especially those that enclose this area of content.
    One this that has be wondering - this content area is warpped in a "main-content" div, with a class applied. But this div has no corresponding entry or properties in the style sheet. I can see where a div can be used that has no specific properies of it's own, but is it OK to not be mentioned at all in the style sheet? And can this affect what's going on in design view editing?
    So, I guess the question is - what is governing this inability to edit in Design view?  Thank you in advance!!

    Have you tried double clicking the content?
    I'm not sure what causes this exactly, but I downloaded your page and ran it in my DWCS4. It did the same thing until I double clicked the content of the divs. That allowed me to select it without issue from that point on.
    It may have something to do with the content being wrapped in <span> tags within each <div>.
    Onto your other question, your <div id="main-container"class="container"> is being affected by the .container class in your style.css file rather than a #main-container id.
    EDIT: HTML id's like <div id="main-content"> serve to identify elements for many purposes, not just css. There is no problem with giving an element an id simply for organizational purposes, though usually they are used as targets for javascripts, css or php scripting purposes.

  • Cannot use double tap and move with one finger to select text in Mountain Lion

    I've been using OS X in my Macbook Pro since Snow Leopard, and if I choose "tap with one finger to click", I can use double tap and move with one finger to select text if the cursor is between text.
    It works in Snow Leopard,and Lion However, in Mountain Lion, this doesn't work!! I have to click in the bottom right corner of my trackpad  in order to select the text.
    Can anyone get this fixed ?
    Thanks.

    Caolei,
    I don't know if you'll ever see this, but thank you! I hope this helps somebody else down the line, too.
    re. "I can use double tap and move with one finger to select text if the cursor is between text."
    I've been trying to figure out how to select text with tapping and without clicking.
    This did the trick.
    It's quite finicky to not select a space in between words.
    Zooming in does seem to help (two finger double tapping in a body of text may trigger a SmartZoom and zoom the current frame of text to fill the screen, if anybody doesn't know this.)
    ((There's a smartMagnifyWithEvent Cocoa NSEvent that's not universally supported across all applications for noob OS X developers like me.))
    I haven't been able to find the part about double tapping between text to begin a selection (which seems to work best when double tapping directly next to a letter) anywhere in the help system on or online. I probably just missed it, though.
    Clicking with the built-in trackpad on my MacBook Pro w/ Retina or Magic Mouse just takes too much pressure for an old-time touch typist like me.
    As an aside, I've been trying BetterTouchTool and MagicPrefs to enable one finger tap on the Magic Mouse. BetterTouchTool seems to trigger text selection unwantedly and randomly, though.
    The whole mystique of Mac / Apple being intuitive and user-friendly seems to be one of the greatest marketing coups / unbelievable con jobs of the last century.
    I'm actually somewhat qualified to express an opinion as a software engineer with a degree in Computer Science and programming and user interface design experience in Windows, UNIX, web, Android and other systems, and now OS X and iOS. I could go on and on and on but I won't other to say that I still find Macs buggy and hard to use. I'm now finding that my new iPhone 5 is just as big of a pain (i.e. big thumbs missing landscape keyboard in Contacts.) Of course, I like flexibility and options and custom workflows and more than one way to do things and simply being able to do things at all, so I'm also actually somewhat biased. Sorry for the rant...
    Cheers,
    Hal

  • Is it possible to highlight text without using the mouse?

    I would like to apply the comment/highlight tool in Acrobat without using the mouse.
    I select text with shift + cursor. What is the quickest way of highlighting the selected text then? I do not want to use the mouse.
    From the programme help I learned that the keyboard shortcut U selects the highlighting tool. But it does not apply highlighting to text selected with the cursor.
    Any suggestions?
    Many thanks in advance!

    Thanks for your reply Dave, but I want to know if a pop-up has to be created internally when highlighting. Can you disable to sticky note part of the highlight?
    Here's an example: I highlight my college books and don't need all those pop-ups being made behind the scenes. In Acrobat X, all of my highlights would slow down the program immensely,
    thankfully in XI, it doesn't happen at all, nor do I want it to in the future. Thank you for your time.

  • Select text from all_views returns an empty string

    My application allows the user to select between the Data Provider for ODBC and the Data Provider for Oracle. (ODP)
    When using the ODBC provider the statement:
    Select text from all_views where view_name='MYVIEW'
    returns the expected string.
    If I connect via ODP however it returns an empty string.
    (If I use 'Select *' it tells me the text_length is 154 in this specific case - so there is definately text available.)
    I'm thinking it has something to do with the fact that the data type is LONG.
    In both cases I retreive the data using rdr.GetChars(), which should work.
    If I use the dbms_metadata.get_ddl function instead, it does return the string (Probably because the return type is not LONG)
    Unfortunately that function only works for Views in the current schema, while the original Select works for any view.
    (And I dont know what version of Oracle this function was added in - I have to support older versions too.)
    Similarly, if I use one of the XML functions to retreive the text as XML it works fine.
    (Again it is probably returned as a VARCHAR2 instead of a LONG.)
    The strange thing is that when I created my own table containing a LONG column I was able to load and retreive data without any problems.
    The problem appears to be specific to this column in all_views.
    Anyone know a solution to this?
    Thanks
    Mike

    Thanks that was it.
    I had not seen those properties since I am working with the 'generic' objects (DbCommand rather than OracleCommand, etc.)
    What is strange is that I was able to retreive data from my own LONG column WITHOUT setting this value to -1.
    (It defaulted to 0 in both cases.)
    The only difference was that when I retreived data from my own column I specified CommandBehaviour.SequentialAccess.
    When I retreived the all_views.text column I did not specify a behaviour at all.
    However the Oracle docs said that SequentialAccess is not supported ... so I guess that is not correct.
    (Maybe it doesn't 'work', but it certainly seems to cause things to work differently)
    Thanks
    Mike

  • How can I make a fillable table that allows me to select text in bulk yet retains tab over ability?

    I'm working on a form in livecycle and am trying to make a form which is easy for my client to fill out and easy for me to extract the data from.
    Basically I am desiging a form that my clent fills out by entering data into 4 X 3 table (four rows, three columns).  In this form they will put names in the first column,  countries in the second column, and account numbers in the third coloumn.
    While this is not too hard to do, what I would really like to do is make it so that when I extract this data from the form I can easily select all the names in the first column at once, all the countries listed in column two at once, and then the same for column three. I'm placing this data into a word file for use in a mail merge table, so it just streamlines it all if I can highlight everything in one column at once rather than having to select every name/country/account number separately. (And before I get criticized for being lazy, haha, I will be duplicating this 4X3 table at least 7-8 times, as each table will have information specific to other criteria in the form.)
    I've realized that Adobe doesn't seem to let me bulk select text in multiple text boxes, yet because I'm working with a table I'm wondering if there's something I'm missing that would allow me to do this, or perhaps there's even another better way to do this job.
    Thank you for your help and I apologize if this is a bit confusing!

    You may have already gotten an answer for this since it was a bit ago, but if you have Adobe Acrobat Pro you can save all of your forms you collect into one folder, saved with individual file names so they will not over-write one another and then in Acrobat click Forms>Manage Form Data>Merge Data Files into Spreadsheets. It walks you through it from there and you can Select All of your saved files and it will generate the spreadsheet for you and you can do what you wish in Excel. Hope this helps!

  • Why selecting text and hitting F1 doesn't go to specific help page anymore?

    Hi. Up until a while ago I was able to, while working on some code,  select a particular actionscript component such as a Class, function or  property and hit the F1 key which would immediately bring up Adobe Help  in my internet browser already showing the page relevant to my  selection. For example, if I had selected the word "MovieClip" in my  code and hit F1, the Adobe Help page describing the MovieClip class  would come up, without me having to navigate to it.
    Now (for some weeks actually), it no longer does that. When I hit F1,  Adobe Help comes up in my browser, but opens at a general menu page  regardless of what text I select, which in fact makes selecting text  before hitting F1 redundant anyways.
    Does anyone know anything about this?
    It was so much more convenient before! Now I have to search for what I'm  looking for every time. I'm learning on my own, so I find myself going  to the Help pages quite often. At the end of the day, it sums up to be a  lot of typing and searching and pages to navigate through. Also, it  seems that navigating through the Adobe Help pages is kind of slow which  just makes it even more of a drag.
    I'd appreciate any information on this, or possibly some help in how to get things back to how they were.
    Thanks!

    try to install :
    http://www.adobe.com/support/chc/

Maybe you are looking for

  • How to handle more records in jsp page

    i have some 1000 records in an collection( arraylist or iterator or any collection object) , for examples query returns records to me with resultset. i want to display 50 records each time per page how to display them and how to control the flow. plz

  • How to add empty soap header?

    Hello, I created a web service proxy using WSDL and XSD files. Then, I created a sample request from client interface and sent the request as an object to call the web services. However, I am not directly calling the webservices as I am doing it thro

  • ICloud restore confirmation showing email that isn't mine

    So I tried to restore my iCloud backup, entered my info into the phone, then I had to do the confirmation. It says enter the Apple ID for <email> to use for store purchases. Problem is the email isn't mine. Not an old one, just some random email. I s

  • The application IDVD 4.0 has unexpectedly quit

    After have made my DVD movie everything is working, except for the burning of DVD, because when I press down the Burn button suddenly iDVD 4.0 crash and says " The application iDVD has unexpected quit". Please is anybody there who can help me?

  • UPGRADE Active Directory Authentication WebService(ADAWS).

    I am planning to upgrade a 5.0.2 ADAWS to 6.1.0. When upgrading ADAWS system, should I import activedirectory.pte file? I checked  InstallGuide, but I could not understand about import file. InstallationGuide following "No work is needed to upgrade f