Double line objectlistfield

I have an objectlistfield which shows a bunch of selectable items that can be selected. The problem with this is that each text is very long and needs at least two lines and the objectlistfield seems not to support this feature. It cuts just text.

I tried increasing the height of each line, but the text does not change its format. I read that possible solutions would be to replace the "drawListRow" of the objectlistfield but I can't figure out how to do it properly.

I'll appreciate any type of help.

First, you must set the line height. Usually, I take double the font size and add 2 for good measure.

Now you can adjust the drawListRow. You get a parameter which determines where you are in your current line. drawText takes x and y as input. You can draw the first line by using drawText(5,y,text) and the second using drawText (5, y + listField.getRowHeight / 2, Text2). You must take care of a linebreak correct etc, I usually do with a StringTokenizer.

Tags: BlackBerry Developers

Similar Questions

  • How can I disable the function where my mouse over the double line that then creates a pop-up window?

    When I hover over a word or an expression that has a double line below, a suggestion box comes with a link that takes me to a site that is in regards to the word or phrase that I flew over.

    Hello kayjay76, this looks like a problem caused by some sort of adware on your pc. Please go to firefox > addons > extensions and remove any suspicious entries (toolbars, the things that you have not installed intentionally, I don't know what purpose they serve, etc.). also, go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software you have in place and various other tools such as the free version of malwarebytes & adwcleaner.

    Remove a toolbar that has supported your Firefox or the homepage search
    Fix Firefox problems caused by malicious software

  • Aeromy computer has keywords with a double line under them, how can I get rid of them

    my computer has keywords with a double line under them, how can I get rid of them

    Hi Pete McDowell,.

    Glad to know that the problem is solved. Let us know if face you any problems with Windows in the future.

  • How to draw and edit double lines with Adobe Illustrator?

    I need tot draw road maps. This should be easy with the pen tool, but my problem is that I can't find a way to draw a double line with this tool. I've seen a lot of models and fancy border styles. Some do not have the lines double or even quadruple, but the problem is that they have an offset from the vector line and the space between the two lines (the edges of the road) cannot be filled. Somewere I also found a few pens called "Double line 1.1' to ' Double line 1.6' but they also had an offset from the vector and I could chance not regardless of the size of the lines and the interval between them."

    I'm looking for is a way to draw two lines in parallel and have tot option fill out the space between the two with a color or even a model.

    The color and the size of the lines should be variable to distinguish between several types of road.

    Y at - it a game's existing pencils for this? It would be nice to be able to attract not only the roads, but also railways and rivers!

    I'm certainly not the first person who needs to do that?

    I use HAVE version 6

    Here is a picture. You can adjust the color of each stroke by selecting the line in the appearance Panel, and then change the color in the little box. Your best bet is to save the appearance as a graphic Style, so you can apply it to any line in the future. Not necessary for a brush and easier to change.

  • Double line

    Hi all

    I'm using fireworks 8. I would like to explain a rectangle with double contour or double line. I can't find this type of stroke under 'stroke options' on the property Panel. Any help in this matter is much appreciated.

    thozhayan;
    Edit/change extension/path Strokes? -Tom Unger

  • How to make the double line things go away when I read web pages, that what happens in front of him just some words that are double line under the word and then you will see an announcement when the cursor passes through the word.

    He double blue line under a word like POWER or Medicare, etc.

    It is contextual advertising. You should be able to eliminate one of the following. I suggest you have a file hosts and Adblock Plus with EasyList filter subscription.

    Extension "Adblock more."

    You also need the filters as "Easylist" subscription so after installation of
    with the right button on the icon of the status bar and choose 'Préférences'
    then on the filters menu-> Add-> EasyList subscription
    https://addons.mozilla.org/firefox/addon/adblock-plus/ (608,3 KB)

    Blocking unwanted Parasites with a Hosts file

    Blocking is at the level of the system
    http://www.MVPs.org/winhelp2002/hosts.htm
    View/use the HOSTS offered above as a plain text file
    http://www.mvps.org/winhelp2002/hosts.txt (596KO)
    If you add one of your own you will have to keep in mind
      and manually include the online hosts.txt file below your own.
    

    Hosts file is more oriented to protect your system against the really bad
    or things spread by its host name. Do not confuse with no antivirus protection more.

    Please mark "resolved" a response that will better help others with a similar problem - hope it was her.

    BLOCKED TOO - with Adblock Plus - no problem:

    With the ease of blocking items in Adblock Plus occasionally, you can be too aggressive and suddenly disappear all over the page. Adblock Plus provides functionality to help you know more precisely what you block with on a page.

    As seen in the Preferences ("Ctrl + Shift + F"), ABP maintains separate groups
    -The filters that you created yourself (rules of Exception, blocking rules, element hiding rules)
    -Separate groups for each subscription filter

    The report of blockable items ("Ctrl + Shift + V"), it's where you go to see what is blockable, what is blocked and if blocked what the rule is on the line with the mouse hovering. It would also enable the source, so you can see if it was your rule. The right mouse button opens a context menu with options. I show the columns are {address, filter, type, State} selected to the right of the headings. I have sort by State so block appear in red at the top.

    You can use the report to make the changes you need.
    We'll see changes you make in the preferences.

  • Highlight line ObjectListField

    How can I change the highlighted line to have just a red border around it?

    This means that the entire line fill area should not be highlighted. Only a red box around the current line.

    Thank you

    Override the drawFocus method

  • How to detect a selection of lines ObjectListField?

    I have a list of 20 or if things defined in the ObjectListField.  I want to detect when the user taps an item with your finger (on the storm and other devices of contact aware to follow), or scrolls to the item and click the trackball (like on the curve or "BOLD").

    I can't find documentation for this.

    Thank you.

    Hey

    Discover navigationClick method...

    All you have to do is to implement TrackwheelListener and then check the navigationClick method...

    Paul

  • Double line, need to remove?

    Hello to everyone!

    I have a problem, I've created a style, but the text in this style removes a line...

    I add a page to, to make things more clear,

    the first line is a style that I created that deletes a line,

    the second line is another style that does not drop a line, and this is my goal,

    any suggestions?

    Thank you!

    Both are defined to align to baselinegrid. In order to work the baselinegrid both need to have the same ad leader. If a style has a leader more than the baselinegrid he will skip a line.

  • Compatible double line corrugated in Illustrator

    I'm trying to recreate the image attached in Illustrator by using the effect of zig zag, but I fight. What I'm trying to achieve is two distinct forms wavy line that I can fill with two different colors so that they look like the attached image, but the space between the lines is a solid color. I hope this makes sense.

    wavy lines.JPG

    Hi Drina,

    How about something like this:

    Edit: By following this video and you get to the end of direct selection tool make sure you do not select the end points, otherwise you will not be able to create corners properly.

  • Double line with aggrigate function problem

    I want to see in my DB duplicate rows
    This query works fine

    SELECT COUNT (*),
    Description,
    fk_patprot,
    IsConfirmed,
    actual_schdate, fk_visit
    OF sch_events1
    Description of GROUP BY, fk_patprot, isconfirmed, actual_schdate, fk_visit having count (*) > 1


    But the thing is
    I want to see the event_id between the result column, event_id is not null and unique
    If I execute this query then output will be empty, said 0 selected lines.
    SELECT event_id,
    Count (*),
    Description,
    fk_patprot,
    IsConfirmed,
    actual_schdate,
    fk_visit
    OF sch_events1
    GROUP BY description, event_id, fk_patprot, isconfirmed, actual_schdate, fk_visit
    Having count (*) > 1


    What is the alternative for this request? I want these column in a query.

    EVENT_ID | DESCRIPTION | FK_PATPROT | ISCONFERMED | ACTUAL_SCHDATE
    1. AA | BB | CC | DD
    2. AA | BB | CC | DD
    3. QQ | QQ | QQ | QQ
    4. QQ | QQ | QQ | QQ
    5. QQ | QQ | QQ | QQ

    Thanks in advance

    Published by: Navneet Singh on July 22, 2011 08:34

    Hello

    One way to solve this problem is to use the function SUMMARY, rather than the aggregate COUNT:

    WITH     got_cnt          AS
    (
         SELECT     event_id
         ,      description
         ,     fk_patprot
         ,     isconfirmed
         ,     actural_schdate
         ,     fk_visit
         ,     COUNT (*) OVER ( PARTITION BY   description
                         ,            fk_patprot
                         ,          isconfirmed
                         ,          actural_schdate
                         ,          fk_visit
                          )     AS cnt
         FROM     sch_events1
    )
    SELECT     *
    FROM     got_cnt
    WHERE     cnt     > 1
    ;
    

    Most of the functions of aggregation (including COUNT) have analytical equivalents, which can produce the same results without causing the disintegration of all results in one line per group. The PARTITION BY clause from analytical functions corresponds to the GROUP BY clause in the aggregation queries.

  • Include styles double line in libraries?

    Is it possible to add a line style, consisting of a both a base and a top layer in a library, or must include the two lines in the library individually?  (see attachment)DoubleLineStyle.JPG

    You have the trunking and no appearance of 'group' applied.

    Graphic Styles are actually 2 States - objects and groups. Unfortunately there is no way of knowing, looking at the Panel, what styles are which.

    You don't need two lines, one line with an applied appearance.

    Drag that to the graphic Styles Panel and it will work very well.

    If you really want to use two lines, and then do a brush model out of them instead.

  • Double line nav don't line up properly - css prob?

    They want a double row of nav links at the top of the mast and I can't seem to align correctly.  I changed everything I know in css and nothing works.  It must be something simple, just can't find it...

    Any help would be greatly appreciated!

    (html and css files attached)  Thanks in advance!

    Give this style a try:

    .container {
         width: 770px;
         margin-top: 0px;
         margin-right: auto;
         margin-bottom: 0px;
         margin-left: auto;
         height: 4em;
    }
    
    #masthead ul {
         text-align: center;
         padding-top: 10px;
         padding-bottom: 10px;
         list-style-type: none;
         clear: both;
    }
    
    #masthead li {
         display: inline;
         font-size: 80%;
         padding-right: 0px;
         padding-left: 0px;
         float: left;
    }
    
    #masthead a {
         color: #FFF;
         text-decoration: none;
         padding-right: 0px;
         display: block;
         text-align: center;
         padding-left: 0px;
         width: 153px;
    }
    
  • Captured to eliminate "double" lines

    Hello

    I have this script that does give me the output I need, can you help me how I can change this script!

    Thanc you much.

    Script
    SELECT DISTINCT
    s.system_id "SYSTEM_ID".
    , decode(CONTRACT_TYPE_ID,104,'RPC',204,'RPC',1204,'RPC',10032,'RPC',null) 'CPP '.
    Of s system_view
    client c
    contract ct
    where s.bo_cust_id = c.bo_cust_id
    and s.OPCO_ID = c.OPCO_ID
    and c.CUSTOMER_ID = ct. CUSTOMER_ID
    and ct.status = '1'
    order by 1

    So he gives
    SQL & gt; /

    SYSTEM_ID CPP

    10000
    10000 CPP
    10001
    10001 CPP
    10002
    10002 CPP
    100022
    10003

    8 line (s) s & oacute; selected & eacute; e (s).

    The result I need

    SYSTEM_ID CPP

    10000 CPP
    10001 CPP
    10002 CPP
    100022
    10003

    Published by: vittel on November 18, 2008 12:31

    Published by: vittel on November 18, 2008 12:32

    Try...

    select s.system_id "SYSTEM_ID"
    ,max(decode(CONTRACT_TYPE_ID,104,'RPC',204,'RPC',1204,'RPC',10032,'RPC',null)) "RPC"
    From system_view s
    ,customer c
    ,contract ct
    where s.bo_cust_id=c.BO_CUST_ID
    and s.OPCO_ID=c.OPCO_ID
    and c.CUSTOMER_ID=ct.CUSTOMER_ID
    and ct.status='1'
    group by s.system_id
    order by 1
    
  • Can I display a double line of bookmarks on the bookmarks bar?

    Foxfire 31.0, XP Pro, now I can get 7 items in the bookmarks toolbar, I about 10. Thank you.

    Try this add-on - https://addons.mozilla.org/en-US/firefox/addon/roomy-bookmarks-toolbar/

Maybe you are looking for