Unicode dingbats for button labels?

I really want to use unicode dingbats as my button labels, but Flex won't play ball.  Well, not on Windows anyway.  It works fine on Mac.
I found a ttf with the unicode dingbats in it called Symbola and embedded it into the swf (as "Symbolax" to make sure it was picking up the embedded version and not the system one).  It works fine if I use it for an mx:Text, but it doesn't work as a button label.  Example:
    <mx:Button width="30" height="100" label="&#x276f;" textRollOverColor="#ffffff" fontFamily="Symbolax"/>
    <mx:Text text="characters are fun &#x276f;" fontFamily="Symbolax" />
Results in:
You can see that the Text control is using the embedded font, but the button label isn't.  On Mac, it works fine without embedding any fonts.  Help!

Sorry, I just noticed that your button width isn't really wide enough for the text label and it is displaying a tool tip. The toolTip uses the default Arial font (I think), so you'll need to do some CSS-ery to display the tool tip in your specified font if you want it to appear correctly. A slightly better example is probably:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Style>
        @font-face {
            src: url("Symbola.otf");
            fontFamily: Symbolax;
            fontWeight: normal;
        Button {
            fontFamily: Symbolax;
            fontWeight: normal;
            textRollOverColor: white;
        Label {
            fontFamily: Symbolax;
        ToolTip {
            fontFamily: Symbolax;
    </mx:Style>
    <mx:Button label="&#x276f;" width="30" height="100" />
    <mx:Text text="characters are fun &#x276f;" />
</mx:Application>
Peter

Similar Messages

  • Enh. request: shortcuts support for button labels

    Hi Apex team,
    it would be nice to enhance shortcuts support for button labels in the next release. There are a lot of standard buttons like 'Cancel', 'Apply Changes', 'Delete', etc. that require translation for each page they appear in global applications.
    Thanks.

    Hi Arno,
    I had a similar issue with trying to create a Nav bar with dynamic content. My solution was to leave all the standard buttons in place and to use setVisible(x) to make them appear or not as required.
    BTW have you noticed that rollover behaviour isn't consistant ie works for FIRST/LAST etc but not for FIND/QUERY.
    Regards
    Andy

  • JWS has only 1 bold font for button label

    The label on a button should be Monospaced and BOLD,
    but it is always the same font (Dialog?) no matter
    which font I have specified. The same program shown
    as an applet by the browser is correct (shows different
    fonts just as I have specified).
    Plain fonts are shown correctly both by JWS and the
    browser.
    Monospaced-Bold is available in JWS as I can see from
    another applet of mine.
    Peter

    The problem has got the bug id 4487363.

  • Trying to assign an XML attribute value to a button label

    I have a Flex app (developed in FLEX 2) that reads from
    multiple XML files and populates datagrids with element values.
    What I'm trying to do now, is to create a second column with a
    button, enabling users to view archived versions for each current
    report.
    My problem is: I can't get the <mx:Button> label to
    accept the attribute "name". I've tried atleast 10 - 20 different
    syntax.
    My XML file looks like this:
    <metrics>
    <report name="test">
    <link>test Report 10/28/2008</link>
    <url>test-10_28_2008.zip</url>
    <status>active</status>
    </report>
    </metrics>
    The mxml looks like this:
    <mx:Button buttonMode="true" useHandCursor="true"
    click="handleClick()" label="{data.@name}" width="80">
    <mx:Script>
    <![CDATA[
    public function handleClick():void{
    var url:URLRequest = new
    URLRequest([L=http://new.test.com/pages/r_archive_apps/"+data.link+".html");[/L]]http://n ew.test.com/pages/r_archive_apps/"+data.link+".html");[/L][/L]
    navigateToURL(url,"_blank");
    ]]>
    </mx:Script>
    </mx:Button>
    When I try to label a button with an element it works fine.
    Some of the other sytax I've used are:
    - label="{data.report.@name}"
    - label="{data.report.(@name=='test')}"
    - label="{data.report.(@name='test')}"
    - label="{data.@name}"
    - label="{data.metrics.report.@name}"
    - label="{data.metrics.report.(@name=='test')}"
    - label="{data.metrics.report.(@name='test')}"

    quote:
    Originally posted by:
    rtalton
    Can you post some code so we can see how you are using the
    button? I think you may be using the button within a datagrid
    itemRenderer, which might make a difference.
    You're right, the button is in a datagrid itemRenderer. I've
    pasted more dataGrid code below - thanks again.
    <mx:DataGrid id="dgCatalog" dataProvider="{_xlcCatalog}"
    rowCount="4" editable="false" sortableColumns="false"
    left="148" top="65" bottom="42" borderStyle="solid"
    alternatingItemColors="[#ecf8ff, #ffffff]"
    themeColor="#ffff80" alpha="1.0" cornerRadius="0"
    dropShadowEnabled="true" dropShadowColor="#000000" width="549"
    creationCompleteEffect="{glow3}">
    <mx:columns>
    <mx:Array>
    <mx:DataGridColumn editable="false" headerText="Daily -
    Report Names" dataField="link" textAlign="left" width="200">
    <mx:itemRenderer>
    <mx:Component>
    <mx:LinkButton click="handleClick()" label="{data.link}"
    >
    <mx:Script>
    <![CDATA[
    public function handleClick():void{
    var url:URLRequest = new URLRequest("
    http://test.new.com/test/"+data.url);
    navigateToURL(url,"_blank");
    ]]>
    </mx:Script>
    </mx:LinkButton>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    <mx:DataGridColumn editable="false" headerText="Daily -
    Report Archives" dataField="link" textAlign="left" width="80">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Button buttonMode="true" useHandCursor="true"
    click="handleClick()" label="{data.report.@name}" width="80">
    <mx:Script>
    <![CDATA[
    public function handleClick():void{
    var url:URLRequest = new URLRequest("
    http://test.new.com/pages/test_apps/"+data.link+".html");
    navigateToURL(url,"_blank");
    ]]>
    </mx:Script>
    </mx:Button>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    <!--mx:DataGridColumn headerText="URL" dataField="url"
    width="350"/>
    <mx:DataGridColumn headerText="Status" dataField="status"
    width="70"/-->
    </mx:Array>
    </mx:columns>
    </mx:DataGrid>

  • How to add image as radio button label instead of text

    In a pure AS3 project, is there a way to add use an image placed in the library/ Flex/AIR SDK compiler path instead of text as a radio button label?
    I've tried substituting character may unicode like:
    rb1.label = String.fromCharCode("0x2592");
    But how this displays is dependent on the device, font character availability. Displays unpredictably.
    Would prefer anyway to use an image that I can create in AI.
    Any help appreciated.

    OK. I tried this, and it works.
    (Hopefully, the image will display in the same location, next to the radio button, on different devices.)
    Thank you.

  • Special characters not displaying in button label

    My production environment is: Oracle Forms 6i connecting to an Oracle 8i database. Forms are Windows client/server. In a form there is a layout of buttons like a QWERTY keyboard. And in the property palette information for each data block, the item is of type "Push Button" and the default Label is set to a specific number which correlates to what that number translates into a special character (i.e. Portuguese, or Spanish characters). So example: CHR196 label = "196". So when at runtime. The following command is executing upon seeing this canvas:
    Set_Item_Property('CHR196', LABEL, CHR(196));
    So in Forms6i the CHR(196) comes out to be a letter in the alphabet from either Spanish or Portuguese and shows up perfectly.
    But NOT in 11g. That environment I'm in is:
    Oracle Fusion Middleware Forms 11g on RHEL5 (Red Hat Enterprise Linux version 5) on a 32-bit platform
    connecting to
    Oracle Database 11g on RHEL5 (Red Hat Enterprise Linux version 5) on a 64-bit platform
    using a
    Windows based browser (IE7 - Internet Explorer 7).
    Could it be due to the forms being in a JVM (Java Virtual Machine)? All I see is a small "square" and this shows up on ALL the button labels. Could it be the NLS_LANGUAGE format of the database? Because when I run the query : SELECT CHR(196) FROM dual on 8i or 11g, the proper character shows up in TOAD or SQL+.
    Thanks,

    Hello Paul,
    I once used hexadecimal coded characters like &xnnn; and they were not transformed. When coding them in decimal, everthing worked fine.
    Hth
    J�rg

  • The button labels in my folders are reading as numbers

    The button labels in my folders are reading as numbers

    First, please stop posting your email address. That will only get you on spam lists.
    I suggest you erase your boot volume and restore from the backup. Check that the issue is resolved, then (and only then) change every password you have and check all your online financial accounts for unauthorized activity. Consider canceling all credit cards and requesting new ones.
    When that's done, you need to learn the basics of safe computing.
    Mac OS X versions 10.6.7 and later have built-in detection of known Mac malware in downloaded files. The recognition database is automatically updated once a day; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders. In most cases, there’s no benefit from any other automated protection against malware.
    The most effective defense against malware is your own intelligence. All known Mac malware takes the form of trojans that can only operate if the victim is duped into running them. If you're smarter than the malware attacker thinks you are, you won't be duped. That means, primarily, that you never install software from an untrustworthy source. How do you know a source is untrustworthy?
    Any website that prompts you to install software, such as a “codec” or “plug-in,” that comes from that same site, or an unknown site, is untrustworthy.
    A web operator who tells you that you have a “virus,” or that anything else is wrong with your computer, or that you have won a prize in a contest you never entered, is trying to commit a crime with you as the victim.
    “Cracked” versions of commercial software downloaded from a bittorrent are likely to be infected.
    Software with a corporate brand, such as Adobe Flash, must be downloaded directly from the developer’s website. No intermediary is acceptable.
    Follow these guidelines, and you’ll be as safe from malware as you can reasonably be.
    Never install any commercial "anti-virus" products for the Mac, as they all do more harm than good. If you need to be able to detect Windows malware in your files, use ClamXav -- nothing else.

  • How to localize button labels of a genuine NI VI?

    Some days ago I asked how to manage the translation of button labels of the
    genuine "file dialog VI" from NI (i.e. German label "Wahlen"-> English label
    "Select", German label "Abbruch"->English label "Cancel" etc.) for the
    finished application (I need to have a german and an English version).
    Someone suggested to select English from the Windows country selection and
    someone else suggested to use the string export/import function.
    However, nothing succeeded so far.
    I even bought WIN 2000 in English, since I thought LV perhaps refers to some
    standard/library Windows labelling names during compilation.
    Regarding the string export/import function: This should work if one is able
    to get into the VI, but with the genuine "
    file dialog VI" from NI I cannot
    enter the VI.
    Do I really have to program my own VI for such a simple localizing thing?
    So far, heavily disappointed....
    Thanks
    Klaus

    Klaus,
    Sorry to hear about your problems. Have you tried contacting NI about this? They are usually very good about supporting issues such as this.
    I am going to try a few things for you to see if I can help. If I don't post a followup, assume I had no luck. If you go to ni.com/ask you can start a formal support question. The NI tech support guys will help you fairly quickly (usually within a day or less!)
    Good luck.

  • Technical names are appearing in OVS pop-up for buttons.

    HI Experts,
    I have used OVS help in my application, I have deployed and tested it on local WAS where everything works fine.
    But, when i access it from portal deployed on staging server, the OVS popup window shows technical names for buttons e.g for Go it shows "view.MainView.gr.c.tc.goSearch.text", same is for Exit button.
    Could you please tell me where can be mistake and what are corrective measures?
    regards,
    abhijeet

    Hi,
       You will need to open an OSS message for the same under BC-WD-JAV-RUN component. This is an issue with the NW WAS version that you are running. You can find a similar issue [here|OVS - Buttons without correct label].
    Regards,
    Satyajit.

  • [svn:fx-trunk] 11602: Fix for Button tooltips.

    Revision: 11602
    Author:   [email protected]
    Date:     2009-11-09 22:35:11 -0800 (Mon, 09 Nov 2009)
    Log Message:
    Fix for Button tooltips. TextBase dispatches an event when _isTruncated is set through the setIsTruncated() function. This allows ButtonBase to listen for the event and set the tooltip as necessary. If an explicit tooltip is set, then ButtonBase will not set a tooltip.
    QE notes: No
    Doc notes: No
    Bugs: SDK-22260, SDK-23474, SDK-23657
    Reviewer: Evtim
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22260
        http://bugs.adobe.com/jira/browse/SDK-23474
        http://bugs.adobe.com/jira/browse/SDK-23657
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.a s
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as

  • Button label in tooltip

    I'm getting an odd behavior with a datagrid itemrenderer
    where the label for my button is showing up in a tooltip type popup
    and not in/on the button iteself. Has anyone seen this before? Or
    even better know how to fix it?
    Thanks

    quote:
    Originally posted by:
    Greg Lafrance
    The button/column is not wide enough. When a Button is not
    wide enough for a label it shows up in the tooltip.
    I was afraid of that. Thanks for the reply.

  • Changing button label;JSP; input type="submit" name="jboEvent" value="Search"

    Hello everybody,
    I try to develop a multilanguage application in which the button labels will change accordingly with the browser's regional settings.
    The line in the generated DataQueryComponent.jsp file is the following:
    <input type="submit" name="jboEvent" value="Search">
    If I want to change the value like value="Rechercher" the application will not execute the query.
    In fact the section
    <jbo:ViewCriteriaIterate datasource="dsQuery" >
    </jbo:ViewCriteriaIterate>
    is not executed.
    I tried to generate the button with:
    <input type="submit" name="jboEvent" value="Rechercher" onClick="this.value='Search'"> ,
    but for a long query the name Search will remain as button label on the screen.
    Any new solutions, please?
    Thanks in advance.

    Visit that Jakarta web site. There is an i18n tag library that you will find useful.
    http://jakarta.apache.org/taglibs/doc/i18n-doc/intro.html

  • Spark Button Label with mixed font styles

    I have a spark button, with a custom skin.
    I would like to use italicised text mixed with normal text for the label.
    Is there any way to do that?
    A crucial aspect of my problem is that I am extending the Button component because I want to keep its accessibility features.  I'm finding it very hard to find any info on how I might consider customising the button text.
    I have got as far as setting the text component in my button skin to be a RichText component.  But how could I assign rich text to it within the button?

    Thanks for your reply, I'll check that out and see if I can get
    it working.

  • Change dynamic button label

    Hi,
    In apex 3.0 can I have a button which changes dynamic? e.g. if an item is null then the button label to be 'tes' else button label 'ok'?
    Thank you

    Hi,
    Maybe easiest way is create 2 buttons and set condition for those.
    Use condition when item in expression 1 value is / value is not in expression 2
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • UI standard for button textAndAccessKey

    I am wondering what the UI standard is for button textAndAccessKey?
    My current textAndAccessKey setting is
    #{ResourcesGenBundle['Action.OK']} for Ok button and
    #{ResourcesGenBundle['Action.Cancel']} for Cancel button
    The setting is not working because only label is returned, there are no access keys.
    Please confirm the UI standard before I log an ADF bug.
    Regards,

    Remember that the '&' character has special meaning in HTML and XML (and in .jspx and .jsff in particular). If you type the text directly in a JSF page or fragment, then you should use the &amp;amp; macro and write it as follows:
    textAndAccessKey="Can&amp;cel"If you return the value from a Java bean, then you should write it Java as follows, because the '&' character has no special meaning in Java string literals:
    return "Can&cel";Dimitar

Maybe you are looking for

  • Itunes 10.5 wont connect to the internet

    I recently updated to itunes 10.5. Until then, itunes would connect to the internet ok. now it wont connect at all. I have read through other forum topics for an answer. I have a firewall but I have checked the firewall settings and itunes is set for

  • Similar function like LI10 in WM?

    Hi, In MM level, we could use LI10 (stocktaking) to change the material stock to a specific value directly, in WM level, is there a similar transaction code like LI10? Thanks.

  • Ip ospf cost

    I will implement using OSPF cost higher for the best path, How does impact the OSPF network if increased value ip ospf cost, effect on latency & bandwidth?? below existing configuration. All interface Gigabits default cost "1", what is recommended co

  • What is the macbook pro 15 mid 2014 Full Charge Capacity(mAh)?

    Say online different numbers from what I have..

  • Why can't I open Firefox from desk top or Program file?

    I can only open Firefox when I right click and open as administrator, not from the desktop shortcut or program file. I had added two users to my laptop, including one guest, after which this problem occurred. I removed the two users, but I still can'