Displaying icons in AutoCompleteComboBox control - flex4

I have a AutoCompleteComboBox which list all the ports present in cards for a Network Element in String Format. I want to list the ports which are used in any service with a warning icon.
e.g:
Javed
Manoj
Shekhar
Riki
Suppose the String Javed & Shekhar is used in some service. So i need to display the AutoCompleteComboBox in the below format
Javed (warning icon image)
Manoj
Shekhar (warning icon image)
Riki

Related

How to check textual user input in a PowerPoint presentation?

Is it possible to check textual user input in a PowerPoint presentation?
I would like to create some kind of password field that users need the fill in correctly, before they can move on to the next slide.
To be clear: This is while the presentation is running, not in the edit mode.
An ActiveX text box can receive user input while the presentation is in slideshow view and has a Password Character property which, if set, displays the chosen character instead of whatever the user is typing; keeps the password safe from prying eyes.

Special characters are not read by the Screen Reader

The following contents of the HTML file are not read by the screen reader. The NVDA reads the text until "read by the Screen Reader" then it only reads & (and) = (equal) < (less) > (greater) and not any other special characters.
<p>
I want these characters to be read by the Screen Reader "&=`"<>\[]-".
</p>
Use this technique intended for emoji: http://tink.uk/accessible-emoji/
These things are simple to fix though. We need to tell the browser to expose the emoji (or its container) as an image, then give it an accessible name.
Use the ARIA img role to expose the as an image in the accessibility tree:
<span role="img">☃</span>
Then use the aria-label attribute to give the emoji an accessible name:
<span role="img" aria-label="Snowman">☃</span>
[…]
Now the browser will expose the emoji as an image in the accessibility tree, and use the value of the aria-label attribute as its accessible name. When a screen reader queries the accessibility tree it will use this information to tell the user that there is an image of a snowman (☃) on the page.
You have to give it a role otherwise the aria-label will not be announced.

How to load an icon from a modern app (say MS Edge) by resource reference?

I am trying to load name and icon for the application, that handles HTTP protocol (Microsoft Edge).
Both appear under HKEY_CURRENT_USER\SOFTWARE\Classes\AppXq0fevzme2pys62n3e0fbqa7peapykr8v
Icon: #{Microsoft.MicrosoftEdge_38.14393.0.0_neutral__8wekyb3d8bbwe?ms-resource://Microsoft.MicrosoftEdge/Files/Assets/MicrosoftEdgeSquare44x44.png}
App Name for Edge looks similar.
For the name, I am using RegLoadMUIStringW, which loads string from the resource, and it works for both IE (string of format #C:\Windows\System32\ieframe.dll,-55175), and Edge (similar to the Icon string above, e.g #{...?ms-resource://...}).
However, I cannot find a function, that would uniformly load an icon (ApplicationIcon) for both IE ("C:\Program Files\Internet Explorer\iexplore.exe",0) and Edge (see above). Moreover, I cannot find the way to load Edge icon at all (for IE I parse the string and use SHDefExtractIconW).
Is there a universal function, that would load icon with the old resource name (e.g. C:\file,1ndex), and a new one (ms-resource)?
If not, is there a documented way to load the ms-resource icon of another app, by the above-provided string?

How can I get a reference to the currently selected text in keynote into a variable in applescript

I would really like to drop MS Office and switch to the Apple apps but I have some applescripts for powerpoint that I need to replace. I need to do things like change the font or the opacity of the currently SELECTED text. I can't figure out how to get access to the selected text so that I can change its attributes.
Help would be appreciated.
David
For PowerPoint: the text range property, of the selection object, has a property called font that includes a transparency property described as a real number.
For Keynote: the slide object inherits from iWork container that contains text items that have an opacity property described as a percent.
I got this from the respective application dictionaries.
Upon further review based on comments, there does not seem to be an indicator in the Keynote app that delivers the currently selected object of a container (shape, text object, etc.) automagically.
What I'm thinking is that you could send the menu events to perform a copy of whatever is selected and then iterate through the properties and contained objects of the slide to find a match. This is ugly but I am at a loss otherwise.

Detect font while typing in applications like Text edit

I want my application to detect whatever has been typed applications like text edit or text area of any other applications.
I am using Mac.
Thanks,
Rahul
This is accessible from the text view's -textStorage, which is a subclass of NSMutableAttributedString/NSAttributedString. You can get the attributes (including font) for a given range. Expanding on that, you can ask the text view for it's typing attributes, which are the same thing NSAttributedString uses.
That said, the only way to get this reliably from other applications is to use input managers or an unsavory code injection a la ApplicationEnhancer.

Resources