qnx adjustable in height list item

Hello

Is it possible to have lines in the list of qnx are adjustable in height? I know the list is the rowHeight property, but it applies to all lines.

Thank you

Zac

No, the design of the list is based on elements of the same size. You will need to build something yourself, possibly based on ScrollPane. Think of it as an empty object with the direction of scrolling associated, designed to allow you to build what you describe by rolling the sleeves a bit.

Tags: BlackBerry Developers

Similar Questions

  • Installed a theme and can not adjust its ' height

    I bought a new computer and installed Firefox. The appearance of the tool bar is very different. I can live with that. I then installed the theme that I had used on the old computer, and the theme shows about 50% of what he did on the old computer. Both systems use Windows 7.

    I just want to adjust the height of the menu so that more of the theme looks as it did in the old computer. Suggestions?

    Thanks for the help.

    Are you talking about a Persona (light theme), which only covers the area of toolbar?

    You can create additional toolbars to get extra space via "view > toolbars > customize" to see more of the Persona.

    You need to put something on a toolbar (drag an item of top space) before closing the window customize because empty toolbars are automatically deleted.

  • Limit the width of the list item

    Hi all

    I use Oracle Application express 4.2.
    I have change a number filed for select list and created a dynamic lov to it.

    the problem is that its width increases dynamically.
    means, if I have a value "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.
    Width of the list will be the same length of the above "AAA...". ».


    How can I limit the width of the list item to a specific value? There is no such property for this it.

    Thank you.

    -Edit the item selection list.
    -Find the section 'Element '.
    -Enter the following value for the parameter "Attributes of the HTML Form element": style = "width: 100px;"
    -Adjust the number of pixels to your needs.

  • Refreshing Flex list item

    Hello

    I'm coding application mini cat in Flex 3.0 with PHP & MySQL.  Can I insert data in TextInput, also I can get data from database, but I have a little problem. I added a timer to update the list item (List item becomes data in mysql). But I could not. I updated the ArrayCollection collection, but it does not work.

    Here are some application codes.

    " < mx:HTTPService id = 'db2' url = ' http://localhost/Flex/list.php "result ="resultHandler (event)"/ >

    [Bindable]
    var datalist: ArrayCollection collection;

    private void resultHandler(e:ResultEvent):void {}
    DataList = db2.lastResult.data.chat;
    lst.dataProvider = datalist;
    }

    < mx:List labelField = "tex" width = "322" height = "216" id = "lst" editable = "false" / >

    What should I do?

    Thank you

    Here is an example very dirty how do, he needs a lot of storage but I leave you for this

    Flex code:

    
    
    
        
            
        
    
        
            
                
                    {dataDump}
                
            
        
    
        
            
                
                    {newMsg}
                
            
        
    
        
        
        
    
    
    

    sendMsg.php

    
    

    getMsg.php

    ".$row["message"]."";
        }
    
    ?>
    

    This is the structure of database as well

    I tested it on my computer and it works quite well, so if it still does not respond, you have something else goes wrong.

    Also, note what happens when you remove the dataDump of the HTTPService.

  • adjust the height of the custom via AS3 component

    The lower class is used as a custom itemRenderer and I want to adjust the height of the VBox to its contents (child), or perhaps the easy way would be just set it to 90%. But it needs to be reset every tempsThe dataProvider is passed.

    SerializableAttribute public class TextDynamicLayout extends VBox
    {
    // .. code removed for brevity

    override protected function measure (): void
    {
    Super.Measure ();
    percentHeight = 90; This does not work as expected
    measuredHeight is MaxHeight = 50;.
    }
    }

    As you name the class TextDynamicLayout, it means you are trying to manage the text back.  It requires transmission explicitWidth the VBox for controls of text before they get measured.  Return text can be any size, so it must have fixed width to determine its height.

    The list classes do not support percentages on rendering engines.  All converters are actually given a size according to the size of the list (or the size of column DG).  You can see how explicitWidth is handled in the default rendering engine by looking at the source for ListItemRenderer.as.

    Note that VBox or any container is made for a cumbersome and slow.  That is why the Flex UIComponent to extend default rendering engines and have custom Measure [] and updateDisplayList() methods.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • list item using xml from a django view


    I'm with django to deliver xml from a postgres database files. I have the connection using a HTTPService. I'm not able to get the XML to provide data to a list item.

    The mxml application is below:

    Quote:
    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:Application
    ' xmlns:MX =' http://www.adobe.com/2006/mxml '
    layout = "absolute" >

    < mx:Script >
    <! [CDATA]
    Import mx.events.MenuEvent;
    Import mx.collections.ArrayCollection;
    Import mx.collections.XMLListCollection;
    Import mx.rpc.events.ResultEvent;
    Import mx.controls.Alert;


    [Bindable]
    private var emails: XMLListCollection = new XMLListCollection();
    [Bindable]
    private var units: collection ArrayCollection = new ArrayCollection();

    private void handleLoginClicked(event:MouseEvent):void {}
    svcAccountLogin.send ({username: "admin", password: "admin"});
    }

    private void handleLoginResult(event:ResultEvent):void {}

    trace (Event);
    trace (Event.Result);
    email = Event.Result.allMails.mail;
    Units = Event.Result.allUnits.Unit;

    }
    []] >
    < / mx:Script >

    < mx:HTTPService
    ID = "svcAccountLogin".
    "URL =" http://192.168.1.100:8080/accounts/login /? = / maillog following / "
    method = "POST".
    resultFormat = "xml".
    result = "handleLoginResult (Event)" / >


    < mx:VBox = "76" x y = "62" height = "100%" id = "loginUserPass" label = "Enter Username, password here" >

    < mx:Button id = "submitLoginBtn" label = "Login" click = "handleLoginClicked (event)" / >

    < mx:List id = "mailId".
    number of lines = "1".
    dataProvider = "{mails}.
    labelField = "mailFrom" >

    < / mx:List >
    < / mx:VBox >

    < / mx:Application >
  • I adjusted the height of the message pane, and now it will not pass (and contains text that overlap in the folders pane!)

    I adjusted the height of the message pane, and now it will not move. Overlaps the text in the files pane, and it is making it really hard see my messages correctly. I tried to uninstall Thunderbird, and reinstall, but the problem is still there. Help!

    Have you tried restarting your computer?

  • Refuses to pages to center the list items correctly (Pages 5.6.1)

    Hi guys! There is a problem with centering of the list items. When I create one of all kinds (numbered for example) and you want to place it in the center of the document, I get this:

    To move it to the right place (and I doubt that it is in fact a true Center) I need to use the list tab and use the left alignment as in the following image:

    Is there a way to make Pages to do things - to move the text with a number when I want to place it in the center of the document?

    Tried everything. Nothing works.

    Thanks in advance!

    [deleted - / viking] Thought I had it fixed, but apparently not.

  • How to adjust the height of xcontrol?

    Hello

    I want to adjust the height of my xcontrol dynamically, but the crux of the xcontrol property provides only the means of time of its container. So, can I put in height of xcontrol? If possible, how?

    Thank you!

    .... Sorry! Solve the problem. It's so easy...

  • How to get the content of the list item selected ListView using CPP?

    Hello

    I do a simple application, get the content of the list item selected ListView using CPP, in the main.qml file, I created a listview using XMLDataModel and I got the selected listview using dataModel.data (row) .attributeNameInXmlfile in qml. content as in the same way the ListView using cpp.please help me I want to get the content of the listitem selected.

    Here is my code

    hand. QML

    import bb.cascades 1.0
    
    Page {
        content: Container {
            id: mainContainer
            objectName: "container"
            // property alias selectedText: selectedTextField.text
            //property alias deselectedText: deselectedTextField.text
            ListView {
                objectName: "listView"
                dataModel: XmlDataModel {
                    source: "models/items.xml"
                    id: model
                }
                listItemComponents: [
                    ListItemComponent {
                        type: "item"
                        StandardListItem {
                            title: ListItemData.title
                        }
                    }
                ]
            }
            TextField {
                id: selectedTextField
                objectName: "selectedTextField"
                text: ""
            }
            TextField {
                id: deselectedTextField
                objectName: "deselectedTextField"
                text: ""
            }
        }
    }
    

    App.cpp

    #include "app.hpp"
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    using namespace std;
    
    using namespace bb::cascades;
    QObject *textFieldSelected ;
    QObject *textFieldNotSelected;
    QObject *list;
    App::App() {
        QmlDocument *qml = QmlDocument::create("main.qml");
        AbstractPane *root = qml->createRootNode();
        list = root->findChild("listView");
        textFieldNotSelected = root->findChild("deselectedTextField");
        textFieldSelected = root->findChild("selectedTextField");
        QObject::connect(list,SIGNAL(selectionChanged (QVariantList, bool)),this,SLOT(changeText(QVariantList, bool)));
        Application::setScene(root);
    }
    
    void App::changeText(QVariantList indexPath,bool selected) {
    
    }
    

    App.HPP

    #ifndef APP_H
    #define APP_H
    
    #include 
    #include 
    #include 
    
    /*!
     * @brief Application GUI object
     */
    class App : public QObject
    {
        Q_OBJECT
    public:
        App();
    public slots:
    void changeText(QVariantList ,bool );
    
    };
    
    #endif // ifndef APP_H
    

    Try this.

    void App::changeText(QVariantList indexPath,bool selected) {
        XmlDataModel *model = (XmlDataModel *)list->dataModel();
        QVariantMap map = model->data(indexPath).toMap();
        // map is your data in QVariant
        qDebug() << map["title"].toString();
    }
    
  • Custom list item changes when you click

    I'm having a strange problem.

    When my list of messages is filled first, she checks a property in the json data to see if the message is 'read' or 'unread '. If it is "no read", it will be a different color than those who are already "read" to indicate to the user.

    It works very well, however I added an action context to the list, and when this action is triggered, I'm changing the message "unread". If the color of the list item to change. This works.

    However, after I changed the color of a single item in the listwhen I do scroll down and down, many elements change color. I think it has to do with the rendering of the list of recycling.

    This behavior does not occur after that list first initializes. Regardless of the colors have been queued to initialize their place. Only after that I have an amendment to one of the elements in the list, things go crazy when I scroll. I hope I'm being clear.

    How can I stop this from happening?  This is the code that changes the color of the label in my custom list item.

     listItemComponents: [
                                ListItemComponent {
                                    MessageListItem {
                                        id: messagesListItem
                                        contextActions: ActionSet {
                                            ActionItem {
                                                title: "Mark Unread"
                                                onTriggered: {
                                                    if (messagesListItem.isNew == false) {
                                                        var selectedItem = ListItemData;
                                                        messagesListItem.isNew = true; //property of list item is changed to unread
                                                    }
                                                }
                                            }
                                        }
    

    And inside the MessageListItem.qml

    property bool isNew: ListItemData.data.new
    
       onIsNewChanged: {
            if (isNew == true) {
                subjectLabel.textStyle.color = Color.create("#FF4500");
            } else {
                subjectLabel.textStyle.color = Color.create("#000000");
            }
        }
    

    Please let me know if you have any questions, any help or suggestion is appreciated. Thank you!

    Hello!

    I think that it doesn't because you are not changing 'new' dataModel element variable. In addition, assigning directly control isNew breaks property DataModel is bound to it.

    It should work if you change the dataModel instead.

    An important point to note, however, that it is not possible to change the individual variables of dataModel point. You need to replace the entire item. The code example for GroupDataModel: (not tested, so may require tweaks, tell me please if you need help in getting this work):

    onTriggered: {
      var selectedItem = ListItemData  // get a copy of dataModel's item
      selectedItem.new = !selectedItem.new  // modify it's property
      messagesListItem.ListItem.view.dataModel.updateItem(indexPath, selectedItem) // update the model
    }
    

    For ArrayDataModel, the function is named differently.

    In addition, this line seems suspicious:

    property bool isNew: ListItemData.data.new
    

    Probably, it should be replaced by this one:

    property bool isNew: ListItemData.new
    
  • TextStyle for description &amp; standard list item status

    Hello

    Is it possible to have a textsyle custom (different fonts, size, color) to use in the standard list item. Currently, he has a gray color, and I have a grey'ish of background, so it does not work properly.

    I'm more interesting by changing the color of the part of the State.

    I used javascript to includetags, but tags is not the kickoff, instead of this, I see"... "as a text.

    Thank you
    S.

    I found the solution, so the key is to use textFormat as 'TextFormat.html' and then usetags in the text.

                            StandardListItem {
                                title: ListItemData.stockName
                                description: listS1Container.description()
                                status: listS1Container.status()
                                textFormat: TextFormat.Html
                            }
    

    in the container, I have a function, for example the status:

                            function status(){
                                return "TEST "+ListItemData.name + ";
                            }
    
  • Color change to display list items

    Is it also possible to change the text color of a list item based on an XML file?

    Brilliant. I also realized that all this should be in a CustomListItem. Thank you very much, Zmey

  • List items are overlapped on popup screen

    Hi all

    I'm developing an application in which i use a popup screen and I have an ist of all data on the device (memory a sd card in the device). I show these data in a list and with a few images and checkboxes. My problem is that when I scroll or scroll through list items upward, are overlapped and yet when I scrolling to a particular element, only this element comes to its normal state.

    And this behavior is only broadcast on the devoce but when I run the same code on Simulator it works very well without any problems!

    Why this is happening? Any idea?

    Help, please!

    Thank you..

    Thnx for your help...

    My problem is solved...

    I was doing loads of operations under oaint method...

    Thank you very much...

  • How to adjust the height of a separator?

    Hello

    I have a scenario as to display three tabs horizontally, developed that display different fields.

    Kindly help me

    1 adjust the height of the vertical line separator.

    2 Add listeners to tune-up for the tabs horizontally.

    3. to select a tab on the selection by changing the background color.

    4. setting the focus to a text field, say search after selecting a tab.

    Thanks in advance.

    ~ SK

    OK, I understand, but I suggest if you are totally new, you learn what you both and your knowledge.  You also start slowly.  So for this thread, let's focus on the variable height SeparatorField.

    Start another Thread for each individual question, ensuring that you explain in detail what you are were trying to do and what is happening.  If you say something like "when I change the update of a text field its new adding another set of fields' this is clearly a bug in your code because standard code doesn't do this, then we will need to see your code.  But do give us all your code.  Try to reproduce the problem with a very small piece of code (10 or 20 lines maximum).  You will often find that when you start from scratch, try to re-create the problem, you find your bug.

    But in this Thread.  Since a variable height that separatorfieldof does not exist in the API, you must do it yourself.

    Here is a post that I think will provide you with the details you need for this:

    http://supportforums.BlackBerry.com/T5/Java-development/nested-HorizontalFieldManagers/m-p/400857#M7...

Maybe you are looking for