Showing Images in ToggleButtonBar control

I have a ViewStack and I am using ToggleButtonBar to navigate
between the views in the view stack. I would like to use Graphics
to represent the buttons instead of using the buttons. How can I do
this? I found a way with HBox instead of the ToggleButtonBar
control. Below is the code :
<mx:HBox borderStyle="solid" width="778" paddingTop="0"
x="21" y="131" horizontalAlign="center" horizontalGap="1">
<mx:Image source="assets/MenuGraphics_3.png"
click="storeViews.selectedChild=vwOne;"/>
<mx:Image source="assets/MenuGraphics_5.png"
click="storeViews.selectedChild=vwTwo;" />
<mx:Image source="assets/MenuGraphics_7.png"
click="storeViews.selectedChild=vwThree;" />
<mx:Image source="assets/MenuGraphics_9.png"
click="storeViews.selectedChild=vwFour;" />
</mx:HBox>
But,
I would like to use the ToggleButtonBar control to process
the ViewStack. Appreciate the help. Thanks.

If the above example works, why do you want to use the
ToggleButtonBar control?
Either way, it sounds like you want to overlay images on a
ToggleButtonBar.
This is complicated, since the graphical skin for a
ToggleButtonBar is merely 3 buttons that get mutated to stretch
over the required number by slice-9 scaling. There are two ways
round it, one would be to work on a programmatic ToggleButtonBar
skin that draws graphical children over the bar (sounds like the
easiest).
Alternatively, I believe
Flexlib has a nifty component called
a CanvasButton or something, which allows the drawing of graphical
children over an existing button. You could attempt to subclass the
ToggleButtonBar with a similarly inspired component.

Similar Messages

  • Apache: showing images in ascending order by name

    hi:
    i have several detail pages where i show images contained in
    a folder:
    $folder = dir($path);
    while ($folderEntry = $folder->read()){
    if ($folderEntry <> "." && $folderEntry
    <> ".." &&
    substr($folderEntry, -6, 2) <> "00") {
    echo '<li><img src="'.$path.$folderEntry.'"
    /></li>';
    $folder->close();
    in the local server they appear in the way i want, in
    ascending order by
    name (img_01.jpg, img_02.jpg, img_03.jpg, ...) but in the
    remote server
    they appear in, apparently, random order
    i activated FancyIndexing in the httpd.conf file but it
    doesn't solved
    the problem:
    # Directives controlling the display of server-generated
    directory
    listings.
    # FancyIndexing is whether you want fancy directory indexing
    or
    standard
    IndexOptions FancyIndexing
    # End of indexing directives.
    i know i can store the filenames names in an array an sort it
    but i
    prefer to control it in the server
    local (OS X 10.4.10)
    Apache/1.3.33 (Darwin) PHP/5.1.6
    remote (Red Hat Linux 2.6.9-34.ELsmp)
    Apache/2.0.52
    tia,
    jdoe

    Templeton's suggestion is best if needing help with Microsoft Entourage. Since I know the answer is "not possible" I can at least steer you toward an AppleScript that will give you a workaround. Have a look here <http://www.barryw.net/weblog/files/category-5.html>.
    Further questions about this script should be directed either to its author or to Microsoft's Entourage newsgroup <http://groups.google.com/group/microsoft.public.mac.office.entourage>.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.9)  

  • Why does the Safari PDF viewer plugin show up in mission control?

    Whenever I swipe to activate mission control the PDF viewer plugin of Safari shows. This obviously doesn't happen if I do not have a tab with a PDF active in the browser, but why does it show anyway? I have tested Firefox and Chrome and their PDF plugins do not show in the mission control view, so why does Safari's? How can I get rid of this? It makes loading expose' view a little choppy (compared to when I dont have to use a PDF in Safari) and looks weird. I have attached an image of how this looks.

    deleting the adobe plugins in Library worked for me:
    http://forums.macworld.com/index.php?/topic/146648-hide-adobepdfviewernpapi-in-m ission-control-how/

  • How to use "imgplot" to display image on a Control in VC++?

    I want to show a image on a static picture control on dialog by vc++, the function I used was a NI-IMAQ "imgPlot" to draw image on the control, beacuse it is easier and faster with capture card.
    imgPlot ((GUIHNDL)hFrameWnd, pImg, 0, 0, src->width, src->height,0, 0, IMGPLOT_MONO_8);
    I get the control's HWND by GetSafeHWnd() to set the first paprameter and set the second parameter with a buffer pointer, since I just want to test, so buffer data is not obtained by capture card, but from a file. No image display on the control, no errors display either, why

    I want to show a image on a static picture control on dialog by vc++, the function I used was a NI-IMAQ "imgPlot" to draw image on the control, beacuse it is easier and faster with capture card.
    imgPlot ((GUIHNDL)hFrameWnd, pImg, 0, 0, src->width, src->height,0, 0, IMGPLOT_MONO_8);
    I get the control's HWND by GetSafeHWnd() to set the first paprameter and set the second parameter with a buffer pointer, since I just want to test, so buffer data is not obtained by capture card, but from a file. No image display on the control, no errors display either, why

  • How to Show images in mail box with java mail??????????

    Hello everyone,
    Iam sending mail using java, my mail format consisit of colored text and images,that should be diplsyed to reciever in mail box,my code is working fine reciever gets mail in inbox but problem is when we recieve mail like that images doesnot show up in the mail automaticaly,when i click on show images link in my mail box only then images become visible,i tested my mail in gmail,rediff and yahoo and in all cases i have to mannually click on "show images" link to view images that i sent with my mail,why so? is this due to security reasons in mailbox??? can i write such code that can overcome this problem i.e my images shows directly in anymailbox without clicking on showimages link.
    Please help.
    Thanks.

    anie wrote:
    can i write such code that can overcome this problem i.e my images shows directly in anymailbox without clicking on showimages link.No. That's a security function of the browser, and not something you can control.
    On another note, please refrain from posting unnecessary, excessive punctuation. It only clutters up your message, which isn't a good thing. Thanks!
    ~

  • IBook author interactive image label: graphic control is locked?

    The interactive image lets you adjust the frame and background, but not the labels nor end the point styles! The ability is there but it is locked! Here's a screen shot showing the 'greyed out' control options. Is there a trick to enable the capability? Or is it on the debug list for the next update? 

    Hello Vita,
    When I was last working with this widget and came across the same issue.
    The only way to try and control it was by adding in character returns to change the height and to stretch the box out by the handles at the left and right of the box itself. But yes it would be great to have more control over the the parameters.
    Regards,
    Nigel

  • Pop up a window to show images

    Hi, I am trying to show images when the user rolls the mouse
    over the image but I want to show them as a pop up window only when
    the user is on the image.
    Any ideas how can I handle this? I will have variety of
    images and want the same behavior for all of them.

    mouseOver and mouseOut event functions for the images.

  • My mac will not show images when on the internet?

    My mac will not show images when on the internet?  I think I have inadvertently changed some settings but nor sure which one.

    I am going to assume you are using Safari here. If so then go to the Apple menu bar and hit Safari-> Preferences.  Under the Apperance tab there is a check box that is called "Display images when the page opens".  Check if that is unticked.

  • IMovie shows up in Mission Control, but doesn't open when clicked.

    Can't open iMovie. iMovie shows up in Mission Control, but doesn't open when clicked. It just disappears up in the top left corner of the screen. The controls on the top of the screen (like; iMovie, File, Edit, View, Text, Share, etc) are al there, and they seem to work, but the window just won't show up.
    It happened after installing Mountain Lion on my Macbook Pro.
    Any ideas?

    Disable screen saver. Restart.

  • How can i show images from different folders  in image gallery

    Hi All,
             i have downloaded and executed photo viewer image gallery application.
              in that we r showing images sequentially what we have defined in xml file.
             but i want show images randomly or i want show images from different gallary.
    Can any one help me.
    thanks
    Raghu.

    WaqarLFC7 wrote:
    On Windows:
    Ctrl + click on the songs you want to group - then right click and click get info and it will ask you if you want to get info for multiple items click YES then under album name it whatever you want and them songs will be grouped into 1 album.
    Mac:
    Same procedure but hit SHIFT instead of CTRL.
    Actually, it's right click or ctrl click, same as windows.

  • Acrobat xi - RE: Add sound icon- skin displayed is a 'blank white box' until it is clicked to activate it- can you lock skin to display before its activated so that in a print run the skin shows up (ie the controls-or any kind of greyed out rectangle, lik

    Hi,
    Acrobat xi - RE: Add sound icon- skin displayed is a 'blank white box' until it is clicked to activate it- can you lock skin to display before its activated so that in a print run the skin shows up (ie the controls-or any kind of greyed out rectangle, like video controls before 1st activation) and not the blank white box- if no, I guess I have to activate all sound icons before doing a print run?thanks)).

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • Iphone 4 will not show up on computer or in itunes. After several attempts to restart, only showing image to connect to itunes. Everything is plugged and it and I have the most up to date version of itunes.

    My iphone 4 only shows image to connect to itunes. It will not come up in itunes and does not appear to be connecting to my computer. I have attempted to restart my phone numerous times but it just keeps going back to this same screen. Please help.

    Did you make a backup because you can't recover what's on our phone. Follow these steps to resotre your phone (the phone has to be plugged into your computer):
    1) On your phone, press your sleep button for 2 seconds
    2) After the two seconds, don't release the sleep and press the home button for 10 seconds
    3) Release the sleep button and keep the home buttton pressed untill your computer detects your phone.
    4) A window should pop up and you should have the restore button. Press it.

  • I have a pc running windows 7.  I got an Airport Extreme 802.11n Wi-Fi and the printer is now plugged into the Airport.  The wireless router works fine but the printer shows as offline in control panel and in word. The printer is a HP LaserJet CP1525nw.

    I have a pc running windows 7.  I got an Airport Extreme 802.11n Wi-Fi and the printer is now plugged into the Airport.  The Airport works fine but the printer shows as offline in control panel and in word. The printer is a HP LaserJet CP1525nw.

    +For now I have it set to Share Public IP address - Is this correct for my Network Setup with The Airport Extreme being the only router being used ?+
    This would be the correct setting if the AirPort Extreme is connected to a simple modem (one ethernet port).
    *Settings I have Enabled*
    5 GHz name indicates that you have elected to use the option to assign a separate name to the 5 GHz network. This will allow you to "tell" compatible computers to connect to that network, rather than the slower 2.4 GHz network
    Use Wide Channels is recommended for 5 GHz operation.
    Interference Robustness often does more harm than good and should not be used unless you know you are in a area with a lot of wireless networks and you feel that your network is experiencing interference issues from a nearby network.

  • CRS 10.1 with Endeca 3.1.1 -home page doesn't show image and promo products

    Thanks to this forum and especially cmore I'm close to setting up my local dev environment, but still have something to resolve.
    I have ATG 10.1.2 + CRS + Endeca 3.1.1. I installed BCC with Staging and Production (switchable) stores.
    The problem is with Production CRS - both US Store and Home Store don't show image and promoted products on Home page.
    What I see below Top Category pane is empty square. Unlike Production, home page on Stage works fine - I see homepage_promo_storeSiteUS_en_anonymous.png and promoted products.
    I think the problem is not related to Endeca, as I currently connect both Stage and Prod to the same Endeca CRS, I also believe that issue is not related to configuration - I tried to run production with Stage configuration, and it changed nothing. I believe the issue is somewhere in data (DB) - but I did full deployment for Prod and it didn't help. I verified targeters and slots on Prod through ACC, and they looks fine. So don't know at this point what to do next.
    While doing full deploy I see some errors in the log which might be related to the issue, But the same errors I see on Stage as well and still Stage works without issues:
    10:17:41,805 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/HomeTheme in scope global. It is defined in scope request
    10:17:41,811 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/PromotedProduct1 in scope global. It is defined in scope request
    10:17:41,816 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/PromotedProduct2 in scope global. It is defined in scope request
    10:17:41,819 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/PromotedProduct3 in scope global. It is defined in scope request
    10:17:41,822 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct2 in scope global. It is defined in scope request
    10:17:41,826 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct3 in scope global. It is defined in scope request
    10:17:41,829 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct4 in scope global. It is defined in scope request
    10:17:41,832 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct5 in scope global. It is defined in scope request
    10:17:41,836 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct1 in scope global. It is defined in scope request
    10:17:41,839 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/CategoryPromotionContent2 in scope global. It is defined in scope request
    10:17:41,842 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/CategoryPromotionContent1 in scope global. It is defined in scope request
    Last update: I compared Stage and Prod home pages HTML code, and notice that the first difference between two pages is absence of endeca-slot Div, the below code present on Stage, and is Not present on Prod:
    It is the first difference only , there are a bunch more.
    &lt;div class="endeca-slot" zone="/content/Shared/Global Search Configuration/Search Box"&gt;
    <script type="text/javascript">
    if(Endeca.Site) {
    Endeca.Site.Audit.contents["/content/Shared/Global Search Configuration/Search Box"] = [{"@type":"SearchBox","endeca.internal.created.by":"admin","rule.msg":"Fired","endeca.internal.last.modified.by":"admin","rule.msgcode":"13","rule.state":"fired","endeca.internal.resource.path":"\/sites-live\/NYCoCRS\/content\/Shared\/Global Search Configuration\/Search Box\/Search Box","endeca.internal.workflow.state":"ACTIVE","type":"DGraph.MerchDebug","Title":"Search Box","rule.id":"1","endeca.internal.last.modified":"2013-03-20T11:43","endeca.internal.date.created":"2013-03-20T11:43","Zone":"\/content\/Shared\/Global Search Configuration\/Search Box"}
    </script>
    Edited by: PKU on Apr 1, 2013 8:32 AM
    Edited by: PKU on Apr 1, 2013 8:35 AM

    After some analysis and experiments:
    Most likely the issue is with Scenarios. HomeTheme Slot is populated by Theme scenario.
    For some reason the slot remains empty on "bad" environment. On "good" environment the slot contain promo content item after the first call of the slot. I checked respective targeter and promo content item, and they look OK, so I believe something wrong with Scenarios.

  • How to show image in oracle adf if i have data in byte[] ?

    For first time I am using <af:inputFile> to get file of image type from any location on my system and convert the data in "byte[]" and store it in database...
    When i visit page again i need to show uploaded file which is coming to me "byte[ ] ".
    To show image i am using <af:image> component.
    Help will be appreciated.

    Check this blog post: http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
    Dario

Maybe you are looking for