The height of the custom selector.

Hi all

I wanted my fall down to have multiple lines in a single option.

But this is not possible, so I implemented the custom selector and put 2 in the same tag,.

so that I can divide my text string and show it on them, but once again the height of the custom selector does not develop.

Is it possible to increase the height of a line of the custom selector?

Help, please.

The screenshot of my production is attached.

Here's what I do in createItem()

VisualNode * PickerItemProvider::createItem(Picker* pickerList, int columnIndex)

{
Container * returnItem = Container::create () .background (Color::Yellow);

returnItem-> setPreferredHeight (200);

Label * lineOne = Label::create () .objectName ("desc");
lineOne-> setMultiline (true);
returnItem-> add (lineOne);

Label * lineTwo = Label::create () .objectName ("asc");
lineTwo-> setMultiline (true);
returnItem-> add (lineTwo);

Return returnItem;
}

Tried adjusting using preffered height/width and page layouts.

See the link below.

https://www.dropbox.com/s/y8mplfiw6741chd/assets.zip

Create a sample project.

Replace the active unzipped downloaded folder with the sample a...

Test it and make customization as a result

Tags: BlackBerry Developers

Similar Questions

  • line added to the custom report selector

    I made a report with some tables and I want to add the line with all the lines selector. Is that someone has an idea how to add line selector in the custom report


    Concerning

    Published by: Adi on January 20, 2010 23:21

    ADI
    Change the select list of the query of the report to add a "checkbox" as shown in the example below

    Select
    other_columns...
    apex_item.checkbox(1,'row_identifier') Row_selector
    table

    CITY

  • What is the CSS selector for the popup bubble when flat on a URL?

    I don't speak of popup is described here:
    https://support.Mozilla.org/en-us/KB/what-happened-status-bar?ESAB=a & As = AAQ

    I have a dark theme for Firefox, but it remains white. I would use custom CSS to turn it is black with white text (Chrome which comes, I migrated to ala), but I can't find the correct selector for it.

    Thanks in advance!

    I use this code:

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    statuspanel {max-width:90%!important}
    .statuspanel-label {background:#FF9!important;color:black!important;font-family:"DejaVu Sans Mono"}

    Add code to the file userChrome.css below default @namespace.

  • How to select the resolution of the PC to the customer for the execution of LV App?

    Hello

    My GUI is 1250 x 812. (assuming that it is the value of a pixel. This is measured using the width and height-> resize option object).  What resolution PC should I offer for the customer who is going to run this GUI?

    Thank you!

    1280 X 1024.

    List of common resolutions

    SXGA (1280 x 1024)

  • Question regarding setExtent and getPreferredWidth for the custom field

    I am trying to understand the difference between getPreferredWidth and setExtent, which relate to the width of a custom field.

    I create a field that may be greater than the width of the screen. The field is made up of cells (for example columns and lines or cells, such as a table). The cells contain text, shapes, lines, color, etc. When I display the field I only paint the visible columns on the screen and allow the user to use the trackball to accomplish the columns out of the screen.

    At present, getPreferredWidth returns the total width of the field without all the empty columns, is longer than the width of the screen. I use the same value in setExtent for width. GetPreferredWidth must return the size of the field that is painted on the screen - the total width less the width of the columns out of the screen? I have the same question about setExtent - width either in total, longer than the screen width or the width of the part of the field that is painted on the screen?

    If I use the width of what is painted on the screen or the other of these methods, then the width changes when the user scrolls through the field. As the user scrolls, I calculate the number of columns will agree to a width of the screen and paint these columns. Is it a problem to have the PreferredWidth and the setExtent change width? I read that setExtent is called only when the Manager sets this field, so that the changes will not be recognized.

    It seems to work in two ways in a few simple tests, but I was just curious as the value of width that is right.

    Thank you!

    Mark

    When a field has changed in a way that requires the update of the screen (for example, after scrolling offset changes), simply call invalidate() from this area. That will eventually lead to paint (Graphics) for the field. At this point, you return the update field. (If only part of a field - as a single cell - needs to be updated, there invalidate() versions that accept arguments where, for efficiency, you can limit the update for just this part.)

    If I understand your needs, you can achieve the effect desired in the paint method. You can use the current dimensions of the field, the cutting of the graphics area, and your internal roll compensates to decide what to paint and what to delete. Let your custom field leave white space where you decide of doesn't make is not part of a cell. There is no need to change the scope of the field.

    If you go about it by changing the dimensions of the field, and then you ask the system to play much more work he has to do. If the custom field is the only field on the screen, it won't make much difference in the behavior (although there may be performance). With more than one field, it can be weird effects. For example, suppose that your custom field is one of several fields in a HorizontalFieldManager and you change the field width. When the HorizontalFieldManager recalculates its own layout, it will change the horizontal position of the fields to the right. The effect on the user, I think, would be really confusing: as the custom field parade, parties to the right of the screen could bounce left and right as the changed width field. I can't imagine that's what you want.

    Here's another way to think about this: absent some bit of style, your custom field would prefer be exactly wide and high enough to show all without scrolling. So the width and height would be based on adding the appropriate cell widths and heights, regardless of what actually is on the display. (It's also a long time that you do not have something fanciful.) If the optimum height is a function of the width available - as with sheathed on the line of text - you would implement this logic in the layout method. You then have no use for autonomous preferred width and height).

  • Two sliders in the custom field definition

    Hi guys,.

    First of all, I want to thank all those who helped me to this day. This forum has been essential for blackberry dev work I do, and I would be screwed without you guys. That being said, I'm having a problem. I install a custom like this text entry field.

    (1) creates a vertical field Manager, assigned a background and resized image with setExtent(). (works fine)

    (2) created a new type of field and inserted in the vertical field Manager to make native look (almost works)

    The problem I have is that two sliders are appearing. Cursor #2 is dynamically updated as it should be, but the #1 cursor seems to be a "flawed slider. Please see the image below for details.

    The custom field is defined using the following code. If I remove the custom field, or cursors comes, so I am positive that it is the source of the problem.

        public class JustifiedEditField extends HorizontalFieldManager implements FieldChangeListener {
            BasicEditField ef;
    
            public JustifiedEditField(long style) {
                super(USE_ALL_WIDTH);
                ef = new BasicEditField(style) {
    
                    protected void onDisplay() {
                        setPosition(10, 17);
                        update(0);
                        //invalidate();
                    }
    
                    protected void update(int d) {
                        super.update(d);
                        setPosition(10, 17);
                        //invalidate();
                    }
    
                    protected void paint(Graphics graphics) {
                        graphics.setColor(Color.WHITE);
                        getFocusRect(new XYRect());
                        drawFocus(graphics, true);
                        super.paint(graphics);
                    }
    
                    protected void onUnfocus() {
                        invalidate();
                    }
    
                    protected void onFocus(int direction) {
                        invalidate();
                    }
    
                    /**
                     * Intercepts ESCAPE key.
                     * @see net.rim.device.api.ui.component.TextField#keyChar(char,int,int)
                     */
                    protected boolean keyChar(char ch, int status, int time) {
                        switch(ch) {
                            case Characters.ESCAPE:
                                // Clear keyword.
                                if(super.getTextLength() > 0)
                                {
                                    setText("");
                                    return true;
                                }
                        }
                        return super.keyChar(ch, status, time);
                    }
                };
                add(ef);
            }
    
            protected void sublayout(int width, int height) {
                super.sublayout(width, height);
                setExtent(width, 57);
            }
    
            public BasicEditField getEditField() {
                return ef;
            }
    
            public String getText() {
                return ef.getText();
            }
    
            public void setText(String value) {
                ef.setText(value);
                invalidate();
            }
    
            public void setChangeListener(FieldChangeListener changer ){
                ef.setChangeListener(changer);
            }
    
            public void fieldChanged(Field field, int context) {
                invalidate();
            }
        }
    

    I am totally stuck on this issue, any help would be really appreciated. TIA!

    I came up with an alternative solution. It turns out that I can use a transparent border to set the offsets to where the edit field must be located within the input Manager; thus eliminating the need to use setPosition.

  • Create the custom using elements of Page filter

    Hello

    I am trying to create a custom of sorts using page elements filter date picker.

    I want a report to have a where clause clause that says something like this:

    WHERE the table. Date >: P1_Date1

    AND the table. Date..: P1_Date2

    I need to do it this way because I need to have another area that displays the weighted average on the basis of 2 of the columns in this table set and I was unable to find a good way to make a weighted average using the interactive report options.

    The question just the other side is that I can not simply refer text buried user to a static source page element. I used radio groups before where the change they had an action "refresh and set the ' enabled me to make reference to them, but I don't see how to do something like this with the dates selectors.

    Any ideas on how I should go about it?

    EDIT:

    I've included an example of what I am trying to accomplish.

    Link- https://apex.oracle.com/pls/apex/f?p=30262:101:102700562633003:

    Username - TESTER

    PW - Tester

    JaReg wrote:

    Partitions tab person and date shows the page that I create. Currently the regional report and the Middle regions "Totaled" are implemented using the Radio top unit

    I want to do the same thing with the dates selectors, but previously I was unable to get the selectors of dates static to use in a sql requpete as I can with the Group of radio buttons.

    I created the page 586 as a copy of the original, with the following changes:

    1 has changed the Page Action sélection P586_PERSON point filter parameter of redirection and set the value None.

    2. added explicit Format mask to DD-MON-YYYY to filter items date picker.

    3. change the source of the region of results reports to:

    select
        *
    from
        scores s
    where
        s.person = :p586_person
    and s.scoredate between to_date(:p586_mindate, 'dd-mon-yyyy') and to_date(:p586_maxdate, 'dd-mon-yyyy')
    

    4. define the region of results reports the Items property of the Page to be sent to P586_PERSON, P586_MINDATE, P586_MAXDATE. What causes the values of these elements to present before a partial page refresh is performed on the region, making them available in session state when the content of the region is updated.

    5 created a dynamic change on the region of filter action:

    Event: Change

    Selection type: Region

    Region: Filters

    Action: Discount

    Fire on Page load: NO.

    Selection type: Region

    Region: Reports of results

    The region of IR report Score is now automatically updated each time that one of the elements in the region of filters are changed. That leaves the data region totaled. As a static content area may not be automatically updated by a dynamic action of PPR, and I'm not so sure as rules that must be used to apply filters to the values of the region. The same range filters in person and date should apply to the total values as are used in the report?

  • Help present interactive content to the customer?

    Hello!

    We present the first version of website, in HTML of the Muse, to the customer, and I would like to hear suggestions on how to present the interactive elements which (I think) cannot be built on Muse.

    Complex parts are made with images that simulate the final appearance.

    There is, for example, a step in a page "build your project" in which the user will be presented with three choices of radio button within a box with other content, when they choose one of them, the box resizes its height down and the content again matches inside, create a new 'open' by clicking on the option button.

    Once that there is no way for this build graphically with the help of Muse, I would like to hear suggestions on how to present it. I thought of three options:

    1. HTMLing steps
    2. Insert a GIF animated this work
    3. A video of this work insertion

    Which would be perhaps the best to show the client in your opinion? You have another idea?

    It is a very legitimate question, but right now, Adobe has no "Visual" tool that will help design you a model 'live' for these interactive content, move and collapsing and everything. Tools that come to mind to build a Visual representation of the work, would be Dreamweaver, Animate (the old Flash) or even After Effects (indeed, a video). But these tools are heavy, and especially to animate and After Effects, the designer/developer/operator needs to know the restrictions of design of the web environment, before embarking on any fancy flashy designs.

    Adobe also carefully entering the arena of interaction with their new Design experience Adobedesign tools. This is a brand new application (give it a try, but also a break), specialized in the creation of the design app mockups and prototypes without code. It is intended for the design of the application, but it can be help you too, making a few clever Webdesign as well ;-)

    As a last but not least use, I would advise Tumult Hype, a web animation tool not Adobe. Just like abandoned Adobe Edge animate, it's easier to be used by designers, to create models of more complex interactions. The exported file .oam or HTML can be placed in native mode or as an iframe in Muse. Of course, you can also try using Adobe Edge animate, for as long as it won't break...

  • Alignment of child in the custom component in Flex 3

    Hello

    I am newbie to Flex and glued on the essential point.

    I'm trying to align the children in a custom as Center horizontally and vertically from the Middle component but the result is not harmonizing at all.

    It's my custom componet "LoadingPanel.mxml" under the component package which children I want to focus.

    <?xml version="1.0" encoding="utf-8"?>
     
    <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
                 width="100%"
                 height="100%"                                   
                 title="DCP v1.1" horizontalAlign="center" verticalAlign="middle">
         
         
         <mx:Panel backgroundColor="#BB3030" width="300" headerHeight="15">
               
               <mx:ProgressBar id="bar"
                                    indeterminate="true"
                                    labelPlacement="top"
                                    minimum="0"
                                    visible="true"
                                    maximum="100"
                                    label="Loading..." 
                                    direction="right"
                                    mode="manual"
                                    width="100%"
                                    trackHeight="14"
                                    
                                    color="#FFFFFF"/>
         </mx:Panel>
         </mx:Panel>
    
    

    Here are my main application where I use this custom component

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:component="component.*">
         <fx:Declarations>
               <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <component:LoadingPanel/>
    </mx:Application>
    
    

    I also tried to give the alignment in the custom component instantiation.

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:component="component.*">
         <fx:Declarations>
               <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <component:LoadingPanel horizontalAlign="center" verticalAlign="middle"/>
    </mx:Application>
    
    

    I'm sure that there must be no way to do it, but it's hard luck for me.

    Thank you

    Mac

    Jin

    pls put your control on the box and set the property of the box horizontalAlign="center" verticalAlign="middle" , may be it will be wrk.

  • the custom words does not appear in my iPhone

    Hello

    I joined my iPhone IOS 10 6 more and I noticed that the custom words does not appear in my iPhone, even if I have them in my iTunes library. I signed up with the same Apple ID on all devices. Very few of them, I can access the lyrics in my phone, but not all of them (as he used to be in iOS 9)

    any help is appreciated.

    Thank you

    Ahmed

    I downloaded a program on my Mac (no app store unfortunately) called "get lyrical". automatically add lyrics to iTunes. Then in iTunes file > library > Update music library to iCloud. doing this during the last 20 minutes and so far it seems to work.

  • How to add the custom search engine?

    Hello
    Firefox is a great browser especially for those who care about freedom and privacy. I would like to know why it is not possible to specify the custom search engine that you were able to do in the latest version of Firefox. I want to use the search engine google with https://search.disconnect.me/ which offers the possibility of anonymous research. I know that there is a plugin https://disconnect.me/search, but is not very comfortable with respect to the standard search bar. Thank you

    I read the solution proposed here https://support.mozilla.org/en-US/kb/use-search-bar-firefox-and-manage-search-engines#w_add-a-search-engine but in 36 of Firefox does not work

    TypeError message probably explains why you could not add the page of Mycroft search engine initially.

    When I search this exact error in Google, only that rolled up from July 2013:

    As long as the 'Integration of office of Unity 2.4.6' plugin is enabled I couldn't add to Firefox search engines.
    https://bugs.Launchpad.NET/Ubuntu/+source/unity-Firefox-extension/+bug/1202383

    Note: this option is not a Plugin, this is an Extension and available on the page Add-ons with other extensions.

  • How can I clear the browser history when you use the custom settings for history?

    When my history option is set to "Use the custom settings for history", the options page has no link to "clear recent history". There was formerly a menu option, but that seems to be gone now with Firefox 29. Is my only option to access the dialog box, clear the history all to change the historical option to history to remember and then change it back? Is there another way to access the option erase history all?

    I think you can get the menu bar by pressing the ALT key. If you want to return permanently, click View > toolbars and check menu bar.

  • Security, I tried the custom settings, I went back to remember history, but key to REJECT 3rd-party cookies disappeared, now many 3rd party cookies is followed.

    After trying a story custom in the Section for the protection of personal information (not security as the first mentioned section), I went back to "remember history" but now, there are NO button to click to prevent the 3rd party cookies to enter computer. Now, a lot of 3rd party cookies appear very fast. I want the button to avoid 3rd party cookies returned so that I can use.

    Note that the choice "Use the custom settings for history" allows you to see current history and cookies settings, but by selecting that choice is not to make changes to the parameters of the history and cookies.

    Firefox displays the choice "To use the custom settings for history" as an indication that at least one story and cookie settings is not the default to make you aware that the changes have been made.

    If all the history settings are default, custom settings are hidden and see you "conservation rules: (never) don't forget history."

    "Never remember history" means that private browsing is active and "Always use private browsing mode" Gets a check mark.

  • My Muse site will not display the customized html images that work in chrome?

    My Muse site will not display the customized html images that work in chrome? Here's my url www.simplesites.com.au.

    Works fine here on Linux.

    Note that the uploads has 'ads' in name and come from simplesites.net.au, so be sure that content blockers not get triggered.

  • I can't create the custom toolbar

    Whenever I try to create the custom toolbar, it disappears after you restart Firefox. Can you suggest me a solution for this?

    Thank you!

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do not click on the reset button on the start safe mode window or make changes.

    What security (firewall, antivirus) software do you have?

    Some security software has virtualization or sandbox features that can cause problems to protect and restore files in the Firefox profile folder.

Maybe you are looking for

  • Toshiba 39AL900A: the backlight photo changing from light to dark and back

    I recently bought a [Toshiba 39 "AL900A | http://www.mytoshiba.com.au/products/televisions/led-backlit-tv/al900a/39al900a], when I have my computer hooked up to him, I noticed a problem with the image. When a dark scene appears on the video im watchi

  • Apple Migration Assistant problem - PC to iMac

    Trying to transfer files from old PC to the new iMac via the Migration Wizard with an Ethernet cable. Succeeded with the files in the c: on computer but no pictures and documents of a user. It connects very well, says it is mutating and when it's don

  • implementation of a function of time transfer real Labview program

    Hello I want to spend my control signal U through the 146 function /(S+276) for U_filtered How do I? I tried a low-pass filter, but I have the same results in comparison with Matlab. I mean I want to have: U_filtered = 146 /(S+276) * U. I have attach

  • Add Server 2012 R2 Server Manager servers dialog box problem

    I have a problem in 2012 R2 Server when you add a remote server to all server management interface.   Using the dialog box add servers to add a workgroup server (no configured DNS server), I added the problem of server using the IP address.  A dialog

  • Downloaded programs to clean/speed up my computer!

    I downloaded a few programs of www.cleanmypc.com, after analysis, I had 783 errors, so I clicked on errors, they clicked BUY NOW AND FIX ERRORS. or remove program and keep errors!, so now I have all these errors and a very slow computer and now need