Keep or get Focus on Modal LV Window

I created a LV program that is essentually a movable menubar like the
MS Office menubar.  When a button is clicked on, it launces a 3rd
party app.  I made the Window modal so that it is always visable
and won't ever be covered by another window.  The problem is that
when another window is active I have to click on the button twice to
make it work. Once to give the menubar focus, once to click the
button.  I would like the button to always work on the 1st click,
like the MS Office menubar.  Maybe I could give the Window focus
when the mouse moves over it and the cursor changes to a finger, but
I'm not sure how.  I tried using the Topmost vi the WinUtil.llb,
but it will not keep the my menubar focused. Any ideas?

Try
Tools >>> Options >>> Miscelaneous
"Allow Drop Through Clicks"
That sounds like what you are asking for.
Ben
Message Edited by Ben on 01-10-2006 12:53 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
DropThroughClicks.JPG ‏52 KB

Similar Messages

  • Swing JTextFeild is not getting focus -  Using jdk-7u17-windows-i586

    Hi All
    Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
    OS : Windows
    Used Java Version : jdk-7u17-windows-i586
    Issue : JTextFeild is not getting focus

    993277 wrote:
    Hi All
    Recently I upgraded my Application with Java 1.7 (using jdk-7u17-windows-i586) from java 1.6. Swing component JTextfeilds used to get focus when using java1.6. But after up-gradation to Java 1.7 in few scenarios JTextFeild is not getting focus and I am unable to do any thing with keyboard. Again I have to click on some button with Mouse and need to keep focus using mouse in the textfeild.
    OS : Windows
    Used Java Version : jdk-7u17-windows-i586
    Issue : JTextFeild is not getting focusThat's an incomplete bug report, not a question. This is a forum, not a bug tracking system. Try bugs.sun.com. And you may want to include a small sample program in the bug report that demonstrates the problem.

  • 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

  • How to install when I keep getting the following massage  on windows 7 64 bit with or with firewall on and vwith or with virus protection on  here is post  This installation package could net be opened verify that the package exist and that you can access

    how to install when I keep getting the following massage  on windows 7 64 bit with or with firewall on and with or with virus protection on  here is post           " This installation package could net be opened verify that the package exist and that you can access"  same when trying to install quicktime

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/quicktime/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • 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.

  • I keep on getting the message "missing .dll file" when I try to install Itunes on Windows 7 what is wrong ?

    I am using Windows 7 (64) and keep on getting the message of "missing .dll files" after I attempt to install the latest version of ITunes. I attempted to install an earlier version and had the same results. I have uninstalled and reinstalled ITunes to no avail. I have queried this message on Google and found little to go by.
    Can anyone help from here ?

    This has just happened to me - again. Can't think what caused it. I uninstalled Quicktime a little while ago, maybe connected? I don't know. Uninstalling iTunes, or repairing, or a fresh iTunes install does not help
    Even if you keep downloading and putting the dll files it keeps asking for in the sysWOW64 and/or System 32 folder, Apple Mobile Device Support will not not 'start' from Services.
    Anyway, as well as itunes, you need to also un-install Apple Software Update, Apple Mobile Device Support, and Bonjour, then reinstall the latest iTunes to get it all working again

  • I keep getting this error code 7 (windows error 126).  can't open itunes, what do i do?

    i keep getting this error code 7 (windows error 126).  can't open itunes, what do i do?

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99703)

  • I keep getting a Please wait while windows configures itunes

    I keep getting a Please wait while windows configures itunes...
    It started this afternoon, I thought nothing of it and reinstalled itunes again and that seemed to have fixed the problem, but the problem has reoccurred.
    I've done a bit of research on how to fix for example going through to the regedit and changing the pcast Permissions etc but this hasn't helped at all, if anything Its made things worse because I cant uninstall itunes now.
    Please can anybody help me.
    Cheers

    If iTunes launches eventually then it's simply a matter of the installer not having correctly updated the shortcuts.
    Delete the shortcut to iTunes on your desktop and, if you have them, in the recently used/favouite applications area of the start menu and/or quick launch menu. Use the main *All Programs > iTunes > iTunes* icon to start iTunes. Copy this icon out to your desktop and/or quick launch menu if required.
    If that still doesn't work, create a new shortcut from the file at C:\Program Files\iTunes\iTunes.exe and replace all existing shortcuts with the new one.
    If iTunes won't start at all then you have another problem that I'm thankfully (at least for me) not familiar with...
    tt2
    Message was edited by: turingtest2

  • Window Loses Focus After Modal Dialog is Dismissed

    hi,
    I need a JDialog to be opened when i click on a button in JFrame.and it should be modal so that user must not get control to its parent window and rest of the windows can be accessed.
    So, i tried setting property like setModalityType(Dialog.ModalityType.DOCUMENT_MODAL), but still unable to access all the windows not only its parent until the dialog gets closed.
    Another issue i was facing is when i close out the dialog i need to get the parent to Front of other windows in application. But in my case it was not happening.After closing the dialog, i am getting the last focussed window to front but not its parent. I tried calling getParent().toFront() in windowClosing() Listener of that dialog, But still not able to solve the problem.
    Hope someone understands my problems and give me solution.
    Hoping for quick response and thanks in advance.

    shrikanthhyd wrote:
    I need a JDialog to be opened when i click on a button in JFrame.and it should be modal so that user must not get control to its parent window and rest of the windows can be accessed.
    So, i tried setting property like setModalityType(Dialog.ModalityType.DOCUMENT_MODAL), but still unable to access all the windows not only its parent until the dialog gets closed.Perhaps you can fix this by calling the first dialog either without a parent or not as a JDialog but rather as a JFrame. Then the second dialog's modality will not impinge on the visibility of the original parent window. For instance:
    import java.awt.Dimension;
    import java.awt.Window;
    import java.awt.Dialog.ModalityType;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    class SwingFu2
        private JPanel mainPanel = new JPanel();
        public SwingFu2()
            mainPanel.setPreferredSize(new Dimension(400, 400));
            JButton showDlg1Btn = new JButton("Show Dialog 1");
            showDlg1Btn.addActionListener(new ActionListener()
                @Override
                public void actionPerformed(ActionEvent e)
                    showDlg1Action(e);
            mainPanel.add(showDlg1Btn);
        private void showDlg1Action(ActionEvent e)
            Window frame = SwingUtilities.getWindowAncestor((JButton)e.getSource());
            JPanel dlg1Panel = new JPanel();
            dlg1Panel.setPreferredSize(new Dimension(300, 300));
            JButton showDlg2Btn = new JButton("Show Dialog 2");
            showDlg2Btn.addActionListener(new ActionListener()
                @Override
                public void actionPerformed(ActionEvent e)
                    showDlg2Action(e);
            dlg1Panel.add(showDlg2Btn);
            //JDialog dialog1 = new JDialog(null, "Dialog 1", ModalityType.MODELESS); // either of these will work
            JFrame dialog1 = new JFrame("Dialog 1");  // either of these will work
            dialog1.getContentPane().add(dlg1Panel);
            dialog1.pack();
            dialog1.setLocationRelativeTo(null);
            dialog1.setVisible(true);
        private void showDlg2Action(ActionEvent e)
            Window window = SwingUtilities.getWindowAncestor((JButton)e.getSource());
            JPanel dlg2Panel = new JPanel();
            dlg2Panel.setPreferredSize(new Dimension(200, 200));
            JButton showDlg2Btn = new JButton("Show Dialog 2");
            showDlg2Btn.addActionListener(new ActionListener()
                @Override
                public void actionPerformed(ActionEvent e)
                    showDlg2Action(e);
            dlg2Panel.add(showDlg2Btn);
            JDialog dialog2 = new JDialog(window, "Dialog 2", ModalityType.DOCUMENT_MODAL);
            dialog2.getContentPane().add(dlg2Panel);
            dialog2.pack();
            dialog2.setLocationRelativeTo(null);
            dialog2.setVisible(true);
        public JPanel getMainPanel()
            return mainPanel;
        private static void createAndShowUI()
            JFrame frame = new JFrame("SwingFu2");
            frame.getContentPane().add(new SwingFu2().getMainPanel());
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    createAndShowUI();
    Another issue i was facing I don't know on this one. Good luck.

  • I am running windows xp. as of today, i keep getting uninstall set pop up window. how can i get rid of it? Thanks. jim

    I am running windows xp. as of today, i keep getting uninstall set pop up window. how can i get rid of it? Thanks. jim

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Tab not getting focus on left-click after suspend in Windows 7 64-bit.

    When I left-click on a tab in Firefox 4 rc 2 after my pc wakes up from suspend in Windows 7 64-bit the tab is not getting focus. I have to use the hotkeys in order to move to that tab. My mouse works fine in other programs.

    I have an imac
    I have an magic pad (same thing as the touch pad on a macbook really)
    I have an usb mouse I use both in windows and osx
    if your trackpad somehow was registered as actived for some reason it would seem as if it was the mouse
    had some *** situations both in windows and osx when my cat sit on the magicpad

  • Keep focus in the same window after opening a new window per key-event

    I have an application in which user can press on a specific key, and that opens a new window in a JFrame. User might want open a few of such windows in a row by changing the cursor position and pressing the same letter key. But the problem is that with every new window Java VM transfers the focus to that new window. User is forced either to click to regain focus, or to move the mouse out-and-in the window, in which case the focus returns to it as well, assuming the X11 style of focus by cursor position of course.
    Is there any way to keep the focus with the window on which the cursor is placed?

    In your ActionListener your code should be something like:
    JFrame anotherOne = new JFrame();
    anotherOne.setVisible(true);
    originalFrame.requestFocusInWindow();If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://sscce.org], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • I keep getting the error message "Restore Windows"  Finder application quit unexpectedly.  When I click an icon on the desktop on my Mac Book Pro it does not respond.

    I keep getting the error message "Restore Windows"  When I click an icon on  the desktop on my Mac Book Pro, it is not reaponding.

    While holding down the option key, select "Go>Library" from the Finder. Navigate to the Preferences folder and you'll find "com.apple.finder.plist". Delete that file and restart.
    Good luck,
    Clinton

  • I'm trying to install itunes on my new computer and I keep getting the error message about Windows Installer. It does not show up under "Programs".

    I'm trying to install itunes on my new computer and I keep getting the error message about Windows Installer. I've seen the other posts regarding this issue, however, I am unable to even get it to load for it to show up under "Programs".

    Repair your Apple software update.
    Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START > CONTROL PANEL > Programs n Features / highlight ASU and click CHANGE then REPAIR,

  • I keep getting the error code 7 (windows error 127)

    I keep getting the error code 7 (windows error 127) when I try to install iTunes. Any suggestions?

    Follow tt2 instructions as in
    https://discussions.apple.com/thread/5822086

Maybe you are looking for

  • How to do formatting of messageStyleText in a table for each row

    Hello one and all, We have a requirement that the values displayed in figures must have a formatting same as we do in SQL for example : select TO_CHAR(4555.95 , '999,999,999.99') from dual OUTPUT will be 4,555.95 Now i want to do the formatting for t

  • IOS: Wi-Fi settings grayed out or dim

    iphone with a year and two months of use and the wifi stopped working, what to do? here in Brazil costs around $ 1500.00 U.S. dollars in Brazil. I hope that is not the device so expensive. iOS: Wi-Fi settings grayed out or dim

  • I see error: 3624, Severity: 20, State: 1.in the sql server error logs on secondary host

    I see this error: Error: 3624, Severity: 20, State: 1 Complete error in the error log is: SQL Server Assertion: File: <loglock.cpp>, line=807 Failed Assertion = 'result == LCK_OK'. This error may be timing-related. If the error persists after rerunni

  • Display too dark

    When I connect my MacBook via Mini-Display and HDMI adapter to my TV set, the image on the TV is much darker than on the MacBook. I tried several resolutions. I tried to adjust the TV, but only got unnatural colors. What can be done to get a brighter

  • A few questions bout 3G iPhone??

    1st of my bluetooth doesn't work properly at least i don't think. It cant find anything when its searching. Also my dad has one and his has at the top Optus then 3G in a box, mine just says optus and i keep loosing reception, like it goes up and down