Avoid window getting focus after pressing a mouse button on it

I want that a window does not get focus although I press a mouse button on it, in Windows XP.
I have search in Microsoft help and this fact is controlled by the Operating System itself. The notification that is sent after the user presses a mouse button is WM_MOUSEACTIVATE notification. The return value of this notification indicates the behaviour of the window after the mouse down, existing 4 options: MA_ACTIVATE, MA_ACTIVATEANDEAT; MA_NOACTIVATE & MA_NOACTIVATEANDEAT. The default is the first one, but I want to change the behaviour of the window to be the the third one: MA_NOACTIVATE, that does not activate the window, and does not discard the mouse message. The function that performs this is DefWindowProc according to the MSDN Help content.
Any help about doing this in Labview? Is there any special function in Labview that allows setting this behaviour to a window or should I use a Windows dll? In that case how can be programmed? Has anyone done it before? I'm working with Labview 8.6.1, and I haven't found anything about this. Any help will be very useful.
Thank you very much in advance.
David Fernández

It is the front panel window of a VI which I don't want to get focus. I have tried to achive this with property nodes, but the problem I think that cannot be solved in this way, because is the Operative System that gives the focus to the window when pressing a mouse button before Labview does anything. You can release the focus once the window have taken it with the Front Panel window focus property node, but what I really want is to keep the focus on the old window.
My idea is that the VI act as a background of my application, so never can be over the rest of the windows. Some of them are floating but others are standard and I don't want to use modal windows, so I cannot solve this with the Window Appearance options.
I have also tried to discard the mouse down in the Mouse Down? event, but I doesn't work, the window continues getting the focus although does not carry on any action.
Any suggestion?
Thank you for your interest
David F

Similar Messages

  • I want to turn my macbook air off. the shut down button already appeared but the mouse/cursor just hang and won't work. even after pressing the enter button to shut my mac off won't work. what will i do?

    i want to turn my macbook air off. the shut down button already appeared but the mouse/cursor just hang and won't work. even after pressing the enter button to shut my mac off won't work. what will i do?

    This is not a reply. I just want to elaborate on this problem.
    My computer freezes occasionally when it is used after being sleep for a while. The spinning ball appears and everything is totally disabled. Nothing on the keyboard works.
    The mouse moves, but does not work.
    The only solution is to turn the power off and on (losing all data in open applications.)
    I kept the System monitor running on the side to find out which program was running when the computer froze. The Monitor as well as all other applications froze, but the data showed:
    Firefox 18.4%
    Activity Monitor 0.9%
    Firefox Plugin 0.2%
    This is all the information I have. By the way, I am using iMac with OS 10.6.

  • Safari reloading previous page after pressing the back button

    Hey guys, here my question regarding Safari...
    Why is it that every time I do the two finger swipe on the trackpad to go back to the previous page I was viewing on the web, freaking Safari takes me back to that page instantly but then automatically reloads the page. WHY?!?!
    I don't have this issue while using Firefox. I swipe to go back to the previous page and it's instantly available for me to continue browzing / scrolling, etc.
    Another thing I noticed in Safari is that if I'm half way down a page and click on something, which takes me to that page but then I swipe to go back, it doesn't take me back to where I was on the page (say, half way down, for example) it take me up towards the top (not all the way at the top, mind you, just up higher, NOT WHERE I WAS WHEN I LEFT THE PAGE) Why does it do this?!?! You'd think that Apple would have designed Safari to be the next best thing since sliced bread and that it would work instantly and flawlessly. I'd imagine that Firefox and other browzers would be the ones taking forever to load but it's freakin Safari that is doing this, I don't get it.
    For the record, Firefox functions flawlessly. Instantly shows the page I was at when I press the back button or swipe back and it puts me BACK IN THE SAME SPOT THAT I WAS AT BEFORE I LEFT THE PAGE!!!!
    I use both browzers as I need two (use both for different things and have different bookmarks saved, etc) but I'm starting to HATE Safari simply for this one issue I'm having. It makes surfing the web take 2x as long as I not only have to wait for the page to RELOAD after pressing the back button, I also have to scroll back down to where I was before I left the page, which takes TIME!
    Someone please explain this to me. I looked at other posts regarding this issue but there is no clear solution to the problem.
    HELP.

    I think Apple should give the end user the choice whether to autoload the webpage when you press the back button or not. It would be a simple fix for this issue that it seems a lot of people are suffering with.
    I WANT to use the default web browser that my Macbook Pro came with (Safari) and don't really want to use the alternatives (Firefox, Chrome, etc) but surfing the web is a slow, time consuming process with this auto reload "feature".
    Apple, Please fix this ASAP!
    This is my first Apple laptop (was a long time Sony Vaio / Windows user) and I expected good things from my Mac, after hearing / reading all the reviews but this Safari issue is a MAJOR turn off for me. It needs to be address ASAP.

  • I have the iPhone 6 and after pressing the sleep button it will not come back on has this happened to anyone else

    Having trouble getting my iPhone 6 to start back up after pressing the sleep button. Have anyone has this problem?

    DDid you do a hard reset?   Sleep button and home button together until rebot.   Nothing erased.  

  • What should i do if my ipod doesn't light up after pressing the main button on the front?

    What should i do if my ipod touch doesn't light up after pressing the main button on the front of the screen?
    and also what should i do if i am unable to connect my ipod too the internet over wi-fi?

    Perhaps your iPod is turned Off? Try pressing the On/Off switch on the top side until the Apple logo appears on the screen.
    Regarding WiFi problems read the following:
    http://www.apple.com/support/ipodtouch/assistant/wifi/
    http://support.apple.com/kb/TS1398

  • Whenever I play anything on Windows Media Player Classic, the middle mouse button does not work as a vertical scroll in firefox, but instead shows a horizontal scroll that does not scroll the web pages. How can I fix this problem?

    Hi
    I have a windows 7 and whenever I play anything on Windows Media Player Classic, the middle mouse button does not work as a vertical scroll in firefox, but instead shows a horizontal scroll that does not scroll the web pages. How can I fix this problem?
    I hope that was clear.
    Thnx

    Hello kmanthie,
    I just sent you a private message. If you are not sure how to check your forum messages, this post has instructions.
    I worked on behalf of HP.

  • Edit a selected row in an alv report after pressing a push button ?

    hi all ,
    I want to edit a selected row in an alv report but that too after i press a push button . After pressing the push button , a pop up shud *** showing all the entries of the selected row which shud be editable and after editing it shud be saved into the database table.
    How can i do this please help asap ???

    May this prog. of mine can solve your requirement.
    REPORT z_demo_alv_jg.
    TYPE-POOLS                                                          *
    TYPE-POOLS: slis.
    INTERNAL TABLES/WORK AREAS/VARIABLES                                *
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
          i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
          w_field TYPE slis_fieldcat_alv,
          p_table LIKE dd02l-tabname,
          dy_table TYPE REF TO data,
          dy_tab TYPE REF TO data,
          dy_line TYPE REF TO data.
    FIELD-SYMBOLS                                                       *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
                   <dyn_wa> TYPE ANY,
                   <dyn_field> TYPE ANY,
                   <dyn_tab_temp> TYPE STANDARD TABLE.
    SELECTION SCREEN                                                    *
    PARAMETERS: tabname(30) TYPE c,
                lines(5)  TYPE n.
    START-OF-SELECTION                                                  *
    START-OF-SELECTION.
    Storing table name
      p_table = tabname.
    Create internal table dynamically with the stucture of table name
    entered in the selection screen
      CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_table->* TO <dyn_table>.
      IF sy-subrc <> 0.
        MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
        LEAVE TO LIST-PROCESSING.
      ENDIF.
    Create workarea for the table
      CREATE DATA dy_line LIKE LINE OF <dyn_table>.
      ASSIGN dy_line->* TO <dyn_wa>.
    Create another temp. table
      CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_tab->* TO <dyn_tab_temp>.
      SORT i_fieldcat BY col_pos.
    Select data from table
      SELECT * FROM (p_table)
      INTO TABLE <dyn_table>
      UP TO lines ROWS.
      REFRESH <dyn_tab_temp>.
    Display report
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_structure_name         = p_table
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_PF_STATUS'
        TABLES
          t_outtab                 = <dyn_table>
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
      ENDIF.
    *&      Form  SET_PF_STATUS
          Setting custom PF-Status
         -->RT_EXTAB   Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'Z_STANDARD'.
    ENDFORM.                    "SET_PF_STATUS
    *&      Form  user_command
          Handling custom function codes
         -->R_UCOMM      Function code value
         -->RS_SELFIELD  Info. of cursor position in ALV
    FORM user_command  USING    r_ucomm LIKE sy-ucomm
                               rs_selfield TYPE slis_selfield.
    Local data declaration
      DATA: li_tab TYPE REF TO data,
            l_line TYPE REF TO data.
    Local field-symbols
      FIELD-SYMBOLS:<l_tab> TYPE table,
                    <l_wa>  TYPE ANY.
    Create table
      CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN li_tab->* TO <l_tab>.
    Create workarea
      CREATE DATA l_line LIKE LINE OF <l_tab>.
      ASSIGN l_line->* TO <l_wa>.
      CASE r_ucomm.
      When a record is selected
        WHEN '&IC1'.
        Read the selected record
          READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
          rs_selfield-tabindex.
          IF sy-subrc = 0.
          Store the record in an internal table
            APPEND <dyn_wa> TO <l_tab>.
          Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                i_program_name         = 'Z_DEMO_PDF_JG'
                i_structure_name       = p_table
              CHANGING
                ct_fieldcat            = i_fieldcat
              EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
            IF sy-subrc = 0.
            Make all the fields input enabled except key fields
              w_field-input = 'X'.
              MODIFY i_fieldcat FROM w_field TRANSPORTING input
              WHERE key IS INITIAL.
            ENDIF.
          Display the record for editing purpose
            CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
              EXPORTING
                i_callback_program    = sy-repid
                i_structure_name      = p_table
                it_fieldcat           = i_fieldcat
                i_screen_start_column = 10
                i_screen_start_line   = 15
                i_screen_end_column   = 200
                i_screen_end_line     = 20
              TABLES
                t_outtab              = <l_tab>
              EXCEPTIONS
                program_error         = 1
                OTHERS                = 2.
            IF sy-subrc = 0.
            Read the modified data
              READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
            If the record is changed then track its index no.
            and populate it in an internal table for future
            action
              IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
                <dyn_wa> = <l_wa>.
                i_index = rs_selfield-tabindex.
                APPEND i_index.
              ENDIF.
            ENDIF.
          ENDIF.
      When save button is pressed
        WHEN 'SAVE'.
        Sort the index table
          SORT i_index.
        Delete all duplicate records
          DELETE ADJACENT DUPLICATES FROM i_index.
          LOOP AT i_index.
          Find out the changes in the internal table
          and populate these changes in another internal table
            READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
            IF sy-subrc = 0.
              APPEND <dyn_wa> TO <dyn_tab_temp>.
            ENDIF.
          ENDLOOP.
        Lock the table
          CALL FUNCTION 'ENQUEUE_E_TABLE'
            EXPORTING
              mode_rstable   = 'E'
              tabname        = p_table
            EXCEPTIONS
              foreign_lock   = 1
              system_failure = 2
              OTHERS         = 3.
          IF sy-subrc = 0.
          Modify the database table with these changes
            MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
            REFRESH <dyn_tab_temp>.
          Unlock the table
            CALL FUNCTION 'DEQUEUE_E_TABLE'
              EXPORTING
                mode_rstable = 'E'
                tabname      = p_table.
          ENDIF.
      ENDCASE.
      rs_selfield-refresh = 'X'.
    ENDFORM.                    "user_command
    Regards,
    Joy.

  • TS3274 My ipad does not go off, even after pressing the off button for minutes and re set. What could I do next?

    My Ipad does not go off again, even after pressing the off button and re set, what can I do to switch the I pad off.

    Try a reset a few more times.
    Hold the Sleep and Home button down until you see the Apple logo.
    Data will not be affected.

  • Dynamic Action on "Get Focus" After Closing a Popup Window

    Hi,
    From one of APEX Application Pages I am calling a Popup Window where users can create a new record. In the Popup Window once the record is created and window is closed, I want to refresh the region on the main page to show the record created in the popup window.
    How do I create a dynamic action which will fire when the main APEX window gets the focus (after the popup window is closed). ?
    Any pointers will be greatly appreciated.
    Thanks & Regards,
    Ashish Agarwal
    http://www.asagarwal.com

    Assuming that you have a dynamic action in the parent page which refreshes the region
    <li> Make a note of the event which triggers your dynamic action, lets call this event A.
    <li> Create a JS function in parent page which triggers event A when called.
    For example if your Dynamic Action trigger is a button(id ="P100_REFRESH") press event
    Your JS function could be
    function Trigger_refreshRegion()
      $('#P100_REFRESH').click();
    The way in which you simulate the Dynamic action deoends on the firing event that you have used, so modify it appropriately.
    <li>Now in the pop up page, if you are closing the page in JS using smthing like window.close() or so,
    just call the parent page's refresh JS function there using the
      opener.Trigger_refreshRegion(); //whatever was the name of the function that you created.

  • How to avoid applet getting focus ?

    When i put an applet on a html page, it takes the focus when it starts up (in all browser, IT, Firefox, Safari). I want the focus to stay at other html object - How can I avoid the applet from getting focus ?

    Hi Me too facing the same problem.Looks Like onblur event is getting fired when applet is loaded which is taking the focus to the image applet .So how do we block the onblur from getting invoked.

  • Safari Minimized Windows Get Lost After Restart

    If I have any minimized windows when I quit Safari, I can't make them visible after I re-launch Safari without some extra trickery.
    They are shown in the Window menu, with the "◆" bullet prepended, but when I select one of them, the bullet is replaced by a ckeck mark, and the frontmost window loses focus, but the minimized window isn't shown. It's as if the window is fronmost but not visible, as if it were positioned outside of the viewing area.
    If I then select View > Enter Full Screen, the window becomes visible and remains so after I exit full screen mode.
    Has anyone else seen this behavior? It's obviously a bug of some sort, but I wanted to see if anyone else has experienced it bufore I report it. I have a hunch that it might be limited to Safari 7 and Mavericks running on older hardware. I'm currently using Safari 7.0.4 in OS X Mavericks (10.9.3), but I have noticed this ever since upgrading to Mavericks. I'm not sure exactly how old my MacBook Pro is, but it's old.

    Is this system in domain ? 
    The new group policy is named “Force
    a specific default lock screen image” and can be found in this path in the group policy editor: “Computer Configuration\Policies\Administrative
    Templates\Control Panel\Personalization”
    Is this configured?
    refer : http://support.microsoft.com/kb/2787100/en-us
    Arnav Sharma | Facebook |
    Twitter Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members
    reading the thread.

  • How can i return to getting sound after pressing panic button?

    I pressed the panic button after setting up my layout, and I had everything set up the way I wanted it (volume included). The volume then disappeared and no sound appears after I pressed the panic button. I've tried remapping everything but I had no luck. Please help me.

    Unfortunately it does happen sometimes. I'm still trying to solve the same problem. Panic is assigned to a button on my controller and it usually works correctly, but sometimes during a live performance when I get a stuck note, the panic button kills the plugin completely. It happens mainly with Vintage B3 and E. Piano, but it has also happened with Ivory II. This never happened with MS 2. Panic is supposed to reset MDI and the audio engine, according to MS 3 help. Maybe it's a bug, or maybe my older machine isn't fast enough. I'm using a mid-2010 Mac Mini 2.6 with 16GB RAM and two 500GB 7200 rpm drives running the OSX 10.9.2 and MS 3.0.3. Any ideas, CCTM or Blueberry?

  • HT4061 I have upgraded my iPhone 4 to OS 7.0.  I am going thru the setup, but cannot get past the Terms and Agreement page after pressing the Agree button

    I have upgraded my iPhone 4 to OS 7.0.  During the setup I pressed the "Agree" button for the Terms and Conditions.  I would not take me to the next stage in the setup.  Everytime I apress the "Agree" buttion it pops up a dialog with the "Cancel" or "Agree" buttons.

    Reset the device and try again.

  • HT201412 Does not return to the Home screen after pressing the Home button

    My home button it's not works after pressing If I press it hard many time it's work but sometime not working at all. Can any apple store fixed this problem in any apple store at any country cause I purchased from apple stroe in Brighton and I live in Kuwait .. So please help me with this problem
    thank you for listen

    Check the following:
    1. Check credit card number
    2. Check security code
    3. Billing Address must be the same as credit card
    4. Check expiry date
    5. Make sure you have sufficient fund

  • Tile List selection after pressing embedded Image button

    Hi;
    I am working on SAP Work Manager 6.0 customizing using Agentry 6.1.3. I have this tile list that contains items. At the bottom of this tile list, I have a button that targets the selected item on the tile list. This button has an action which changes the icon  of the selected item when pressed and also executes an edit transaction that prints/changes the selected item property values based on rules. After selecting a particular item from the tile list and clicking on this button, the selected item's image changes to the image that I want, but the selection highlighter toggles and always moves to the first item on the tile list. I have tried implementing a list selection but it somehow always ignores this and always toggles back to the first item on the tile list. I would like it to stay on the selected item, whose image has just been changed. How would I go about having the selection highlighter stay on the same item before and after pressing the button?
    Your help is greatly appreciated!
    Thanks in advance!
    Sizo Ndlovu

    Hi Jason;
    Thank you for the prompt response.I'm using the .NET client to test on the development machine and the application is deployed onto an Android 4.0.4 device. I have tried implementing this as shown below:
    The action steps:
    The Navigation step:
    The List Selection step:
    The List Selection rule:
    I have also tried implementing this using the navigation only or the list selection only, with no success.
    Thanks and Regards;
    Sizo Ndlovu

Maybe you are looking for