Mouse events do not work on a button in a panel ran into a DLL

Hello.

I have a DLL that loads a Panel.

Since it is a DLL I can't do the RunUserInterface() function because the DLL would be stuck waiting for the events of Panel.

I don't the LoadPanel().

When I click with the mouse on one of the buttons, pushing it to the bottom of the event (simulating the button) doesn't happen and the recall does not work.

But if I press the tab key until the update reached the button and press ENTER, the reminder of the button is executed.

An even more interesting aspect is that this happens when I call the DLL TestStand, but on a request from my friends that calls the DLL just for debugging, all works well.

How can I activate mouse events?

Thanks for your help.

Hi Daniel,.

In order to exploit a CVI panel correctly, you must call RunUserInterface, ProcessSystemEvents or GetUserEvent to launch the user interface correctly, and you must call these functions the same in this thread that created the group. If you do not call one of these functions, some things may work, but others, specifically for mouse clicks, will not be. You can not count on TestStand calling these functions. The likely reason why your user interface works when you call into a CVI program is because this program CVI is probably calling one of these functions, while TestStand is not.

If you are unable to wait inside the DLL function after the panel display, then you need to rethink your application. You can watch the creation of a dedicated thread within your DLL that displays the user interface and performs then the event treatment indefinitely, allowing the thread that called the DLL to return immediately. Another alternative would be to have the same thread TestStand to call another function in the DLL several times, on a timer, which would do nothing more than calling ProcessSystemEvents, and then return.

This does not explain problem ebalci, since it dealt with events already in the UI thread (Similarly, built-in popup, such as MessagePopup functions, treat their own events). It seems as if these problems were caused by the sons of communication the hunger UI thread and not allowing it run. But I don't know why this would happen.

Luis

Tags: NI Software

Similar Questions

  • plugged an external mouse and now the keys and mouse pad do not work. in the properties it shows activated but the Activate button is not active.

    plugged an external mouse and now the keys and mouse pad do not work. in the properties it shows activated but the Activate button is not active.

    You can start in safe mode and restore the system.

  • Dynamic creation of buttons and events. Event was not working.

    Hi guys,.

    I am trying to create an application that will dynamically create buttons and events... Creating a button isn't a problem, but the event did not work. The code below is simple... 1. click on the button and it will create another button (dynamic)... If you click on the newly created button it should alert a test2...

    Anyone know how to implement this (which works )

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute"> "
    < mx:Script >
    <! [CDATA]

    Mx.controls import. *;

    private void onLoad (): void
    {
    var btn:Button = null;
    //
    Test2();
    BTN = new Button();
    BTN.label = "test";
    btn.addEventListener ("click", test2);
    this.addChild (btn);
    }

    private void test2 (): void
    {
    Alert.Show ('test', 'test');
    }

    []] >
    < / mx:Script >
    < mx:HBox id = "testbox.foobar.com" x = "0" y = "154" width = "100%" >
    < mx:Button label = "click" = "onLoad()"; / >
    < / mx:HBox >

    < / mx:Application >

    Hi gretags,

    You forgot to specify the argument in the eventListener... that's why you are getting the runtime script error...

    Check the code below... Now the alert will appear...


    http://www.Adobe.com/2006/mxml"layout ="absolute">
       
                   
    Mx.controls import. *;
           
           
    private void onLoad (): void
    {
    var btn:Button = null;
    //
    Test2();
    BTN = new Button();
    BTN.label = "test";
    btn.addEventListener ("click", test2);
    this.addChild (btn);
    }
           
    private void test2(event:MouseEvent):void
    {
    Alert.Show ('test', 'test');
    }
           
           
    ]]>
        

       
           
       

       

    If this post answers your question or assistance, please mark it as such.

    Thank you

    Jean Claude Chari

  • Satellite NB10T-A-101 - mouse pad does not work

    I have a touch screen for Toshiba Satellite NB10T-A-101, the touch screen works very well but I use mostly the mouse pad I find using the slider easier.

    But recently my guarded cursor freezing for a second or two and then to spend once again, but now the mouse pad seems not working with the left and right click buttons work but not the touchpad.

    I made sure the touchpad is enabled in the mouse settings, so I don't really know what to do now.
    Any suggestions would be greatly appreciated
    Thank you

    Hello

    Have Hmm you also checked the FN + F5 key combination?
    This would enable and disable the touchpad as well.

    But from my point of view, it would be possible that the touchpad module is malfunctioning.
    I m thinking about the hardware malfunction because the touchpad buttons work and just touch the touch work area module doesn't correctly.

    Usually, if the touchpad would be handicapped by any software, both; as well as the touch buttons does not work.

  • I need a driver/files mouhid.sys, my mouse support does not work. Please thank you!

    I need a driver/files mouhid.sys, my mouse support does not work.  Please thank you!

    Hmm, a strange thing to have disappeared.  Do you have a virus or checked for malware scanner?

    The mouhid.sys file is supposed to be in % systemroot%\system32\drivers.  You pouvez find a copy of it in % systemroot%\dllcache.  If it's not in... \drivers and is in... \dllcache, recopy the... \drivers.  (You may need to do this in Mode safe.)

    Except for the above bit of luck, there are several ways to recover.

    1. use msconfig:

    Get your installation CD or locate a copy online
    Since an administrator account, run msconfig ( -R, msconfig)
    When "msconfig" opens, select the "Général" tab and click on the button "expand file...". »
    (This will open the window to "Develop a Source of Installation file")

    Enter 'mouhid.sys' in "file to restore:
    Enter the path to the DRIVER. CAB file in the \i386 on your installation media directory.
    (or browse to...)
    Enter "c:\windows\system32\drivers" in the "save in:" entry.
    Click "expand".
    'mouhid.sys' is now where never told you develop to...

    2 use the utility auditor of system files (SFC) to check the missing files and restore them if necessary.
    You will again need your installation media and, if you have installed the Service Packs, the CD-ROM for
    the latest Service Pack, you have installed.

    From an administrator account, type: -R, sfc/scannow

    SFC calls for, first of all, your installation media, and then later the service pack CD-ROM.  If SFC wants to replace the files, leave.  If the SFC rejects your Service Pack CD-ROM, read the KB900910 Microsoft Knowledge base article.  Note that this article applies to SP2, but is also applicable to the SP3.  Just use your common sense and use SP3 where the article refers to SP2.

    If you don't have a CD-ROM Service Pack 3, or order it (U.S. / Canada , Europe, Africa , Asia or South America ) from Microsoft or download the ISO (here ) and burn it.  Be sure to Select the appropriate language if you download ISO.  Note, I recommend that you install Service Pack 3 on a CD-ROM, rather than through Windows Update so that youpouvez use SFC with success!

    Please, vote if it is useful!  Please, click on Mark as answer if that answers your question.

  • The Microsoft 3500 wireless mobile mouse settings do not work.

    Original title: the mouse settings do not work.

    I had a mouse Microsoft Optical Wheel for several years and several computers.  I got the wheel button double-click on the value.  The mouse does not so I had to buy a replacement.  I found a Microsoft 3500 wireless mobile mouse, I couldn't find a wired mouse anywhere.  I downloaded the center of control of the mouse and adjust wheel double-click button.  It is not double-click.  The setting is in the program, the rest of the mouse buttons work ok, but he won't just double-click even if the program says it is how it is defined.  Windows 7 Edition home premium, door of entry DX4860.

    I guess Microsoft has known there was a problem after all, the last batch of automatic updates seems to have fixed.

  • Given that I have install iOS 9.3.1 my iPhone 6 Plus is very slow, in the speakers and keyboard, I can't watch videos in YouTube or Facebook and sometimes do not work the volume buttons and lock

    Given that I have install iOS 9.3.1 my iPhone 6 Plus is very slow, in the speakers and keyboard, I can't watch videos in YouTube or Facebook and sometimes do not work the volume buttons and the lock. I rebooted my phone like 10 times and it does not work, I need help,

    Have you tried a forced reboot? Hold down the home and Sleep/Wake buttons simultaneously for about 15-20 seconds , until the Apple logo appears. You won't lose anything.

    If this does not help, I would like to try a restore:

    https://support.Apple.com/en-us/HT201252

  • Satellite L775 - mouse pad does not work properly

    I have a laptop Toshiba Satellite L775. I run Win 7 Home Premium. My mouse pad does not work properly. I also have a Logitech Anywhere MX wireless mouse. I tried the mouse pad to work properly with the key FN and F9, but it does not work. And you really have no idea if that turns or out of the mousepad anyway, subj for another time I guess.

    What does not work, but I have to do is to go to Control Panel then mouse option load that and just scroll the tabs without changing what each time and then close and the touch pad works. But only for this session. If I have my laptop nearby, or turn it off, I have to start throughout the whole process.

    What's past and how to fix this?

    Thank you very much.

    > What's past and how to fix this?
    After reading your ad, I still don t know what is your problem.
    > My mouse pad is not working properly
    How to understand this? What does not work properly? What happen exactly when you start your laptop?

  • SW5-271 switch 12 - functions of a mouse sometimes do not work.

    Hello

    Sometimes when I turn on the keyboard, the mouse functions do not work. I can't left or do a right-click and node pointer does not respond. Any ideas?

    Thank you!

    It turns out that maybe that's a physical problem. I ended up getting it exchanged and did not have problems with keyboard and mouse.

  • My optical mouse 3000 does not work even if the red light is on in the background

    My optical mouse 3000 does not work even if the red light is on in the background

    Hi Russell,

    Thank you to contact Microsoft Community and we will be happy to help you with your concern.

    According to the description, it looks like you are facing a problem with the optical mouse 3000.

    It would be great if you could answer these questions to help you further.

    1. have you made changes on the computer before this problem?

    2. you receive an error message or error code?
    3 is confined with any specific application?

    I suggest you to see the steps in the following Microsoft article.


    Mouse, touchpad and keyboard under Windows problems:
    http://windows.microsoft.com/en-US/windows/help/mouse-touchpad-and-keyboard-problems-in-windows

    Troubleshoot the incidents of the response to the mouse or wireless keyboard: http://support.microsoft.com/kb/838398

    Troubleshoot a wireless mouse that does not correctly: http://support.microsoft.com/kb/321122

    We would be more than happy to help you if the steps above did not solve the problem.

  • The mouse settings do not work because rundull32 has stopped working

    My scrolling on the touchpad function does not work. I can't find any adjustments for the touch pad.

    I can't go in the settings of the mouse as "mouse settings do not work because rundull32 has stopped working".

    I tried to use Registry Mechanic and it did not work.

    How can I fix

    My scrolling on the touchpad function does not work. I can't find any adjustments for the touch pad.

    I can't go in the settings of the mouse as "mouse settings do not work because rundull32 has stopped working".

    I tried to use Registry Mechanic and it did not work.

    How can I fix

    do not use to all registry cleaners. they cause more problem, rather than their setting.

    type msconfig in windows in startmenu searchbox, and then press ENTER, then select normal startup, then click on apply then ok then restart your pc see if that fixes the problem? If it did not then:

    scanning using the preforms

    http://www.Malwarebytes.org/

    http://www.systweak.com/AntiSpyware/

    http://www.free-AV.com/en/download/index.html

    Make sure your system is clean first. use ccleaner to get rid of junkfiles http://www.piriform.com/ccleaner/download

    try to update your mouse driver software. (get the latest updates of your pc manufacturer website)

  • APEX 5. Dynamic action on the CHANGE event does not work after applying the filter on IR.

    APEX 5.

    Dynamic action for the CHANGE event does not work after applying the filter on IR.

    Event: Change, selection Type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry

    Real action

    Selection type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry, Action: run the Javascript Code

    Is TI WHEREAS behavior?

    I know, I can work around this problem by using the Refresh event and javascript, but I prefer DA and if possible Change event.

    Concerning

    mdyla

    mdyla wrote:

    It is, how to force them reallocate dynamic Action in the event of CHANGE of the input elements after refresh of IR region.

    Set the dynamic scope of the event action to Dynamics.

  • Part of the tree with trigger WHEN MOUSE DOUBLECLICK does not work

    Hello

    I have the element of the tree to the form with dynamic data, these data extend to these point and maybe see the rim under this field, if the tree node show in the tree after scrolling element these point relaxation WHEN MOUSE DOUBLECLICK does not work.

    Any suggestion?

    Thank you

    I would use the WHEN-TREE-NODE-SET-trigger

  • using Xp the sd popup does not work on the insertion of the sd chip into the slot, how can it be repaired?

    normally on the insertion of the sd chip a pop-up dialog box appears asking what route you want that information to sd etc. This pop up does not work and the only way I can get into the sd information is to search on D:, then click on 'Open' please notify if MS can restore the pop up facillity?

    Hi JohnWack,

    Welcome to the Microsoft Community Forums.

    We're here to help and guide you in the right direction.

    According to the description of the problem, I understand that you do not get the AutoPlay option when you insert the SD chip into the Windows XP computer.

    -What do you mean by "what route you want to than the sd information etc."? Are you referring to the auto play feature?

    Try these methods.

    Method 1

    Double-click on "My Computer", right-click on the drive you want to Auto play and click 'properties '.

    Click the 'Auto play '.

    Method 2

    Steps to enable AutoPlay.

    1. start, click run, type Gpedit.msc in the Open box, and then click OK.
    2. under Computer Configuration, expand models of administration and then click System.
    3. in the settings pane, do a right click Enable Autoplay, and then click Properties.

    For your reference.

    Windows XP does not recognize a secure digital card when you reinsert it after you remove it
    http://support.Microsoft.com/kb/812661

    It will be useful.
    Let us know if you encounter problems under windows in the future. We will be happy to help you.

  • Mouse pad does not work properly

    I bought my laptop toshiba 2 moths ago, but yesterday, my mouse pad no longer works correctly.

    I can still use it to move the arrow on the screen but cannot use it to doubleclick on something else.
    I need to use it in conjunction with my left hand button which is very frustrating.

    I was wondering if anyone had any ideas how to solve this problem, thanks

    On this virtual path, it is not easy to understand what is the problem there. It is not easy to tell if problem described is related to the touchpad software.

    Try to do system restore and roll back the OS a few days back and check if the same problem persists.

    By the way: which laptop model you have and what operating system are you using?

Maybe you are looking for