State of the mouse with menu items that overlap control

Hello

I have a problem with the recovery of the location of the mouse using GetGraphCoordsFromPoint...

I use the return status of GetGraphCoordsFromPoint to determine if the mouse cursor is over the plot of my graph control area (1) or not (0) to switch between styles of mouse (VAL_DEFAULT_CURSOR against VAL_CROSS_HAIR_CURSOR).

It works in most cases...

Above the Panel, there is a bar menu, located below is the xy graph. Now, if the mouse opens a menu and is the style of mouse on the menu (and also on the chart) depends on history of mouse:

If the mouse has always been above the menu, it is not recognized by GetGraphCoordsFromPoint be loacted in the graph - which is what I would like to see, in this case of the style of the cursor is always the default style.

Now, if the mouse leaves the menu for a short distance, the menu does not disappear (only if the mouse is to a greater distance) and acccordingly GetGraphCoordsFromPoint realizes that the mouse is over the chart. It is correct and as expected, too. (the style of the mouse is replaced by a sight then)

Now, if I move the mouse over the menu, it is not recognized by GetGraphCoordsFromPoint, unfortunately, and the style of the mouse is not being in default.

Am I missing something, or is there a way to fix this behavior? Styles different from the mouse on a menu is confusing for the user, and I would avoid it, of course

Thank you...

Hi Wolfgang,.

It is not a very good way to work around this problem. As you found, Panel moving events are sent to the callback of the Committee even a menu is followed, and when you change the cursor of the mouse that it also affects any menu that can be active at a time.

If the cursor changes do not at all while the menu is active, even if the user moves on the graph, there is a possible strategy don't mind you can pursue to remedy the situation. It consists of trying to detect if a menu is active, so that you do not change the cursor when the menu is active. Unfortunately, this is easier said than done. Although it is easy to be notified whenever a new menu is activated (via a menu drive recall) there is no right way to be notified when the menu disappears. And there are several ways in which it can disappear. So it is not possible to set an internal flag that tracks when the menu is active.

However, it is possible to know if the menu is active at the time you receive the Panel move event (or in the timer tick event, although I'm not completely sure why you also use a timer). You can't do it with the UI CVI library, but you can, using the Windows SDK, in a way a little round point.

The idea is to know which window is the top-level window. And if she is not the window of the Control Panel, then you should be able to assume that a menu is active and therefore refrain from changing the cursor. Note that you must also make sure that the active window belongs to your process, because there could be a number any other windows that might be the 'top' window at any time. But if it belongs to your process and it is not your Panel, then presumably it's the menu.

I did a quick test with the following code and it seems to work, although you might want to test more thoroughly I did:

topHwnd = GetTopWindow (NULL);
GetWindowModuleFileName (topHwnd, topHwndModule, MAX_PATHNAME_LEN);

GetPanelAttribute (Panel, ATTR_SYSTEM_WINDOW_HANDLE, (intptr_t *) & panelHwnd);
GetWindowModuleFileName (panelHwnd, panelHwndModule, MAX_PATHNAME_LEN);

If (! strcmp (topHwndModule, panelHwndModule) & panelHwnd! = topHwnd)
return 0; do not change the cursor, unless the Panel is really on top

Good luck

Luis

Tags: NI Software

Similar Questions

  • deal with menu options that overlap?

    I have a bunch of menus that will be on his knees between them at different times, and they have buttons in them that you can click to order. But when I have the top menu B menu has, like cards, I don't want orders delivery used in menu b. reacting with buttons on the menu under. I would normally just move the menus, but in this case, they should be prepared as maps.

    Is it possible to temporarily disable the buttons/delivery movieclips in the lower levels of menu?

    Thank you.

    You can set the enabled property of the true/false as needed to allow/disallow the button works correctly.

  • I want to create a shortcut to the my Bank sign in page Web site, but there is no menu item that says: "create shortcut".

    I want to create a shortcut to the my Bank sign in page Web site, but there is no menu item that says: "create shortcut" when I right click... someone has any information as to why some sites don't work? I did several shortcuts to other web pages, such as the Caisse populaire and other banks on my desk.

    Thank you

    When you're at the page, save it as a favorite. Take the favorite and drag it to the desktop or the taskbar. Shortcut created.

  • Close application when the application switch menu item to invoke

    Hello, I made application for blackberry (os 5,6,7), but it has a strange behavior.

    When I press the switch application menu item, my request is close, so I can't get back to my application once I switched to another application.

    I have replace my onClose to be like this

    public boolean onClose()
    {
    This.Close ();
    Returns true;
    UiApplication.getUiApplication () .requestBackground ();
    getApplication () .requestBackground ();
    Returns true;
    }

    but the problem remains.

    Please help me solve this problem

    When you change your application, the close method is not pushed directly so I think that you look elsewhere this

    Try to use the Application Switch with an application example - say the sample HelloWorld application.  I think he won't, which suggests that the problem is in your application.

    There are three places to look:

    (a) the Application disable method is pressed when the request is sent to the background.  Maybe you have coded it and it closes the application

    (b) you have a certain type of background processing controls (isForeground()) and reacts according to what it finds.

    (c) in the method onObscured() to one of theFields/screen on the display at once.  .

    Other than that, I think you're looking for a general bug in your application.  The starting point is to look at the debugging log when you do this - look for anything from your application you consider odd.

  • I lost the connection between the icons on the desktop and the program. When I click on an icon, I get the OPEN WITH menu.

    I click right-properties and I get C:\Windows\system32\rundll32.exe Application not found.

    I tried to download fixit and got the OPEN WITH menu.

    It sounds like your .lnk and/or your .exe file associations may have been lost.

    You can try to fix the ".exe" and ".lnk" file associations:
    'Windows XP file Association problems'
      <>http://www.dougknox.com/XP/file_assoc.htm >

    or you can try to do a system restore to a point in time before you had this problem:
    "How to restore Windows XP to a previous state"
      <>http://support.Microsoft.com/kb/306084 >
    If you have a .exe association problem, you may need to run the restore of the system from the command prompt:
    "How to start the System Restore tool by using the option of safe mode with the command prompt in Windows XP"
      <>http://support.Microsoft.com/kb/304449 >

    HTH,
    JW

  • improving your skills of the mouse with windows gadgets

    Improving your skills of the mouse with windows gadgets?

    Hello

     
     
    Are you referring to windows gadgets that can help you improve the skills of the mouse?

     
     
     
    You can visit the link of the article of Microsoft that will guide you on how to ask questions below.
    Suggestions for a question on the help forums
    http://support.Microsoft.com/kb/555375
     
    Reply with more information about the issue so that we can help you better.
  • Can we hide/show the mouse with an Action or Script?

    Hi all

    I'm developing a simulation using boxes to click in Captivate 4, on Windows XP. If the user clicks in the right place, the slide continues and shows the user what to do. If the user clicks on the exact spot, the simulation goes directly to the next slide. The problem is, successful or not, when the user moves to the next slide, saved the mouse pointer displayed on the slide. If I hide the mouse, then it remains hidden, even if the user clicks outside the box too many times and the simulation continues to show the user what to do. It's like things on the screen just select or click on themselves.

    I know the visibility of the mouse is used differently in the timeline to other objects. This isn't a particularly big deal, as long as there is a way to control the visibility of the mouse for simulations (one of the main points of sale of Captivate). Is there a way to control the visibility of the mouse with an Action or Script?

    The current settings for my click boxes are:

    clickbox_settings.png

    I tried to assign an Action (several actions, really) to hide, display, activate or deactivate the mouse but the mouse doesn't seem to be available to do!

    action_settings_show_w_droplist_rsz.png

    Am I missing something?

    Thank you

    ~ jeff

    Jeff,

    No problem, looks like an argument anyway you look at it. With the idea of image of concealment, just to clarify, you shouldn't have to reframe the context if you can get out with the help of the entire background graphic. All your background images are already in the library of backgrounds folder, so if you drag and drop the background image of the library on the slide, you can instantly use it as a picture rather than just a background image object.

    Just a thought, again in the case that it helps.

    d

  • Is it possible to change the State of the mouse?

    Hi all

    I want to set the State of the mouse as "busy". y at - it possible.

    Iqbal

    Hello

    try something like that.

    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');
    

    If its useful/correct it please mark thank you.

    Sarah

  • I want to get rid of the Bing screen, but there is no "menu at the top of the Firefox window" for me "Select tools and then select the Add-ons menu item.

    I suddenly have a 'Bing' screen when I connect on Firefox - and I want to get rid of it. The support section of Firefox says
    1 "in the menu at the top of the Firefox window, seledt tools, and then select the Add-ons menu item." - but I don't see any 'menu item' tools, or much less modules.
    2. "in the window modules, click the Extensions Panel"- but how to find the Modules window?
    3. find the Bing and extended support to search toolbar in the list and then click on disable for each of them. ' - but what and where exactly is - this?

    At the top of the screen is only an icon of Yahoo to the left and to the right of it, a search box, 'Web search', 'My Apps,' Yellow Pages,""Weather","Updates"and"Skype ". to the right of the people, there is a green cross saying "add more applications. to your toolbar"and to the right of this one kind of gear shift looking icon saying"toolbar settings ".
    So, in short, how can I get rid of the Bing screen and how to access these tools?
    Thank you.

    Versions of Firefox 3.6 + have a feature to allow the user to hide the Menu bar.

    Press the Alt key to temporarily show the Menu bar, then open view > toolbars and select menu bar, so it has a check mark.

    The F10 can also be used on most PCs to temporarily reveal the menu bar.

    https://support.Mozilla.com/en-us/KB/menu+bar+is+missing

  • How can I change the "right click" menu for a table control?

    Hello

    How can I change the "right-click menu" of a table control. I would like to be able to remove the ability to add or remove columns and maybe more selections. I want to keep the possibility of

    Add or remove lines

    Right-click on your table.  Then go to advanced-> DURATION Shortcut Menu-> Edit.

  • Can the Format date/timestring service that can control the execution of the loop to a VI?

    Can the Format date/timestring service that can control the execution of the loop to a VI?

    Example,

    a VI is running at August 25, 2010 and print a txtdata(3)) '100825.

    Then follow when time system running at 2359hrs, August 25, 2010 at 0000hrs, August 26, 2010.

    and print a txtdata(3)) '100826.

    How?

    When the system changes a new date, problems occur.


  • How to use the script "click menu item" command on a menu item for an application that runs under another user?

    Hey everyone, quick question...

    I am trying to run this script:

    say application "System events".

    say process of "iTunes."

    click on menu item "Start Station" from the menu 'Song' to menu bar item 'Song' in the menu bar 1

    end say

    end say



    The idea behind this is to start a song selected currently playing station. I know, it's not hard to do it manually, but I want to be able to do it without having to call the iTunes app to the front. Now, this script works for my own iTunes app, but I have a second instance of iTunes connecting the second user on my computer at home (User2), with its own separate library and account and all. script I have works fine for an instance of iTunes under my user account, but I can't figure out how to specify which instance of iTunes, I'd like the script to work on.




    I want to emphasize as an FYI that i use.


    the shell script "connection f User2 /Applications/iTunes.app/Contents/MacOS/iTunes > & - 2 > & - &" with administrator privileges

    -to open my second instance of iTunes as User2



    is there a way to change the "process"iTunes"to say" something like 'process 'unix ID' say' and have the ID for each respective instance of iTunes unix?


    Let me know if I do not make sense... Thanks in advance to anyone who can help






    You can target a process of application using various properties of system events, for example:

    tell application "System Events"
      tell first item of (get application processes whose unix id is 15174) -- or whatever id
        activate --> needed when using GUI scripting
        get properties
      end tell
    end tell
    
  • Laptop screen stays black with the mouse cursor only after that comes the HP and Windows logo

    Hi all

    No, my laptop model is HP Pavilion dv6 1337tx. My OS is Windows 7 Home Premium 32 bit. So, today, I shut my laptop down by force by pressing the power button because it did not at this time. Then the next time I turned it the wrong problem started. Whenever I'm on the HP logo sometimes and then the Windows logo comes also. But then the screen stays black and the mouse cursor appears. So, what can be the cause of this problem? I also tried to open with 'safe mode' and 'safe mode with command prompt', but they did not help either.

    Note - I tried the method of discharge after taking off the battery and holding down the power button. He could not help. All LEDS are working properly. I have no extra monitor, so I can't check the display elsewhere. Also, I ran the memory test which shows that everything is fine. Please suggest what I can do now as I can not enter the laptop now. What can be the reason?

    Black screen with blinking cursor:

  • Pairing the mouse with Surface

    I'm trying to pair the mouse Microsoft Wedge Touch with a Surface RT running Windows 8. It takes a long time to appear in the list of devices in the pair. On the rare occasion, it is not and I hit the pair, I get the message: "this has not worked. Try again and make sure that your device is still detectable. "I've been waiting with Microsoft support for half an hour and I always listen to shitty music.

    Does anyone have advice for me on how to fix it myself? Thanks in advance!

    Sue

    Hi Sue,

    If you try to use Microsoft compatible Bluetooth wireless keyboard or mouse and the input device does not work, maybe it's because your computer does not detect the device. Follow the steps in troubleshooting these items and check if you help:

    Troubleshoot Bluetooth devices

    https://www.Microsoft.com/surface/en-us/support/hardware-and-drivers/troubleshoot-Bluetooth-devices

    Troubleshooting: mouse

    http://www.Microsoft.com/hardware/en-us/help/support/troubleshooting/mouse/wireless-Bluetooth

    After troubleshooting, follow the steps in this link:

    Wedge Touch Mouse and the Arc Touch Mouse for Surface

    https://www.Microsoft.com/surface/en-us/support/touch-mouse-and-search/touch-mouse

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • The drop down menu boxes that appear under the heading of Firefox do not fill. A form of box on the screen, but it is empty. Given zero no has not solved the problem.

    The file, editing, display and help tabs that were on the previous version of FireFox Menu bar top are apparently incorporated into the "FireFox" drop-down box in the latest version of the browser. I was unable to open those tabs earlier, so by the recommendation of the Support Forum, I have Firefox on my laptop. Now not only the tabs above are missing after this reset, but the drop down menu does not open in any submenus. What I see now is a box on the surrounded black screen, but sub menu selections such as save as, print, copy etc are not shown in the box. This is why the Navigator is not functional in its current state.
    Does anyone have a fix for this problem that will not delete my favorites and other content stored on Firefox? Please save me to return to Internet Explorer.
    AJJC

    Try disabling hardware acceleration in Firefox.

Maybe you are looking for

  • Error Ox61011beb on HP Officejet 6500 e-709n code

    All of a sudden get the Ox61011beb error message on the printer tried the recommendations still got it... So what now?

  • trace voltage Vs current graph

    I have ground voltage Vs current graph. In this chart if you want to see your old graph if you select the time and date, if u get the old value. Please tell me how can I connect this value if I get this value when I select the date or the time.

  • Blue Screen UNEXPECTED_KERNEL_MODE_TRAP 0x1000007f ntkrnlpa.exe

    original title: BSOD with ntkrnlpa.exe tried a few driver updates but still little time to another one the BSOD Here's the Minidump file: Mini091310 - 02.dmp 13/09/2010 22:57:23 UNEXPECTED_KERNEL_MODE_TRAP 0x1000007f 0 x 00000008 0x805d3130 0x0000000

  • Freezing or IP security on the change of the IP address

    will have a small network of about 40 PC with LAn connectivity, but having a problem that each user changes time/time of their intellectual property. would it not possible to apply any password on the IP configuration, so that they can change the ip.

  • OEM Windows license is determined as being non-genuine

    I have Sony laptop computer which came with Windows Vista OEM. I was uopgrade to Windows & (also from Sony). When the recent reinstallation of the operating system installation of Windows Vista, and then upgrade to Windows 7, I installed Windows 7 di