Partial selection of Text in Editbox

Hi,
Please help me with this..
In an Edit box, I want to  highlight/select a portion of the text programmatically.
For example, if there's "Some Text" displayed in the text box, I want to select only "Text".
(I am implementing auto-fill (autocomplete) feature in a user defined form.
For that, I need this functionality.
When user starts typing "S", I need to put "ome Text"  in the textbox programmetically, as highlighted text. So, if actually user wanted to enter "Scene", instead of "Some Text" suggested by my autocomplete, he need not manually delete the remaining text)
In a google toolbar, if you type any characters, you are getting a popup window with all the matching entries, right?
I want a similar functionality in SBO.
So, Please tell me if you can think of any Multi-Line control in SBO
-In which items can be selected 
-Which can display multiple items at a time .
I tried with all the controls of screen painter.
Nothing works..For example, in Pane combo box, only a single item can be viewed at a time.
Grid works, but it is not appealing to the user, for this purpose.
Thank you for taking time to read this message!
-Geetha

Hi,
Thanks for your reply.
I'm trying whether there are any work-arounds.
I'm using sendkeys, and trying the following:
1. Sending RightArrow keys, to position the cursor in the correct position. (i.e, right after the text entered by the user) - I could achieve it!
2. I am sending Shift + End key to highlight the remaining text - It doesn't work:(
But, in the Eventlogs, it produces logs for Shift+End key, so sendkeys works. I don't know why the text is not highlighted.
Please give me ur inputs.
Thank you!
-Geetha

Similar Messages

  • Can't select vertical text formatting since Win 7

    Please help.
    Have recently upgraded to win 7 and now I cannot select any text formatting options in the drop down text menus. I can see them, but the drop down menu buttons don't work.
    Has anyone had this happen?
    I have spent so much time on the computer and it's so hard to get any work done.
    Advice would be much appreciated
    I would like to go back to XP but the computer guy says that's not possible.
    Thanks
    ZeeBud

    Thank you so much for responding Peter. I feel one step closer to being able to get my work done.
    Your solution means that I can now use the tools in the tools palette, but no luck with being able to use the text selection drop down menus.
    It's quizzical. I can select the fonts by clicking through file the file path> type> font. Just not through drop downs.
    Any thoughts anyone?
    Zj

  • Using the CTRL button to select multiple text segments in Design Editor

    Hi there,
    This may be a fairly elementary question, however I'm very new to RoboHelp.
    I'm currently building an online help text system, and when formatting my html files in Design Editor, I have to apply styles one at a time. I was hoping RoboHelp would have a function identical to Microsoft Word whereby holding down the CTRL key would allow you to select various segments in the file and apply the style. Eg. selecting only text you want to apply Heading 3 to.
    If RoboHelp does not have this functionality, this project will take me in the vicinity of 7 years to complete. Thanks for your time.
    Regards,
    PK

    No it doesn't work that way. What you need to do is create some character styles in your style sheet and apply those.
    Paragraph styles are defined something like
    P {
        font-size: 10pt;
        margin-top: 0pt;
        margin-bottom: 6pt;
        font-family: Verdana, sans-serif;
        color: #000000;
        font-weight: normal;
    P.Normal-Indent {
        margin-left: 20pt;
    where the second P definition will inherit all that is in P plus add the indent.
    When you select those styles, they will be applied to the whole paragraph.
    You can also create characters classes. If you do it within RoboHelp, RH will write the CSS code for you. If you edit the CSS outside RH, then instead of writing P or some other tag, you would normally start with the full stop so you might have
    .code {
        font-size: xx-small;
        font-family: Courier;
    to apply the Courier font to a selection in any paragraph style.
    In RoboHelp you need to prefix the character code with "span" to make it display in the dropdown, thus you would need:
    span.code {
        font-size: xx-small;
        font-family: Courier;
    See www.grainge.org for RoboHelp and Authoring tips

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • How to Print Text in the PLD when we select Type : Text

    Hi All
    I designed a PLD for Purchase Order which is working well but
    whenever we select type: Text and we enter some text in the row level for each item. when we see the PLD priview
    Items are displaying but the text below the items are not displaying
    it displays an empty row after each item
    How should i print text in the PLD
    I required in this following Format
    ITEMCODE  DESCRIPTION      QTY
    001              XYZ                      20
    this is capital Good Item
    002             PQR                        30 
    this is Raw Material
    In this above format
    I didnt get the text below the Items
    Can any one suggest the correct answer

    Thanks for your reply
    I already select the linetext field from table POR10 and kept it  in the PLD
    but i didnt get my required format
    after giving that line text field  iam getting
    in this way
    S.No.        ITEMCODE   DESCRIPTION  QTY
       1               001               XYZ                 20
    this is Capital Goods
      2                                                                 
    this is Capital Goods
    the text is repeating twice
    I Put the ItemDescription field  in POR1 and Line Text Field in POR10 in the same repetitve area

  • How do I select multiple text in Pages

    I'm using the newest version of pages.
    In MS office WORD, I can hold the Ctrl key and with multiple klick in the text I can select multiple text.
    Does pages has the similar function?

    Not possible in Pages 5.2.2, this has been removed by Apple along with 110 features.
    In Pages '09 you hold down the command key, the exact same equivalent as in Word for Windows.
    Peter

  • Download and upload selection screen texts

    hello,
           My requirement is to upoad and download selection screen texts from one system to another..
           How do download  the selection screen texts from program to the application server and then upload them on another system. I am writing a bdc to carry out this process...
          Please help me out with this..
    Thank you,

    Hi,
      Why don't you just transport it? If it is linked you can asked basis to set the transport part and link it. If it is not you can download the transport and import it on another system.
      If you still need a program to do that. You can use SAPlink on [http://wiki.sdn.sap.com/wiki/display/ABAP/SAPlink]. SDN provided such code already just download it and implement it on both of your system then you can copy a program with selection screen.
    Cheers,
    Chaiphon

  • In a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    in a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    Question already asked and answered several times.
    It's a bug striking in long documents.
    Select a word somewhere higher in the page then use the arrows to reach the wanted insertion point.
    Yvan KOENIG (VALLAURIS, France) mardi 23 août 2011 15:44:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Possible Bug when selecting the "text" tab on a Line Chart

    Thought I would pass this on.  Not sure if it has been logged yet or not.  Sometimes when building a line chart, the properties field locks up when I try and select the "text" tab.  The dialog boxes in the "text" tab do not show up and the "layout" tab is also highlighted.  I do not know what causes this, but it has happened to me numerous times.  The only solution is to totally delete the line chart and start all over.  It may be related to copying and pasting.  I set up a chart the way I need it and then copy/paste it rather than making all the changes on a default settings chart when I need another chart.
    Stan

    Hi Stan,
    Are you encountering this problem in the RTM version or SP1?
    Can you list the exact steps to reproduce this problem in the most simple case?
    Example:  add line chart, bind to data, copy, paste, click on text tab...............
    Thanks,
    Gerrit

  • After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?

    After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?

    Even simpler than that.
    Clicking once in a text box selects it.
    Clicking once in a selected text box places the insertion point in the box.
    The clicks do not need to be close enough in time to be read as a double click.
    The same behaviour applies to table cells in Pages and in Numbers.
    Regards,
    Barry

  • Selecting a Text Frame in another file (JS/CS3)

    Hi, I'm a newbie so this is probably a dumb question.
    I'm trying to copy the contents of a text frame in another ID file and copy/paste them into another text frame of my active document. Every example I find creates a NEW text frame and copies it and they work fine but I'm having trouble selecting the text frame or its contents (it's the only object in the document) in the already existing document.
    The section I'm struggling with is:
    var mySourceSlugDocument = app.open(File("/Macintosh HD/Users/Shared/Testfile.indd"));
    var mySourceSlugPage = mySourceSlugDocument.pages.item(0);
    var mySourceSlugFrame = mySourceSlugPage.pages.item(0);
    app.select(mySourceSlugFrame.parentStory.texts.item(0));
    app.copy();
    app.activeDocument.close();
    I'm doing something wrong here. It doesn't like the 'parentStory' in the select line. I'd be happy with a way of just doing a 'select all' and being able to paste it into the new document with a variable name so I can edit it.
    Cheers,
    G.

    I think the third line should be:
    var mySourceSlugFrame = mySourceSlugPage.textFrames.item(0);
    Note though that you don't actually need to select/copy/paste. You can use duplicate().
    Dave

  • How to select all text in document?

    I need to select all text in a long document to export to rtf. I only seem to be able to select a story. Any ideas in how I can do it?
    Thanks
    Ian

    Can't be done. You'll have to link all text boxes together in one long story, or use the script "ExportAllStories.jsx" that comes with your default InDesign installation.
    There are other alternatives (all of them using scripts), and the best way may depend on what your intentions are with the exported file -- if, for example, you want to read it back into their original text frames after editing, well, there are ways to do that.

  • Selecting Overset Text In InCopy CS5 [AppleScript]

    I am trying to fix the AppleScript I used in InCopy CS3 to select overset text in CS5.
    In my old script I tell InCopy to select the overset text in the current story. Simple command:
    select text of last text column of myStory
    In CS5 it now selects the last column in the layout. So in CS3 the last column was defined as the overset set if there was overset text. Now it is the last column. I admit that I think this was a bug in CS3 but it worked for me.
    Now I have no way to select all Overset text. If I run
    set myOverset to overset text of myStory
    This will get me the number of lines of overset text. So I think, if I know the number of lines of overset set, then I can use the total number of lines of text, subtract the number overset lines, and that will tell me the first line I need to select. Doesn't work. If I try to find out the number of lines in a story, the result is less than the number of lines shown to me in Story View. The amount it is off varies.
    Does anyone have any ideas. Also, I have tried to select multiple lines using AppleScript but InCopy doesn't like that.

    Most logical answer would be that for some reason your specific text was not exported as InCopt text (you have to do this for every text story you have and want to be able to edit). If you click on such a text frame, does a name get selected in the assignment and/or Links panel? If not, the text is not an InCopy text.

  • JTextArea artifacts when selecting/deselecting text

    I just bumped up against a font rendering issue with JTextArea. I have no doubt that it's a bug, but does anyone know of a workaround?
    Run the program below and select/deselect text by double-clicking words. The text is painted in a different location when selected and deselected. Try selecting by dragging the mouse or pressing shift and left/right arrow keys -- same problem, but the actual pixel location of the artifacts sometimes differs depending on the selection start and end, and the way the text was selected (keyboard/mouse drag/double click).
    Now try selecting the last word ("dog") by double clicking.import java.awt.Font;
    import java.awt.font.TextAttribute;
    import java.util.HashMap;
    import java.util.Map;
    import javax.swing.*;
    public class TextAreaProblem {
      public static void main(String[] args) throws Exception {
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            new TextAreaProblem().makeUI();
      public void makeUI() {
        Map<TextAttribute, Object> attributes = new HashMap<TextAttribute, Object>();
        attributes.put(TextAttribute.FAMILY, "Arial");
        attributes.put(TextAttribute.SIZE, 36.0);
        attributes.put(TextAttribute.POSTURE, TextAttribute.POSTURE_OBLIQUE);
        attributes.put(TextAttribute.TRACKING, TextAttribute.TRACKING_LOOSE);
        Font font = Font.getFont(attributes);
        font = font.deriveFont(attributes);
        final JTextArea textArea = new JTextArea("The quick brown fox jumps over the lazy dog.");
        textArea.setFont(font);
        textArea.setLineWrap(true);
        textArea.setWrapStyleWord(true);
        JFrame frame = new JFrame();
        frame.add(new JScrollPane(textArea));
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(850, 200);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Users\Darryl>java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)Any tips for a workaround will be much appreciated.
    Thanks, Darryl

    The fix using System.setProperty worked 100% for all font and attribute combinations I tried -- thanks again.
    2) Does it work to set the property after the GUI is already created and shown? (shall test that myself in a few hours, but would be nice to know earlier :)No. However, you may set this property as a component client property (on the JTextComponent), but before that component is made visible.This didn't work for me. I tried both putClientProperty and getDocument().putProperty, as suggested in the other thread. What did I miss?import java.awt.Font;
    import java.awt.font.TextAttribute;
    import java.util.HashMap;
    import java.util.Map;
    import javax.swing.*;
    public class TextAreaProblem {
      public static void main(String[] args) throws Exception {
        //System.setProperty("i18n", Boolean.TRUE.toString());
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            new TextAreaProblem().makeUI();
      public void makeUI() {
        Map<TextAttribute, Object> attributes = new HashMap<TextAttribute, Object>();
        attributes.put(TextAttribute.FAMILY, "Arial");
        attributes.put(TextAttribute.SIZE, 36.0);
        attributes.put(TextAttribute.TRACKING, TextAttribute.TRACKING_LOOSE);
        attributes.put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON);
        attributes.put(TextAttribute.STRIKETHROUGH, TextAttribute.STRIKETHROUGH_ON);
        Font font = Font.getFont(attributes);
        font = font.deriveFont(attributes);
        final JTextArea textArea = new JTextArea("The quick brown fox jumps over the lazy dog.");
        textArea.setFont(font);
        textArea.setLineWrap(true);
        textArea.setWrapStyleWord(true);
        // tried either or both -- didn't help
        textArea.getDocument().putProperty("i18n", Boolean.TRUE.toString());
        textArea.putClientProperty("i18n", Boolean.TRUE.toString());
        JFrame frame = new JFrame();
        frame.add(new JScrollPane(textArea));
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(850, 200);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }Darryl
    edit Setting this property seems to remove the ability to render underlined and strikethrough attributes. Changed the code above to add these. When "i18n" is set, they are ignored.
    edit2 GlyphPainter2 also doesn't appear to support foreground/background colors and swap_colors. It's beginning to look like whoever wrote that class solved a single problem of cumulative integer math error but introduced several others. Or maybe just didn't reimplement the features that weren't inherited..
    Edited by: DarrylBurke on Sep 8, 2010 5:13 AM

  • Problems with partial selection in preview and other skim...

    I scan student work that is handwritten. I use preview to select a portion of that work and then I paste the portion of the image I have selected into pages or some other application. Since upgrading to Snow Leopard when I partially select an area in preview everything appears normal. But when I paste into another app it pastes the entire image, not the portion I have selected. I could really use your help on this...

    remaltzman wrote:
    I scan student work that is handwritten. I use preview to select a portion of that work and then I paste the portion of the image I have selected into pages or some other application. Since upgrading to Snow Leopard when I partially select an area in preview everything appears normal. But when I paste into another app it pastes the entire image, not the portion I have selected.
    I don't know if this is related to your problem, but you might find this TidBITs discussion thread useful:
    http://emperor.tidbits.com/TidBITS/Talk/2819

Maybe you are looking for

  • Crystal Report ActiveX viewer 11 not installing on windows 7 64 bit

    Hi We have a web application which calls Crystal reports. If the Active doesnot exits on the user machine it tries to download it and intall. This works find on Windows XP, Windows 7 32 bit. But on Windows 7 64 bit the activex is not getting installe

  • Password protecting a wireless network

    I have just set up a wireless network in my house, it's a shared house and the aim was simply to have everyone else in the house connected to the same broadband connection and no-one else from outside using it. I am using an i-book with Airport Extre

  • Very Low Battery

    When i connect my ipod to the computer it comes up please wait very low battery even when its fully charged and nothing happens

  • Colour casts on some images

    Hi I did a screen shot showing 2 different photos in both Safari and Firefox. There does not seem to be a way to attach the image, but that is ok because I do not need to. The menu bar at the top of this page (Apple logo, Store, Mac, iPod + iTunes, e

  • Device isn't recognizing password

    For some reason I can access my icloud though my computer, but when I input my password to log onto icloud, the phone doesn't recognize it. What's going on?