MenuBar why First Click ?

basically my question is following : currently my menuBar
acts following way:
when app loads, one must first click on the Menubar (first
time only) for it to display its item and then afterwards mouse
Over kicks in( I am fairly new to Flex, Basically working my way
through with SDK ) How can I make MenuBar to display items on
mouseOver only, (not to require to have to click on it first time
once before it starts displaying them correctly ) ?
I tried also to manualy fire a click event
quote:
itemRollOver="my_mainMenu.dispatchEvent(new
MouseEvent(MouseEvent.CLICK,true,false));"
but it has no effect.

Hello levancho, but when we inside the browser or other app i
don't wan't my application work like windows, and i'm sure that
comportament of menu bar it's not because on windows or other SO,
it will be strange if inside i game for example we must click to do
something because is the default action of SO.
In my case i made some modfications at Doug Mccune vertical
menubar and Alex Harui help me on the mouse over problem... If
anyone want download for this new comp the link is this (i'm not
test this comp to much and i don't know if is best way to do, but
fix my problem perfectly )
http://www.areacriacoes.com.br/projetos/flex/menuvertical2.zip

Similar Messages

  • When i login to yahoo, my first click results in the spinning wheel. Could i have a virus Or why does it only happen when i login to yahoo?

    When i login to yahoo, my first click results in the spinning wheel. Could i have a virus? Or why does it only happen when i login to yahoo?

    Firefox allows to select part of a word. You can select a word with a double click and use Shift + left click to set the end of the selection, so you need to click at the end of the last word instead of in it.

  • h:CommandLink : Action event not called on the first click

    Hi,
    I am facing a problem here.
    I have a JSF page:
    When I first load the page, I have few text boxes and dropdowns. With out doing anything If I click the <h:commandLink I call an action in my pagecode.
    But the problem is on the very first load of the page, without doing anything if I click on the command link action event in my pagecode is not called, but If I click on the link the second timethe pagecode actionevent is called.
    So I think tried submitting the form in the JSF page onclik of the commandlink it works in my Local IBM RAD. But doesnot work in the WebSphere Portal.
    So can you tell me if I can submit the form atleast once when the page loads for the first time
    This is my command link:
    <tr>
    <td colspan="2" align="center">
    <h:commandLink styleClass="commandLink" id="lnkBtnCreateUser" action="#{pc_Createuser.doLnkBtnCreateUserAction}">
    <hx:graphicImageEx styleClass="graphicImageEx" id="imgBtnCreateUser" value="/theme/images/btnCreateUser.gif" style="border:0;cursor:pointer" onclick="return onFormSubmit();"></hx:graphicImageEx>
    </h:commandLink>
    </td>
    </tr>
    function onFormSubmit(){
    //enabling all the disable components
    So can anybody please help me on this. Why exactly the pageCode action event is not called for the very first click ???

    seems that a prependID="false" attribute in the respective form was causing the trouble. At least it's working now that I've deleted it.
    I introduced it, because last time the component ID's messed up the output of the error/success messages ("j_id:xxx isn't that of a usefull information to the enduser).
    Edited by: stger on Apr 9, 2008 5:41 PM

  • Firefox icon in the Taskbar will not start on the first click, sometimes needing to click 2 or 3 times for it to open (and this is after a fresh reboot with Firefox not running in Task Manager.

    Upon a fresh reboot the Firefox icon in the Taskbar will not work on the first click, sometimes it will not work at all and I need to go to Start-> then click the Firefox icon in the Start menu. Why is it that the icon won't start up on the first click?

    Same issue - however firefox will open but I can not click on only of my tool bar shortcuts - the writing on the google age is greyed out so I can not click on anything. Still no resolution? I have deleted the folders and re-installed - it will open and then locks and it will not work????

  • Code fails to paint on first click, works well on subsequent click.

    This code runs when I click a button:
            Graphics g = jPanel3.getGraphics();
            g.drawImage(i, 0, 0, Iob);The first time I click this button after program load, the image half flashes up where it's supposed to go, then reverts to the original background color.
    Every time after that, I click and it draws the image stored in i onto jPanel3, which is what I want, but I'm stumped on why this doesn't work on the first click.
    Thanks in advance.
    Hans.

    using something like
                    jPanel3.paintComponents(g);or
                    jPanel3.paint(g);
    I don't understand how this works.
    I have to make a Graphics variable g equal to something in order to initialize it and use it, why can't i make it equal to the graphics of the component I want to paint?
    people keep telling me not to use getGraphics().
    what should i use then?
    Graphics g = ????????:if i use null, i get exceptions, what do I make it equal to if not component.getGraphics?

  • Firefox has gummed up by yahoo mail. 1/2 the time the email doesn't open, it doesn't 'move' on the first click. Anyone else have these problems?

    My yahoo email has many 'delays' when trying to open and I have to hit "retry" and generally that doesn't work either. Since I downloaded the new FFox, it's awful! I'm sorry, but it is. I have these problems on both of my desktop computers.
    Also, when I try to 'move' an email to a yahoo folder, it generally won't move on the first click, but takes 2 or 3 or more to get the email moved. What did you people do?
    Vicki

    IF you have restored your iPhone and still have these problems, you have a defective iPhone and there is nothing anyone here can help you with -- you have to contact Apple for service.

  • Trackpad of MacBook Pro mid 2009 does not respond to the first click/tap

    Have the following problem and wasn't able to find any sollution here somewhere
    if I click on a link or choose a checkbox or do anything by clicking it does not work with the first click/tap and I have all settings right.
    a PRAM reset had no effect on that problem.
    so I still have to click/tap several times to access a menu, a safari-tab, or anything else…

    thank you.
    still I am not sure if it really solved my problem, but it looks very good.
    was a bit irritated in the beginning, because I got no feadback if I had done the SMC reset right.
    If the problem will be back too soon, I will continue this discussion.
    THX

  • Disable Button After First Click

    I have a button with PPR attached to it that generates a BI Publisher report within an OAF page. The report is correctly generated upon clicking the button. I also have SPEL defined for the DISABLED property of the button such that it can only be clicked once. I have done this via the suggested propertiesVO. For troubleshooting purposes, the button's disabled property is correctly being set after the first click as long as the BIP report is not generated as part of the process. However, once I put in the code for the BIP report (output is PDF), the button is no longer being disabled after the first click.
    Is control transferred in such a way that the PPR is NOT being executed?
    If I remove the code that writes the PDF to the servlet as defined by several posts and online references, the button is disabled as expected. However, once the code is put back in for the document to be generated, PPR stops working for the button.
    To summarize, each component works separately:
    1) SPEL for the disabled property of a button works as expected. After the first click, the button is disabled
    2) The BIP report (PDF) is correctly generated by the button
    3) If both the SPEL is used in conjunction with the PDF document generation process, the button is no longer disabled after the first click
    Please advise.
    Regards,
    LC

    Suggestions?

  • Ignore first click on background window?

    When you click on a window that is not frontmost, it brings the window to the front, but often also performs some action if you happened to hit a button or something. I hate this with fiery passion. Is there any way to turn it off?
    It is inconsistent, in that it happens in most Cocoa applications but few Carbon applications, but I think I'd still hate it if everything worked the Cocoa way.

    It's a time saver when you do it on purpose, but greatly increases the chance of an accident for novice users. I know that it is possible to manipulate many controls in background windows in Cocoa apps by holding down the command (⌘) key - this seems like the sensible approach, allowing advanced users to take advantage of advanced features, while new users can still use the computer while keeping things simple. I mean seriously - these days, who among those using a third party mouse doesn't have ⌘-click assigned to one of the supplementary buttons? I wish someone would prove me wrong, but I don't think it's possible to turn off the system's response to actions initiated by the "first click". I get the impressions there isn't anyone setting or enforcing human interface guidelines anymore...

  • Popup not center screen at the first click

    Hi All,
    I have just met an issue:
    At a ViewProduct dialog, when click on the photo (the resized one) to show a popup which displays the full-size photo. I want center the popup on sceen (as in http://msdn.microsoft.com/en-us/library/jj733572.aspx#centerpopup).
    The width & height of the photo in popup are "Fit to Content". At the first click, the popup's not centered. After closing the popup, from the second click in ViewProduct, the popup's centered correctly.
    Hope you can help me. Thankyou.
    My code:
    myapp.ViewProduct.PhotoURL1_postRender = function (element, contentItem) {
    // Write code here.
    displayPhoto(element);
    var img = $(element).find("img");
    $(element).css({
    'cursor': 'pointer'
    $(element).prop('title', 'Click here to display full-size photo');
    $(element).click(function () {
    // Note:If using JQuery Mobile 1.3 (or higher) use
    // "popupcreate" rather than "popupbeforeposition"
    $(window).one("popupbeforeposition", function (e) {
    $(e.target).popup({
    positionTo: "window",
    transtition: "flow"
    }, 100);
    contentItem.screen.showPopup("FullScreenPhoto");
    function displayPhoto(element) {
    $(element).css({
    'min-width': '100%',
    'min-height': '100%',
    'width': '100%',
    'height': '100%',
    'display': 'inline'
    $(element).find("div.msls-image-border").addClass("responsive");
    $(element).find("img").removeProp("style");
    $(element).find("img").addClass("responsive");

    Hi All,
    I have found a solution :-)
    myapp.ViewProduct.FullScreenPhoto_postRender = function (element, contentItem) {
    // Write code here.
    // to fix the popup not screen-centered at the Fist Click when photo is "Fit to Content"
    var myimg = $(element).find("img");
    $(myimg).one('load', function (e) {
    var container = $(element).closest("div.ui-popup-container.ui-popup-active");
    // Ref source: css-tricks.com/snippets/jquery/get-an-images-native-width/
    // Create new offscreen image to test
    var theImage = new Image();
    theImage.src = myimg.attr("src");
    // Get accurate measurements from that.
    var imageWidth = theImage.width;
    var imageHeight = theImage.height;
    // Ref source: stackoverflow.com/questions/7060422/center-item-on-screen-with-jquery
    var obj = $(container);
    var obj_width = $(container).outerWidth(true);
    var obj_height = $(container).outerHeight(true);
    var window_width = window.innerWidth ? window.innerWidth : $(window).width();
    var window_height = window.innerHeight ? window.innerHeight : $(window).height();
    if ($(window).width() > imageWidth) {
    $(container).animate({ left: (window_width - obj_width) / 2, top: (window_height - obj_height) / 2 }, 0);
    else {
    $(container).animate({ left: 0, top: 0 }, 0); //for very large image
    element.title = "Click to close";
    $(element).css({
    'cursor': 'pointer'
    $(element).click(function () {
    contentItem.screen.closePopup("FullScreenPhoto"); //click to close
    Thanks to ezanker & QuickFix at the link Jquery Mobile Popup not centered on first click (http://stackoverflow.com/questions/21304763/jquery-mobile-popup-not-centered-on-first-click?rq=1) and Center an element on the screen using jQuery (http://www.queness.com/code-snippet/6853/center-an-element-on-the-screen-using-jquery) and CSS-Tricks at http://css-tricks.com/snippets/jquery/get-an-images-native-width/ and at Chris Ingis http://stackoverflow.com/questions/7060422/center-item-on-screen-with-jquery

  • When i launch Bridge CC and make first click on any button, the program freezes.

    When i launch Bridge CC and make first click on any button, the program freezes. How to solve this problem?

    This error can be caused by the My Web Tattoo extension (application?) that shows as FBSMTWB in your user agent.<br />
    See http://help.fastbrowsersearch.com/
    You may need to reset the user agent after you have removed that program.
    See [[Web sites or add-ons incorrectly report incompatible browser]]

  • Spinning Beach Ball at first click on any button

    Started out as spinning beach ball on the desk top but pointer was visible and moving on bars but not functional, would drop down but would not force quit. Shut down the hard way and now the SBB is on with the first click of any button and stays on everywhere. Have plenty of RAM and warranty just passed. Please give me suggestions. Thanks rohnjon
    MacOSXpanther   Mac OS X (10.3)  

    Repair Permissions.
    Go to Mac HD and open it and then choose Applications and open it then scroll down to Utilities and Open it then go to Disk Utility and when you open it click and highlight Mac HD and at the bottom choose Verify Permissions, after it completes this then click on Repair Permissions.
    If you can't do this and are unable to retrieve your system.
    I am afraid you might have to use the Disc's and do one or the other options Either Archive Install or Erase Install.
    I Know this is a pain, but not knowing exactly what all you have done I suggest a complete Erase Install.
    This will wipe everything off your hard drive and will reInstall your operating system. I f you had any other 3rd party programs you will have to Install them again.
    Cheers Don

  • Can't hear first click of metronome.

    When I press record and get my count in which is 1 bar, I can't hear the first click. I can see it visually on the master track but it is not audible. I'm accustomed to hearing 4 counts as opposed to 3. I think I pressed a button by mistake because it has only been this way recently. Thanks in advance for any advice.

    The issue fixed itself after a few tries. Thanks anyway

  • How do i get the textbox to stop moving around after first click

    I can't figure out how to get the textbox to stop moving after i set the textbox location with the first click. help please?
    protected function txtloc_BTN_clickHandler(event:MouseEvent):void
                    addEventListener(MouseEvent.CLICK,newTxt);
                public function newTxt(event:Event):void
                    addEventListener(MouseEvent.CLICK,newTxt2);
                } //end newtxt
                public function newTxt2(event:Event):void
                    x1 = mouseX;
                    y1 = mouseY;
                    usrtxtlabel.visible;
                    usrtxtlabel.x = x1;
                    usrtxtlabel.y = y1;
                    usrtxtlabel.x;
                    usrtxtlabel.y;
                    //usrtxt.focusRect = true;
                    removeEventListener(MouseEvent.CLICK, txtloc_BTN_clickHandler); //does not work
                public function removeHandler(event:Event):void
            ]]>
        </fx:Script>
        <s:TextInput x="39" y="252" width="142" height="30" id="txtinput" fontFamily="Times New Roman"/>
        <s:Label x="59" y="67" width="104" height="32" text="{txtinput.text}" id="usrtxtlabel"/>
    <s:Button x="394" y="252" label="txt location" id="txtloc_BTN" click="txtloc_BTN_clickHandler(event)"/>

    remove both listeners.

  • Why double click not working ?

    if the system have wizip/winrar installed...does it block to run executable jar whence they are doble-clicked ?
    because when i doble-click on the executable jar file....it opens up in the winrar...it displays all the directory structure in the jar file.....but it never executes.
    i have a jar in c:\
    and i can run this way....
    C:\>java -jar psae.jar Philip
    Hello World Philip
    why double click not working ?

    This is because winzip or winrar has taken over the
    Windows association with files of type .jar.
    Assuming XP.YES.....its windows XP.
    Click on the tools menu in any explorer window,
    select "folder options" and choose the "file type"
    tab. i tried that also earlier....anyway, here again one more time
    please look at
    http://img107.imageshack.us/my.php?image=nojar7ah.jpg
    There is NO .JAR file association i find in that list.
    you need to change the associaton of 'jar' to
    "Opens with Java"

Maybe you are looking for