Highlight / selected MenuItem

Hello

When the user pressed a MenuItem, is it possible to highlight the selected item when the user click the menu of the phone again? Y at - there any sample code I can read on this?

Thank you in advance.

Kind regards

Joshua.

You can do if you change the order of Menu after clicking on Menu2 get this order:

Menu2
Menu1
Menu3

because the first item in the menu will be selected by default

Tags: BlackBerry Developers

Similar Questions

  • Why my point chronological marker highlight / select the clip that it is parked?

    Cannot find anything else online to anyone with this glitch.  I can't find a preference that could put out of service.  Is this a bug?

    When I play through the timeline, whenever I stop, the clip on which the chronological marker is parked gets highlighted / selected.  Also happens if I rub it or simply click somewhere back in the timeline bar.  The clip below that it gets highlighted - usually the video clip in the foreground; otherwise it'll hit the audio clip in the foreground.

    Running Pr CC2015 9.0.1 (36) on a new Mac Pro with 64 GB of RAM.

    It's not a big deal, but it's boring and since I couldn't find someone else with the issue, I thought I would bring.

    Thanks for all help!

    A

    Check/uncheck this option: sequence > selection follows playhead

  • Impossible to highlight / select text in detailstamp aspects of a table

    Hello

    We have a table in a single page with facet detailStamp. Inside of the facet, we have panelGroupLayout. In the panelGroupLayout, we have some elements of inputText readonly.
    In Internet Explorer, we are unable to highlight / select the text in the inputText.
    I want to copy the text displayed in the inputText detailStamp.
    I am able to copy text in Mozilla Firefox. But I could not copy in Internet Explorer.

    Here's the code for table...

    Thanks in advance...

    < af:table value = "#{bindings.searchResultsIterator.dataControl.dataProvider.collectionModel}" id = "searchDiscrTbl" var = "row" rows = "#{bindings.searchResults.rangeSize}" displayRow = "selected"
    emptyText = "#{pageFlowScope.discrepancyView.emptyText} ' fetchSize =" #{(bindings.searchResultsIterator.dataControl.dataProvider.collectionModel.rowCount & lt; (bundle. FETCH_SIZE))?
    bindings.searchResultsIterator.dataControl.dataProvider.collectionModel.rowCount
    : (bundle. "FETCH_SIZE)}" queryListener = "#{bindings.searchResultsQuery.processQuery}" varStatus = 'vs' sortListener = "#{bindings.searchResultsIterator.dataControl.dataProvider.processSort}".
    selectionListener = "#{pageFlowScope.discTblSelListener.onTableSelectionChanged} '"
    rowSelection = 'multiple' summary = ' #{bundle. " ContextMenuId summary}"="rightClickPopup"binding =" #{pageFlowScope.discrepancyView.discrepanciesTable} "rowBandingInterval ="0">"
    * < f: facet name = "detailStamp" > *.
    < af:panelGroupLayout layout = "vertical" inlineStyle = "width: 80%;" id = "pgl7" >
    < af:panelGroupLayout layout = "horizontal" inlineStyle = "" margin-left: 50px; "halign ="left"valign ="top"id ="pgl8">"
    < af:panelFormLayout lines = '2' labelWidth = "75" id = "pfl9" >
    < af:inputText label = "#{bundle." CORRECTED_BY}"value =" #{row.operationIdentifiedBy} "readOnly ="true"id ="it10"/ >"
    < af:inputText label = "#{bundle." SUBMITTED_BY}"value =" #{row.operationSubmittedBy} "readOnly ="true"id ="it11"/ >"
    < / af:panelFormLayout >
    < af:panelFormLayout lines = "2" id = "pfl10" >
    < af:panelLabelAndMessage label = "#{bundle." LAST_STATUS_CHANGE_TIME}"id ="plam7">
    < af:outputText value = "#{pageFlowScope.discrepancyView.lastStatusChangeTime}" id = "it12" / > "
    < / af:panelLabelAndMessage >
    < af:panelLabelAndMessage label = "#{bundle." SUBMITTED_TIME}"id ="plam8">
    < af:outputText value = "#{pageFlowScope.discrepancyView.submitTime}" id = "ot41" / > "
    < / af:panelLabelAndMessage >
    < / af:panelFormLayout >
    < af:spacer width = "30" id = "s9" / >
    < af:panelFormLayout lines = '6' labelWidth = "75" id = "pfl11" >
    < af:inputText label = "#{bundle." ERROR_REASON}"value =" #{row.reasonForFailure} "readOnly ="true"id ="it14"/ >"
    < / af:panelFormLayout >
    < / af:panelGroupLayout >
    < af:panelGroupLayout layout = "horizontal" inlineStyle = "margin-left: 68px;" width: 48%; "halign ="left"valign ="top"id ="pgl9">
    < af:panelFormLayout lines = '1' id = 'pfl12' >
    "< af:image source="/icons/messages_status.png "id ="i4"/ >
    < / af:panelFormLayout >
    < af:panelFormLayout lines = '1' fieldWidth = "480" id = "pfl13" >
    < af:inputText label = "#{bundle." NOTES}"lines = '4' columns ="120"value =" #{row.notes} ' readOnly = 'true' wrap 'soft' = id = "it15" / > "
    < / af:panelFormLayout >
    < / af:panelGroupLayout >
    < / af:panelGroupLayout >
    * < / f: facet > *.
    < af:column sortProperty = "parentResultGroup.name"
    sortable = "true" headerText = "#{bundle." SCANRESULT_NAME}"id ="c27 ".
    align = "left" width = "85" >
    < af:outputText
    value = "#{row.parentResultGroup.Name} '"
    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" »
    ID = "ot25" / >
    < / af:column >
    < af:column sortProperty = "parentResultGroup.type"
    sortable = "true" align = "left" headerText = "#{bundle." SCANRESULT_TYPE}.
    ID = "c28" width = "78" >
    < af:outputText
    value = "#{row.parentResultGroup.type} '"
    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" »
    ID = "ot26" / >
    < / af:column >
    < af:column sortProperty = "entityName" sortable = "true".
    align = "left".

    inlineStyle = "#{pageFlowScope.discTblSelListener.tableInLineStyle};" »
    headerText = "#{bundle." NOM_ENTITE}.
    ID = "c25" width = "85" >
    < af:outputText value = "#{row.entityName} '"
    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" "id ="ot23"/ >
    < / af:column >
    < af:column sortProperty = "externalEntityType."
    sortable = "true" align = "left".

    inlineStyle = "#{pageFlowScope.discTblSelListener.tableInLineStyle};" »
    headerText = "#{bundle." ENTITY_TYPE}.
    ID = "c26" width = "80" >
    < af:outputText
    value = "#{pageFlowScope.discrepancyView.externalEntityTypeLabel} '"

    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" "id ="ot24"/ >
    < / af:column >
    < af:column
    sortProperty = "attributeOrRelationshipName" align = "left" sortable = "true".
    inlineStyle = "" text-align: left; ""
    Width = "140".
    headerText = "#{bundle." ENTITY_ATTRIBUTE_RELATIONSHIP}"id ="c22">
    < af:outputText
    value = "#{row.attributeOrRelationshipName} '"
    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" »
    ID = "ot20" / >
    < / af:column >
    < af:column sortProperty = "networkValue."
    sortable = "false" align = "left" headerText = "#{bundle.NETWORK_VALUE}" id = "c23" "
    Width = "140" >
    < af:outputText
    value = "#{pageFlowScope.discrepancyView.discoveryValueAndEntityLabel} '"

    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" "id ="ot21"/ >
    < / af:column >
    < af:column = "inventoryValue" sortProperty
    sortable = "false" align = "left" headerText = "#{bundle." INVENTORY_VALUE}.
    ID = 'c24 '.
    inlineStyle = "" text-align: left; "width ="140">"
    < af:outputText
    value = "#{pageFlowScope.discrepancyView.inventoryValueAndEntityLabel} '"

    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" "id ="ot22"/ >
    < / af:column >
    < af:column sortProperty = "custom".
    headerText = "#{bundle." CUSTOM}"id ="c999"width ="85"sortable ="true">
    < af:outputText value = "#{row.custom} '"
    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" »
    ID = "ot888" / >
    < / af:column >
    < af:column sortProperty = 'type' sortable = "true".
    align = "left" headerText = "#{bundle." DISCREPANCY_TYPE}"id ="c21 ".
    inlineStyle = "" text-align: left; "width ="65">"
    < af:panelGroupLayout id = "pgl17" layout = "horizontal" >
    < af:image
    source = "#{pageFlowScope.discrepancyView.discrTypeIcon [Row.type.valueAsString]}" "
    ID = "i7" / >
    < af:spacer width = "3" height = "10" id = "s13" / >
    < af:outputText
    value = "#{pageFlowScope.discrepancyView.discrType} '"

    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" "id ="ot19"/ >
    < / af:panelGroupLayout >
    < / af:column >
    < af:column sortProperty = "gravity" sortable = "true".
    headerText = "#{bundle." DISCREPANCY_SEVERITY}.

    inlineStyle = "#{pageFlowScope.discrepancyView.severityColor};" »
    align = "left" id = "c15" width = "60" >
    < af:panelGroupLayout layout = "horizontal" id = "pgl10" >
    < af:image
    shortDesc source = "#{pageFlowScope.discrepancyView.discrSeverityIcon}" ="" "
    ID = "i5" / >
    < af:spacer width = "3" height = "5" id = "s12k" / >
    < af:outputText
    value = "#{pageFlowScope.discrepancyView.discrSeverity} '"

    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" "id ="ot14"/ >
    < / af:panelGroupLayout >
    < / af:column >
    < af:column sortProperty = "prioritΘ" sortable = "true".
    align = "left" headerText = "#{bundle." PRIORITY}"id ="c19 ".
    inlineStyle = "" text-align: left; "width ="60">"
    < af:outputText value = "#{row.priority} '"
    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" "id ="ot18"/ >
    < / af:column >
    < af:column sortProperty = 'operation' sortable = "true".
    align = "left" headerText = "#{bundle." DISCREPANCY_RESOLUTION}"id ="17 ".
    inlineStyle = "" text-align: left; "width ="100">"
    < af:panelGroupLayout id = "pgl18".
    layout = "horizontal" clientComponent = "true" >
    < af:outputText
    value = "#{pageFlowScope.discrepancyView.discrOperation} '"

    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" »
    ID = "ot16" > < / af:outputText >
    < name af:clientAttribute = "correctedBy".
    value = "#{row.operationIdentifiedBy}" / >
    < name af:clientAttribute = 'folder '.
    value = "#{row.operationSubmittedBy}" / >
    < name af:clientAttribute = "submiTimeString".
    value="#{pageFlowScope.discrepancyView.submitTime}"/ >
    "" < af:showPopupBehavior popupId = ": resolutionPUP".
    triggerType = 'sender' align = "beforeStart" alignId = "pgl18" / >
    < / af:panelGroupLayout >
    < / af:column >
    < af:column sortProperty = 'status' sortable = "true".
    align = "left" headerText = "#{bundle." DISCREPANCY_STATUS}"id ="c16 ".
    inlineStyle = "" text-align: left; ""
    Width = "140" clientComponent = "true" >
    < af:panelGroupLayout id = "pgl16" layout = "horizontal" >
    < af:image
    source = "#{pageFlowScope.discrepancyView.discrStatusIcon [Row.Status.valueAsString]}" "
    ID = "i6" / >
    < af:spacer width = "3" height = "10" id = "s12" / >
    < af:outputText
    value = "#{pageFlowScope.discrepancyView.discrStatus} '"

    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" "id ="ot15"/ >
    < name af:clientAttribute = "lastStatusChangeTimeString".

    value="#{pageFlowScope.discrepancyView.lastStatusChangeTime}"/ >
    < name af:clientAttribute = "reasonForFailure".
    value = "#{row.reasonForFailure}" / >
    < name af:clientAttribute = 'notes '.
    value = "#{row.notes}" / >
    "" < af:showPopupBehavior popupId = ": statusPUP".
    triggerType = 'sender' align = "beforeStart" alignId = "pgl16" / >
    < / af:panelGroupLayout >
    < / af:column >
    < af:column sortProperty = "discrepancyOwner."
    sortable = "true" headerText = "#{bundle." OWNER}"id ="18"align ="left ".
    Width = "60" >
    < af:outputText value = "#{row.discrepancyOwner} '"
    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" "id ="ot17"/ >
    < / af:column >
    <! - source columns not too helpful, so emotional at the end (Kenny) - >
    < af:column sortProperty = "discoverySource."
    sortable = "false" align = "left" headerText = "#{bundle." DISCOVERY_SOURCE}.
    ID = "c2311" width = "60" >
    < af:outputText value = "#{row.discoverySource} '"
    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" »
    ID = "ot2111" / >
    < / af:column >
    < af:column sortProperty = "importSource.
    sortable = "false" headerText = "#{bundle." INVENTORY_SOURCE}"id ="c2411.
    Width = "60" >
    < af:outputText value = "#{row.importSource} '"
    inlineStyle = "#{pageFlowScope.discrepancyView.inLineStyle};" "id ="ot2211"/ >
    < / af:column >
    < / af:table >

    Hello

    This is a known behavior managed in bug 9830307 and 9768470. This is the expected behavior for the rows in the table that can be selected. FF and Chrome may behave differently, which is considered to be the wrongful conduct and is subject to the determination

    Frank

  • I'm trying implement highlight/select all mails from a particular sender to remove

    My Inbox needs serious editing. A lot of unwanted emails. I would like to delete e-mails in groups, but do not know how to select or highlight an entire group, which can then be removed.

    You can click on any column heading to sort by that column. Clicking the same header again reverses the sort.
    Then you use basic computer skills to select multiple items
    Click the point 1. Up or down several elements and hold down the SHIFT key when you click on the point 2. This allows to select the elements 1 and 2 and everything in between.
    Holding down the CTRL key and clicking on random element will select all clicked on element.
    Select an item. Press Ctrl + a to select.
    Hold down the CTRL key when you click on a selected item to deselect the item.

  • How adjust the tint or color of a highlighted selection inactive in Windows 7?

    I'm looking on how to adjust the color and the shadow of a selection inactive in Windows 7.

    Try to understand what I'm after:

    Explorer of files open in a window that is not maximized not so you can still see part of your office.
    Left click on any file in the file Explorer.
    Now, click your desktop.
    Notice how the highlight color takes a dim gray on the selected file.  It's the shade/color I want to change.

    The reason why I need is when you use a program for a reference and another for a task that count you seeing the information highlighted in the other program.  It becomes very difficult to see sometimes depending on your level of the eye in relation to the item highlighted.  (With the help of a LCD).  Also within the same program like SolidWorks for example if you select an item in the graphics view highlights in the PDM tree, but as the tree does not focus it is a very light gray and is difficult to see.

    I found a fix supposed to Windows XP but don't know where to look in Windows 7 to fix this if possible.  Here's the patch supposed to XP I don't know with certainty that it works although I have not tried.

    Control Panel, display, appearance, Advanced Options
    Select "3d elements".
    change to a darker gray
    accept - apply
    voila!

    So I don't know if there is an adjustment of the elements, I do somewhere in 3d?  May be in the registry?

    And please do not suggest the themes of contrast high or similar.  I've been there.  I'm looking for something more elegant keeps the default look of Windows 7.

    Help, please.  That would make my work from day to day less irritating.
    Thank you

    Stott,

    Even if this is normal breast of Windows, there may be third party software that can take care of it the way you want. I would do some research on your favorite search engine.

    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this helps

    Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Within a single class what steps should I take to implement a selection MenuItem "get"?

    I have a single class that extends screen that contains a single menu that contains MenuItems:

    • New
    • Edit
    • View
    • Output

    For the New, Edit and display screens, I just want to use a class that extends the screen.

    When one of these MenuItems are selected, I need to be:

    1. Get an identifier for the class that extends the screen, looking at the method MenuItem.getId ().
    2. Pass a parameter of the run() method in MenuItem to the class that extends the screen.

    The goal of each is well just to get a unique identifier that tells the screen to get the various parameters to change the layout of the screen and repaint.

    What is a good design implemented or the best implementation which is recommended?

    Thank you

    passing the parameter or by calling a setter on the screen are very good.

  • Highlight selected tree-point

    Hello
    I built a tree with the APEX-links option that shows my company organization. If the klicks user on one of organizing a graphic based on the chosen organization, is shown.
    Now I want the branch chosen by the user is highlighted. How does it work? To this effect I tried to edit the HTML Code of the tree (to: link model) with a javascript function, where the current id of the selected data is defined as a parameter. but I had the problem that I can not access on the apex-variable (for example: P20_xxx) the javascript function. But after trying many ways I don't think that's the right way.
    So, I hope someone knows how the tree item that is selected by the user can be highlighted (for example with & lt; b & gt; xxx & lt; /b & gt;).
    Thank you.

    Hello

    You can compare the value of the ID in the SQL statement to the value stored in the Pnn_TREE_ROOT element and the style of the output using something like:

    select "EMPNO" id,
           "MGR" pid,
           CASE WHEN EMPNO = :P17_TREE_ROOT
             THEN '<b>' || ENAME || '</b>' ELSE ENAME END name,
           'f?p=&APP_ID.:17:&SESSION.::::P17_TREE_ROOT:' || EMPNO link,
           null a1,
           null a2
    from "#OWNER#"."EMP"
    

    Change: P17_TREE_ROOT name of the real element

    Andy

  • How to select text and be able to change the font without the text highlight color effect reverse?

    I remember being able to select the text with a certain shortcut would not show that it is actually highlighted, but it actually so, essentially the same function as selecting / highlighting just without the Visual indicator that it is highlighted / selected.

    You can change the font by selecting just different fonts in the menu drop-down of the character Panel. It will change the police without selecting text and giving you a reverse color effect.

  • Selection tool doesn't highlight an object while hovering inside.

    When you move an object inside, the selection tool is more abstract. I have to spend on the path to highlight/select point. In view, "show the edges" and "see the bounding box" are on.  Any thoughts? Thank you! (I imagine it's something simple. But alas, it escapes me.)

    I remember a few years back, an update to Illustrator all caused the tracks to highlight on mouseover, and it was absolutely infuritating. Almost enough to give you a seizure when working on a complex document. Finally, they took this "feature".

  • Change the selection highlight color

    The default color when a cell or item is selected is a light cyan. On my computer, it is very difficult to discern the text because cyan light highlight color and white text are scrambling. How can I adjust the highlighting/selection color so that the text is readable?

    In fact, the color of the selected item is determined by your operating system. For editing in Windows XP:

    Right-click on your desktop
    Properties
    Appearance tab
    Advanced
    Point of fall down: has chosen "selected items".
    Change the color to what you want

  • How can I find the last selection OR has highlighted it selection?

    When I select some elements in indesign I have the option of 'command + click' to highlight one selections. How can I find this item highlighted in the script?

    OR

    How I'll get the last item selected in indesign.


    I'm writing a script that relies on certain properties of the element highlight or the last selected item.


    Thank you


    Screen Shot 2014-08-01 at 12.17.03 PM.png

    Thank you myDavey. It's not exactly what I was looking for, but he had good information on something else, I'm trying.

    I found the solution to my problem. This highlighted selection apparently called the object 'key '.

    And it can be used in the script as app.selectionKeyObject. This solves what I was looking for.

    And you can find the last selection by selecting the last item in the selection table.

  • Pages 5.6.2, cannot highlight and change the color of the text?

    I use pages 4.3 and earlier of passage to 5.6.2 - I just tried to highlight a word in a document and change the color - nothing happened.  Tried selecting the color first, and then type a new Word and that doesn't work either.  Am I missing something?  Is there any quick way to the color of the text in 5.6.2?

    To well highlight a word or a selection of words in the v5.6.2, Pages you will need to select the text, click the image below on the gear watch icon and set the fill color of your character. To remove the highlight, select your text, click in the ink of fill color of characters and click transparency icon in the lower right.

  • Problem with the function of highlight (copy). -in Notepad

    When I highlight (select) text in Windows Notepad to copy, highlight function stops at the bottom of the page. It does not automatically scroll to the bottom of the page. How can I get this feature to work?   So that it auto scrolls to the bottom of the page as I continue to highlight?

    Is there an option somewhere to restore this function?

    Not really a question of IE, but I found that if you are highlighted by dragging the mouse, move the mouse back in the bottom of the window and highlighting will continue downwards.

  • Disable text selection (block)

    Hello

    I have an application with two main html files: the first uses bbui.js to navigate, view main menu, options, etc. The second uses JavaScript, HTML and CSS - this is a page of game.

    I noticed that in the game page, when I hold a finger over the text, the text gets highlighted (selected) as well as in a browser.

    I can't choose any text in the menu page, which has bbui.js.

    I would like to disable the ability to select text in my game page. It seems stupid and is a bit confusing when the main elements of the UI game get selected.

    Could someone me referring to a solution?

    Add rule CSS - webkit-user-select: none for the body element.

  • Highlight on ListView

    Hello

    I want to highlight selected items in listview with attached ListItemComponent.

    My current version of the SDK is 10.1 and I tried to use the highlightAppearance function, but it does not work.

    ---------------------------------------------------

    My code looks like:

    {To ListView
    ID: autreliste
    objectName: "autreliste."
    dataModel: ficheprogramme.getOtherPrograms
    onDataModelChanged: {}
    If (otherList.dataModel.childCount (1)! = 0)
    {
    autresEmissionsLabel.visible = true;
    }
    }
    listItemComponents:]
                                
    {ListItemComponent}
    type: "header.
    {To header
    visible: false
    }
    },
                                
    {ListItemComponent}
    type: 'point '.
                                    
    {Of container
                     
    {Of container

    layout {}
    {DockLayout}
                                                
    }
    }

    {Label
    text: ListItemData.date_diffusion
    textStyle {}
    fontSize: FontSize.PointValue
    fontSizeValue: 8
    fontWeight: FontWeight.W400
    color: Color.White
    }
    }
                                            
    }
    }
                                    
    ------------------------------------------
                                
    I had once result (a blue box around the selection on tap) by setting the "ListItemData" as a type of ListItemComponent. The solution was not good because I wasn't able to customize the color of the text, size, container pads... the items in the list.

    Thank you for your help,

    Samantha

    Thanks to all for your responses!

    I finally did it with this solution:

    {ListItemComponent}
    type: 'point '.
    {Of container
                                      
    attachedObjects:]
    {ImagePaintDefinition}
    ID: border
    imageSource: "asset:///images/frame.png."
    }
    ]

    background: ListItem.selected | ListItem.active? border.imagePaint Color.Transparent

    I applied as a background of a picture transparent of an image that I made with Photoshop. It's a bit trickier, but it works.

Maybe you are looking for