EditField specific text in bold

Hello

I want "BOLD" of specific letters in my EditField.

public void changeToBold() {}
try {}
alphaSans = FontFamily.forName ("without BBAlpha");
Police = alphaSans.getFont (Font.BOLD, 9, Ui.UNITS_pt);
editField.setFont (do);
} catch (ClassNotFoundException e) {}
Dialog.Alert ("Alert");
}
}
    
public void changeToPlain() {}
try {}
alphaSans = FontFamily.forName ("without BBAlpha");
Police = alphaSans.getFont (Font.PLAIN, 9, Ui.UNITS_pt);
editField.setFont (do);
} catch (ClassNotFoundException e) {}
Dialog.Alert ("Alert");
}
}

I add the text to the EditField since a sqlite database.

While (C1. Next() & {c2.next ()}
R1 = c1.getRow ();
R2 = c2.getRow ();
Temp = r2.getString (0);
         
changeToBold();
Letexte += temp;
changeToPlain();
Letexte += r.1getString (0);
}

* Maybe there is a way to create a LabelField, which contains the text I want to "BOLD", and then add it at the same time to the EditField?

Thank you

You can do this by using a RichtextField.

The text of a RichTextField

http://supportforums.BlackBerry.com/T5/Java-development/format-text-in-a-RichTextField/Ta-p/445038

Tags: BlackBerry Developers

Similar Questions

  • How to create a macro to add specific text whenever I need?

    How to create a macro to add specific text whenever I need (that is, THIS STATEMENT IS TRUE AND CORRECT)?  Rather than having to type it every time I'm looking for a way to save this macro (or action) then I can save time when inserting this text in a PDF file. Thank you!

    Put the text in a text file. From there, you can copy and paste.

  • Can some one identify this specific text style?

    Hello


    I was wondering if you could tell me what this specific text style? I searched for this style of text for a while, without results, and I'm not sure that I came to the right place to ask this question.


    With respect,

    Frants


    Text stylee.png

  • Is there a way to auto check a checkbox triggers production of a specific text box?

    I use Conga composer. I hope that when the information are filled in a specific text box in a pdf file, it will auto check a specific box.  Script ideas? Or, if this is even possible? I've seen scripts for the return, but my situation requires this particular traffic.

    You add those by going to tools - JavaScript - Document JavaScripts. Create

    a new item (call it "scripts", let's say), then remove the default function

    definition of who is there and paste your code instead.

    This code will be executed whenever the file is opened.

  • Is there a way to make a box cause necessary specific text fields?

    I am looking for a way to make a "Yes" box when checked, cause specific text fields switch of the not required required.

    You could repeat the line several times, for example

    getField("Text2").required = event.target.value = "Yes"? true: false;

    getField("Text3").required = event.target.value = "Yes"? true: false;

    getField("Text4").required = event.target.value = "Yes"? true: false;

    etc.

    Simply change the names of the fields to your form.

    There may be better ways to generate scripts, but the works above.

  • How can I find and remove a specific text in a PDF document?

    Hello. Sorry for my English (I'm from the Russia))

    There is the problem - how to find specific text in a document (in my case, it - all the numbers (0-9)) and remove, using javascript?

    And I would like to know also - is a function of search with regular expressions?

    And more importantly - how to remove the text based?

    is this possible?

    document is so great, that if I manually delete the numbers - I'll do it for a month!))

    Thank you!!!

    You can use a regular expression with the "words" individual who is returned by JavaScript.

    Suggestion of Leonard, in Acrobat 10 select: Tools > Protection > Search & delete text (sorry, I don't know what it would be in Russian)

  • A link to a specific text

    Hi all!

    I would like to make a link to a specific text in a PDF document.

    I can link pages, but I can't bind to specific text in a page.  Is it possible to do this?

    I am on Mac OS 10.5.8 using Acrobat 9.4.0...

    Thank you very much!!

    Diane

    You can do this by using the way I described.

  • Radio buttons with a specific text necessary to provide in particular for the selection of RB

    Hi all

    Adobe Acrobat 9 Pro.

    1. I'm not sure how to set up this script, because I'm very inexperienced in terms of coding.

    Each radio button has specific text areas to be filled according to the selection of the radio button.

    'Radio Button1' has 4 values/selection (1, 2, 3 and 4).

    Note: Option 4 has 3 separate text boxes must be filled (proposal4, Text5 and Text6).

    If a user selects 1: Text1 should be filled and no admission for Text2, Text3, proposal4, Text5 Text6.

    If a user selects 2: text 2 must be filled in and no entry for Text1, Text3, proposal4, Text5 Text6.

    If a user selects 3: text 3 must be filled in and no entry for Text1, Text2, proposal4, Text5 Text6.

    If a user selects 4: Test 4, Text5 and Text6 must be filled in and no entry for Text1, Text2, Text3.

    When I'm saying no entry, basically locked or will receive an error if the data is inserted.

    2. I am also uncertain where I would like to insert the code and how it works.

    Thank you in advance,

    Josh

    For the example given and newness to the coding, you might try to display / hide the fields instead of scripts. An example is attached.

    Discover the activities of each of the radio buttons. Basically, for each choice of radio, corresponding text fields will be displayed or hidden. (The default property for each text field is hidden.) Each choice will remove the text field data previous choice via a form of reset action applied to these fields.

  • put in bold specific text in a text caption - Captivate 5

    I just got 5 Captivate.  How can I change (bold, italic, , etc.) a specific word or phrase in a text box?  I could easily do Captivate 4 but can't figure out in 5.

    You do not dialog boxes open in Cp5 to change things. Now, he has made using the tabs and accordions (expand/retract sections).

    Simply select the word or phrase in the text box just as you would select a piece of text in Word format, then go to the tab of properties on the right, open the accordion of character and you should find all your editing needs.

  • Format text in bold in the field and to put text on a new line - help!

    I'm lost.  I found the rich text formatting item click.  But after that, I don't know what to do next.  I want "BOLD" of some characters and I want some answers on separate lines, as I asked earlier.  As for spans and controls - I have no programming experience.  I just used that George gave to me.  It worked fine, but I just need that bold text in one part of the text to print field and I need some items to be on separate lines.  But I don't know where to put the information you say on the spans and I do not know the use of bold text or script start text on a new line.  I'm into the calculation of the area of text box?  Sorry to be so lame, but I'm no good in programming skills.  Help!

    For example, here's the script.  In aISOreq {[0], if I want to "BOLD" "Check #1 patter: ', where should I put the span and what script should I use to say to"BOLD"it.}   Could you give me an example, please.  Also, if I want to put 'a. drugs weekend on one line?' and ' b. activities the weekend? Types of activities? Supervision? With whom? "on the next line, where do I put the span and what script should I use to put on separate lines?  Could you give me an example for this too, please.  I have used literally just scripts George gave me and they work great - but it's all I know how to do.  Thank you.

    (function () {}

    Set up a table to hold the various paragraphs of the text

    var aISOfreq = [];

    Fill the table with text of paragraph

    aISOfreq [0] = ' model #1: reducing several isolations on Mon & Tue to Fri. "  Model # 1 verification: a. drug weekend?  b. activities weekend? Types of activities? Supervision? With whom? « ;

    aISOfreq [1] = ' model #2: isolation of multiple some days. "  Note the days.  The #2 model checking: a. Different plan these days there? Another adult? Block-schedule? Need to w/same adult consistent schedule.  b. adaptations/changes occur? More group c. individual training? Does the student need warm-up exercises or a specific job?  Student needs a specific lesson routine? c. activities of the previous night?  Need of calming activities before bedtime?  Need to bed earlier? Need additional evening structure? « ;

    aISOfreq [2] = ' model #3: Isolations are grouped intermittently. "  Interval of note.  The #3 model checking: a. cyclical behaviour?  Review the assessment.  Need reference mental health intervention of medication or treatment?  b. drugs: supervision? Self medication? Taking constantly? Need medication collate doctor?  Share concerns with the doctor?  c. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Share concerns with PO? « ;

    aISOfreq [3] = "models #1 & #2: multiple Isolations on Mondays & Tuesdays to Friday AND several Isolations some days."  Note the days.  Model #1 verification: a. drug weekend?  b. activities weekend? Types of activities? Supervision? With whom?  The #2 model checking: a. Different schedule some days? Another adult? Block-schedule? Have a consistent schedule with same adult.  b. adaptations/changes that occur? More group c. individual training? Need of specific work or warm-up exercises?  Need a specific lesson routine?  c. activities of the previous night? Need of calming activities before bedtime? Need to bed earlier? Additional needs night structure? ";

    aISOfreq [4] = "models #1 & #3: multiple Isolations on Mondays & Tuesdays decreasing Friday AND insulation together intermittently."  Note intervals.  Model #1 verification: a. drug weekend?  b. activities weekend? Types of activities?  Supervision? With whom?   The #3 model checking: a. cyclical behaviour?  Review the assessment.  Need reference mental health intervention of medication or treatment?  b. supervision of drugs? Self medication? Taking constantly? Must check with the doctor med?  Share concerns with the doctor?  c. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Part of the concerns of w/PO? »

    aISOfreq [5] = ' patterns #2 and #3: several isolates on a day specific AND insulation together intermittently. "  Note day & intervals.  The #2 model checking: a. different planning? Another adult? Block-schedule? Need to w/same adult consistent schedule.  b. adaptations/changes that occur? More group c. individual training? Need exercises to warm-up or a specific job?  Need a specific lesson routine? c. activities of the previous night?  Need of calming activities before bedtime?  Need to bed earlier? Additional needs night structure?  The #3 model checking: a. cyclical behaviour? Review the assessment.  Need reference mental health intervention of medication or treatment?  b. supervision of drugs? Self medication? Taking constantly? Need medication collate doctor?  Share concerns with the doctor?  c. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Share concern w/PO? « ;

    aISOfreq [6] = ' bosses, #1, #2 and #3: several isolations on Mondays & Tuesdays decreasing through Friday, several isolates some days AND insulation together intermittently. "  Note the days and intervals.  Model #1 verification: a. drug weekend?  b. activities weekend? Types of activities? Supervision? With whom?   The #2 model checking: a. different planning? Adult?  Block-schedule?  Need to w/same adult consistent schedule.  b. adaptations/changes that occur? More group c. individual training? Need exercises to warm-up or a specific job?  Need a specific lesson routine? c. activities of the previous night?  Need of calming activities before bedtime?  Need to bed earlier? Additional needs night structure?  The #3 model checking: a. cyclical behaviour? Review the assessment.  Need reference mental health intervention of medication or treatment?  b. supervision of drugs? Self medication? Taking constantly? Need medication collate doctor?  Share concerns with the doctor?  h. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Share concern w/PO? « ;

    aISOfreq [7] = "without cause."

    Get the selected item, which is the value of exports of the selected drop-down list box item

    var point = getField("ISO_Frequency_Pattern").value;

    Display the text corresponding to the selected item in the text field

    Event.Value is aISOfreq [point];.

    })();

    Look at the richValue of the Field object property reference. It contains a few examples of how it should be done. Read also the Span object reference.

  • Firefox 4.0.1 shows almost all of the text in bold. I start to record mode and sound fine, but when I disable all the addon then start in normal mode it broke again.

    So I updated last night, this morning I noticed that a lot of the text on Web sites are in bold.
    For example when doing web yahoo mail unread messages must be "BOLD", while read messages shouldn't be now, they are all "BOLD" anything.
    I started in safe mode, thinking that an addon was broken and at the normal search that seemed to confirm that.
    So I disabled all the addon and manually restarted in normal mode, the problem was back.

    I confirmed all was the addon still handicapped and restarted in safe mode once again, fixed... so I disabled both the plugin and extensions... still broken in normal mode.
    At one point I thought it might be the default aspect so I downloaded one that looks like 3.6 and this one broke... again.

    So that's what I'm wondering, what is not loaded in safe mode which is always loaded when you manually turn off all extensions and plugin?

    This could be a problem with the new features related to the police who are trying to use your graphics card. You can enable those here:

    Tools > Options > advanced > [disable] "use hardware acceleration when available.

    (It's one of the things that turn off safe mode.)

    I don't know if you'll see results immediately, or if you must restart Firefox.

  • How can I prevent Pages 5.6.1 selecting the invisible when I change the text in bold, italic, etc. on a new line

    This is starting to annoy me a lot and I have not found something online that will solve this problem.

    Let's say I'm editing a file.

    Now I say "Oh, I need to put a"BOLD"two lines after the second 'Cogito ergo sum'"- so I go to this line and press Cmd + B (shortcut for "BOLD") and in this case:


    He selects the invisible! Now, let's say I write about it

    It disables the "BOLD"! What is the point of this? This makes me press the shortcut and then I have to press the arrow to the left. That you understand it's frustrating because it's a waste of 4 seconds, every time I want to change the style of the last line. And for someone who publishes an entire document, it is VERY frustrating.

    Can someone help me?
    I hope it's a clear description of the problem

    When you use the attribute text keyboard shortcuts, it's a good idea to show invisible, so that you know where click to place your insertion point - before selecting the keyboard shortcut. If you want to use these shortcuts, you must adapt to the way in which the Pages to do things and not try to make it work like MS Word.

    When you select the paragraph marks, the following keystrokes will remove them, right as well as your sense of humor.

  • Safari (OSX) renders Hoefler Text in bold. What gives?

    This does not work on iOS Safari or Chrome or Firefox. It occurs only in Safari 9.0.1 (11601.2.7.2) and the current Webkit nightly. Web pages set up with the police 'Hoefler Text' are rendered in bold rather than normal font weight. I tried, even, explicit definition fonts weight (down, same, 300!) in CSS, without apparent effect. Always "BOLD".

    I saw elsewhere here, in the discussion forum, a spike to a notes page. When I went to this URL, I got "Service unavailable". So I thought I would look on the forum here, to see if anyone else has had this problem. (Meanwhile, I think I'll stick to, say, 'Iowan Old Style'.)

    Web pages set up with the police 'Hoefler Text' are rendered in bold font rather than normal.

    For example?

  • How to make a specific text in Illustrator CS6 Italicize?

    I have problems of specific groups of text italic. I'm working on illustrations for a CD project. I have text lines include the authors of the song, I want to italicize, but I would like to than the other text to stay "regular". Older versions of Illustrator do that, but I have a problem. It is more a feature of the application? How can I do this?

    winklepleck wrote:

    I do CD illustrations for a company that uses Adobe Illustrator templates

    which have been converted into PDF files. When you open this file in

    Illustrator, there are three layers, one for work and two for the

    registration marks and instructions that are disabled on the side. I just

    could not select the text on the layer of the work, or any layer for this

    I don't care.

    It's just what happens in a PDF file. When text tracking or kerning is changed from the default font, then it gets cut into pieces.

    And once again: Illustrator is not a general purpose PDF Editor.

    http://prepression.blogspot.de/2014/09/the-ten-commandments-of-PDF.html

    With regard to the files I and PDF to Illustrator, please watch this video:

    This mysterious does Illustrator - saving files on Vimeo

    In order to solve your problem: you need to paste the text together again.

    Either by copying all the objects (all) text in the Clipboard, then create a text box and paste.

    Or with scripts.

  • Is there a way to have Acrobat Reader to count the number of times a specific text string appears instead of just pointing out their?

    Allows CTRL F to find the text that I'm looking for, but I'm looking not only for them, I'm also trying to count how many times the string appears in the file.  Y at - it a function or one way to do other that manually hit F3 and hoping that I have caught all of them when the program highlights many instances instead of each of them individually?

    Hi nancib92837443,

    You can use advanced search option (CTRL + SHIFT + F) which provides the number of instances for a specific search.

    Thank you

    Abhishek

Maybe you are looking for