Capture, click the item inside the list itemRenderer

Hello!

I have a list that opens a window when an item is selected.

However, I also have an image of 'delete' in the upper right corner of the component of the itemRenderer that when you click on should do something else.

How can I make sure that when the image is clicked the click does not select the list item, and when the user clicks anywhere else, it is by default in the selection of the item in the list.

Thank you!

You will not find a simple way to alter the events of the list control. You are better off simply switch to MouseDown.

Tags: Flex

Similar Questions

  • Unwanted scrollbar in the list Itemrenderer. Help, please!

    I created a list with the variableRowHeight and wordWrap, both the value 'true '.

    The output looks very good. But the problem came when I scroll the list with the mouse to scroll ( NOT by dragging the scroll bar).

    Take this list I found on the internet (http://blog.flexexamples.com/wp-content/uploads/Tree_variableRowHeight_test/bin/main.html) for example.

    First, I opened the folder "Para 4" and rollovered
    the mouse to the list item "Morbi tincidunt, sapien in sollicitudin.....".

    http://lh6.ggpht.com/_oR_3tRJydtg/SfcURruIJvI/AAAAAAAAAE0/-Bl_pK3uwug/s720/1st.JPG

    Then scroll the mouse-scroll, and the following result would happened:
    http://lh5.ggpht.com/_oR_3tRJydtg/SfcURo3fvsI/AAAAAAAAAE8/CVGuePJkNXA/s720/2nd.JPG

    The first line in the listItem has disappeared!

    Looks like it's a bug, and I don't know how to solve this problem.

    The listItem scrolling as well as my list, which is quite strange for me and my users.

    This is a really serious problem for me! Help, please!

    Thank you.

    Make sure the renderer textfield is large enough to prevent the text scrolling

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

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

  • Check the name of the class to list ItemRenderer

    Hello

    I'll put the itemRenderer of a Mobile spark list as follows:

    var ir:ClassFactory = new ClassFactory (MyItemRenderer);

    IR. Properties = {etc. etc..};

    list.itemRenderer = ir;

    How can I check if the list itemRenderer is MyItemRenderer or at least a class name string comparison?

    Thank you.

    The following should draw true:

    var ir:ClassFactory = new ClassFactory (MyItemRenderer);

    IR. Properties = {etc. etc..};

    list.itemRenderer = ir;

    Trace (.generator ClassFactory (list.itemRenderer) == MyItemRenderer)

  • How to find the list of individual songs in iTunes?

    I used to be able to find the complete list of songs in my iTunes. Now, all I see is a list of playlists on the left side. I can't find anyway to get it to list all of my songs. Only when I put in something again I see the song list in the item, such as an audio book, for example.

    I want to check my list to see exactly what I have, but can't see any song, unless it is in a playlist. How can I see a list of all my songs?

    In the sidebar under 'Library', a secondary to edit click the list that you see there. Add songs.

  • LOV does no validation of the list when tabs are

    Hello

    I have an element attached to a generated dynamically based on an another LOV LOV. When I change the value in the parent LOV and click on the child element (which still has the old value) and the tab out, she does not validate in the list that has new values. The old value of the field is actually bad. However, it shows new values when I click the list of values for the child element.

    I am also if the property VALIDATE_FROM_LIST to PROPERTY_TRUE. Set_lov_property to the dynamic query code is generic and is used by key-listval and once - new - item - instance trigger. Except in the listval key, I added list_values.

    I use the version of forms 6i.

    Can someone tell me where I am doing wrong?

    Thank you

    New problem :D

  • Show the popup inside the list item (JDEV 12 c)

    Hi all

    I'm having a problem when I try to display the pop-up window on an image, click.

    Inside the image, there is the showPopupBehaviour that triggers the popup.

    It is not working properly if I put the popup on the outside of the list item, but the problem is that I need inside so I can view the attributes of each element.

    The list with the elements (each icon should trigger the popup with information components):

    popup issue.png

    Best regards

    Luis Cabaco

    The problem is not the popup, but how you load the data from the context menu.

    The popup will match every time, only data changes.

    Make sure that the popup contentDelivery has the value "lazyUncached".

    Timo

  • Change the appearance of the list item when you click

    I'm doing a list where the user can click on an item to reveal more information.

    For example, a list of names. If the user clicks on a particular name, the line grows in height to reveal more information.

    I don't know how to change the properties of a particular line in a list. As far as I can see that there is no reference to the line in the list object?

    So far, I have the earphone properly Setup, but I don't know where to go from here

    list = new List();

    list.addItem (...);

    list.addEventListener (Event.CHANGE, onSelect);

    //

    private void onSelect(e:Event):void

    {

    list.selectedIndex;

    //??

    }

    the fl.controls.List has an event of ListEvent.ITEM_CLICK you can use.

    and, you can add and remove lines dynamically or a textfield to display additional information about a selected line.

  • Items in list Itemrenderer outside the list of sparks

    I have a list of spark and I want some of the elements that appear next to the list based on the interaction of users.

    Is there a way to make the elements of an element converter show outsid of the container in the list?

    When I use the layout of basic on the lsit and explicitly the x value and y, they appear behind the list.

    Thank you.

    You customize the skin from the list and delete the scrolling?

  • Context menu - edit the list item

    I've added context Menu items to the items on the list

    Something

    With the context Menu, I've added two elements, one for delete and quickly change an attribute of that object. The question is, how do you take the elementID the context menu I know what item to edit or delete?

    As I do with the onclick event.

    That's how I add the context Menu.

    var myItem = {actionId: '2', label: 'Remove', icon:'local:///images/icons/remove.png'},
            contexts = ["myContext"];
        blackberry.ui.contextmenu.addItem(contexts, myItem, function() {
            toast('You clicked Remove');
        });
        var myItem = {actionId: '1', label: 'Stop', icon:'local:///images/icons/stop.png'},
            contexts = ["myContext"];
        blackberry.ui.contextmenu.addItem(contexts, myItem, function() {
            toast('You clicked Stop');
        });
    

    Ideally, I would like to replace the automatic button 'Cancel' which shows with the "delete" button instead of creating an extra one for it.

    Thanks for any help!

    In fact, you can speciy this assistance in support for the webworks-Framework data as a JSON object. I have a blog sitting around that I still have to post... . So here's the gist of it:

    ((1 when you create the data webworks context attribute you can specify 2 types of data 1) a string or 2) a JSON object. The JSON object is in the following form:

    -"{'id': , 'type': , 'header': , 'subtitle': }" "

    These data will be analyzed by the custom context API JSON and set your headers when the CCM appears, as well as send it back the ID it was chosen for your reminder.

    2. This is why inside your reminder to add point put a parameter:

    var myItem = {actionId: '2', label: 'Remove', icon:'local:///images/icons/remove.png'},
            contexts = ["myContext"];
        blackberry.ui.contextmenu.addItem(contexts, myItem, function(Id) {
            toast('You clicked Remove on id:' + Id);
        });
        var myItem = {actionId: '1', label: 'Stop', icon:'local:///images/icons/stop.png'},
            contexts = ["myContext"];
        blackberry.ui.contextmenu.addItem(contexts, myItem, function(Id) {
            toast('You clicked Stop on id:' + Id);
        });
    

    Give that a shot and let me know how it goes

  • (RH9) 'See also' - how to make * not * clicks when only one entry in the list?

    I have several topics (A, B and C) in which I want to place a control 'See also' that has two subjects (B and C) inside.

    In the A section, click on the control see also appears a list of "A" and "B". Click each item in the list to access the topic.

    In the B section, click on the control see also jumps directly to heading C.

    In the C section, click on the control see also go directly to section B.

    Is there a way to force the control to * always * bring up a list of subjects "see also"? For example, in section B, I would like to control to display a list containing just heading C.

    Hoping that...

    Thank you.

    Hello

    Administer a test.

    Click your related topics in WYSIWYG button and switch to HTML view.

    You should see a quantity of larg of the code presented in green, followed by a small amount of what looks like the code repeated in dark red.

    Copy the following line (including the < and="" the=""> and add the following line to each area.)

    Give it a go and see how you rate.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7, 8 or 9 in the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • Drag items to burn the list do not work in Media Player

    My Windows (in Windows XP service pack 3) player doesn't let me drag items from the library to the burn list album list. A response in January 2010 in this Forum doesn't help - everything he says is refer to the indications, which do not address this problem. Help!

    Re-register the WMP by clicking on Start - Programs - Accessories - right click
    Command prompt and choose Run as administrator. Type
     
    CD %Programfiles%\Windows Media Player
    For %A in (*.dll) do regsvr32 %a
     
    (Ignore an error you should get)
     
    In order to exclude other programs interfering with WMP use clean boot
    Troubleshooting
    http://support.Microsoft.com/kb/331796
     
    Check the alteration of the file by clicking on start - all programs - accessories -.
    Click with the right button on command prompt and choose Run as administrator. Type
     
    sfc/scannow
     
     
    --
    ..
    --
    "gyu333" wrote in message news: 1303 d 010-9362-4 d 67-b3e6-8b18f01a1be6...
    > My drive Windows (in Windows XP service pack 3) doesn't let me drag
    > the list items from the library to the burn list albums. A response in
    > January 2010 in this Forum is useless - everything he says, it is to refer to the
    > directions that do not deal with this particular problem. Help!
     
     
  • I wanted to compress a file. I clicked on "send to" but the compression option was on the list. Ho can I 'compress' as one of the options?

    Original title: compress files

    I use Windows 7 pro.

    I wanted to compress a file. I clicked on "send to" but the compression option was on the list. Ho can I 'compress' as one of the options?

    Thank you

    Ron

    First of all Download Option 2.
     

    Windows 7 - send to context Menu - delete or restore items by default
    http://www.SevenForums.com/tutorials/45421-send-context-menu-remove-restore-default-items.html 
     
  • failure of the deletion of an item in a list

    Hello

    I am new to AIR und QNX and try to work through documentation of the RIM.

    Now, I'm at http://developer.blackberry.com/air/documentation/playbook/ww_air_developing/Create_a_list_ms_197099...

    The program creates a list. If I click on a button, it should remove an item from the list. But it doesn't work. Maybe someone has an idea why?

    Just a second question:

    Is there a difference between these two lines? Which variant is to be preferred?

    myList.removeItemAt (1);

    myList.dataProvider.removeItemAt (1);

    Here the important parts of the code:

    Import qnx.fuse.ui.listClasses.List;

    private function initializeUI (): void

    {

    arrMonth.push ({label: "Jan"});

    arrMonth.push ({label: "Feb"});

    ...

    myList.dataProvider = new DataProvider (arrMonth);

    }

    private void myButtonEvent(event:MouseEvent):void

    {

    now remove an item

    option 1: works well!

    myList.removeItemAt (1);

    HERE, THE ERROR SE PRODUCT

    option 2: does not work

    error message: the item to remove is not found

    myList.removeItem ({label: "Jan"});

    I still don't understand the etiquette thing. So I tried that, but it didn't work either

    myList.removeItem ("Jan");

    }

    Thank you very much

    Sebastian

    RemoveItem, you give him the real object that was originally registered on the data provider (pointer reference). You cannot give a new object that has the same values of the original object. If you don't, then you must create a function that makes a loop on your table of data provider and compare the unique field (usually, 'data') of the object is passed to, then call removeItemAt, based on the index in the array.

    It is also a good idea to not rely on the label to be unique in the list. AS3 convention will usually have a 'data' field that is unique for the list. The data field can then be matched to. Without it and you have multiple items with the same label, will lead to problems of selection.

  • Change the State of all the Image inside the list view toggle button when a list is tap

    Hi, please help, is there a way to change the State of a toggle button to image inside the listview where in when you type a list, the toggle button in the list state change and the other toggle button will be set to their default image? the list has a defined Image toggle button to check both...

    
    ListView {
    
                        layout: GridListLayout {
                            cellAspectRatio: 1.4
                        }
    
                        id: denominationList
                        dataModel: _model.denominationModel
    
                        listItemComponents: [
    
                            ListItemComponent {
    
                                id: component
                                type: "item"
                                CustomListItem {
    
                                    id: itemRoot
                                    dividerVisible: false
                                    highlightAppearance: HighlightAppearance.None
    
                                    Container {
                                        id: fieldContainer
                                        topPadding: 5
                                        leftPadding: 10
                                        rightPadding: 10
                                        bottomPadding: 5
                                        //maxWidth: 270
    
                                        layout: DockLayout {}
    
                                        Container {
                                            id: amountContainer
                                            //topPadding: 
    
                                            layout: DockLayout {}
                                            background: Color.create("#ffffff")
                                            horizontalAlignment: HorizontalAlignment.Center
                                            verticalAlignment: VerticalAlignment.Center
    
                                            ImageView {
                                                id: amountBorder
                                                preferredWidth: 400
                                                imageSource: "asset:///images/flux/amount-border-other.png"
                                            }
    
                                            Container {
                                                horizontalAlignment: HorizontalAlignment.Center
                                                verticalAlignment: VerticalAlignment.Center
                                                layout: StackLayout {
                                                    orientation: (!(ListItemData.name > 4) ? LayoutOrientation.TopToBottom : LayoutOrientation.LeftToRight)
                                                }
    
                                                Container {
                                                    horizontalAlignment: HorizontalAlignment.Center
                                                    verticalAlignment: VerticalAlignment.Top
                                                    visible: (ListItemData.name.length > 4)
    
                                                    preferredHeight: 60
    
                                                    Label {
                                                        id: loadPromoName
                                                        textFit.mode: LabelTextFitMode.FitToBounds
                                                        //multiline: true
                                                        visible: (ListItemData.name.length > 4)
    
                                                        textStyle{
                                                            fontSize: FontSize.Medium
                                                            fontWeight: FontWeight.W300
                                                            color: Color.create("#b9babe")
                                                            textAlign: TextAlign.Center
                                                        }
    
                                                        text: ListItemData.name
                                                    }
                                                }
    
                                                Container {
                                                    verticalAlignment: VerticalAlignment.Center
                                                    topPadding: 8
                                                    rightPadding: 0
                                                    ImageView {
                                                        visible: (ListItemData.name.length <= 4)
                                                        preferredHeight: 40
                                                        imageSource: "asset:///images/flux/pesosign-amount.png"
                                                    }
                                                }
    
                                                Container {
                                                    verticalAlignment: ((ListItemData.name.length > 4) ? VerticalAlignment.Center : VerticalAlignment.Bottom)
                                                    horizontalAlignment: HorizontalAlignment.Center
                                                    leftPadding: 0
    
                                                    Label {
                                                        id: amountLabel
                                                        textFit.mode: LabelTextFitMode.FitToBounds
    
                                                        textStyle{
                                                            fontSize: FontSize.XLarge
                                                            fontWeight: FontWeight.W300
                                                            color: Color.create("#b9babe")
                                                            textAlign: TextAlign.Center
                                                        }
    
                                                        text: ListItemData.amount
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        ]
                        onTriggered: {
                            var selectedItem = dataModel.data(indexPath);
    
                        }
                    }
                }
    

    link the button to a property of an element, and then change all the elements in the datamodel. ListView reflects these changes.

  • 'To' line does not appear in the list of sent items - Live Mail 2013

    For sent items, bar of the list on the left displays subject but is NOT recipient. The recipient of the Windows\SendTo\Mail. MAPMail file exists with contents "Mail" (as recommended in a previous answer how-to). Note that originally the Live Mail delivered with Windows 7 version did not have this problem. Pleas help - another I guess that something other that Live Mail will have to be the answer. Thank you!

    Ok. I'm not sure that Microsoft Update you can refer to, but if mail window was totally different as you say, I can only assume that your Windows Live Mail very late has been improved from version 2009 to version 2011-, as you can see, the version you have is released two years ago and a half and has been updated / updated several times since then. Can you identify the update?

    Regarding the anomaly of display, it is difficult for me to visualize the problem. It may be that the update is not successfully save the message headers in the message database. On the view tab, select Conversations > Off and of messageliste > view a line. You can then select the columns to display in what order by right clicking on a column header and select columns.

    • What do you see in the column ? He is the recipient?
    • Is the entry in quotation marks?

Maybe you are looking for