Find Focus from TypeDefs?

Hi,
in my application I have a function that find the control which has currently the focus (to get some properties of this control afterwards). A simplified copy of this function I attached below.
My question: Why doesn't the method works when control is a typedef?
Kind regards
Christian
Test Engineering
digades GmbH
www.digades.com
Solved!
Go to Solution.
Attachments:
Find Focussed Control.vi ‏13 KB
Enum TypeDef.ctl ‏5 KB

CD,
Looking at the help page of that particular method, it appears that it is not available with strict type definitions.
http://zone.ni.com/reference/en-XX/help/371361L-01/lvprop/vi_find_control_with_key_focus/
Interestingly, I was not able to get the key focus to work for either enum.  I'm using LabVIEW 2014 but I would be interested in knowing what version of LabVIEW you were using so I can try this out tomorrow when I have access to more versions.
Matt J
Professional Googler and Kudo Addict
National Instruments

Similar Messages

  • [Flex 4.5.1] How to remove focus from TextInput on mouse click outside of it?

    For me clicking outside of a TextInput should always remove focus from it, only only if you click on another TextInput or Button.
    I don't see any simple event like MouseEvent.MOUSE_CLICK_OUTSIDE - which would definitely simplify things.. I wonder why there isn't such event. Well anyway I can't find any other similar event and I can't figure out an easy way to do this. I also wonder why I couldn't find a solution to this on the web easily... Well anyway...
    Does someone know how to do that in a convenient way?
    Thanks!

    ok I understand why is that. For example I have a TextInput now where the user enters number through buttons which have mouseFocusEnabled = false, so the TextInput doesn't lose focus. But on a TabBar I had to set mouseFocusEnabled = true or when I switched between tabs -> switches between states, I could still type in the TextInput in the previous tab cause it didn't lose focus. Maybe TabBar's default value of that property is wrongly set to false.
    Anyway, not losing focus when clicking outside is still weird. Take for example this forum, if I click outside of the box I am currently writing this, I lose focus. It's how things usually work. And flex focus is designed to work backwards to what people are used to, no matter as I already pointed out I understand there are cases it comes in handly. I hope I don't sound bad but take it just as a suggestion please that maybe if it is redesigned like this: clicking on component gets focus, clicking outside loses focus. But if you click on a button for example and you want to keep the focus on a TextInput cause you add some text, you should be able to set a property on the Button like maintainCurrentFocus = true (false by default), which would make clicking on the Button not shift the focus to it or set it to null if the component is a group that has some rect background for example, but maintain the focus on the TextInput.
    I could be missing something about the current design of how the focus works in flex, but from my point of view at the moment, the design I describe to use is just like how I am usually used to be working with focus as a user, not as developer.
    Maybe you could agree or maybe you know some reason by which things are how they are at the moment that I don't see. But if you think I make sense please let me know, maybe I could fill a minor enhancement request for that ?

  • Something is stealing focus from my active window

    Hi,
    Something frequently steals focus from my Mail, Keynote and other active windows. I'm having trouble figuring out what it is as the focus doesn't 'go' anywhere. It's quite annoying as I frequently get the error-ding, and have to go to the mouse to return focus to the window I was working in.
    Does anyone know how to resolve this issue? Below please find the system informaiton.
    Hardware Information:
              MacBook Pro (15-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,2
              1 2 GHz Intel Core i7 CPU: 4 cores
              16 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 512 MB
              AMD Radeon HD 6490M - VRAM: 256 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 6:23:0
    Disk Information:
              ST1000LM014-1EJ164 disk0 : (1 TB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macbook SSD (disk0s2) /: 999.35 GB (578.21 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple, Inc. Keyboard Hub
                        Apple Inc. Apple Keyboard
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
              com.symantec.kext.internetSecurity          (5.2f2 - SDK 10.6)
              com.symantec.kext.ndcengine          (1.0f2 - SDK 10.6)
              com.symantec.kext.ips          (3.5f2 - SDK 10.6)
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [System] com.adobe.SwitchBoard.plist 3rd-Party support link
              [System] com.frogdesign.ardon.daemon.plist 3rd-Party support link
              [System] com.frogdesign.disableautologin.daemon.plist 3rd-Party support link
              [invalid] com.frogdesign.renamecomputer.daemon.plist
              [invalid] com.frogdesign.renamehost.daemon.plist
              [invalid] com.frogdesign.renamelocalhost.daemon.plist
              [System] com.frogdesign.sshon.daemon.plist 3rd-Party support link
              [System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
              [System] com.symantec.liveupdate.daemon.ondemand.plist 3rd-Party support link
              [System] com.symantec.liveupdate.daemon.plist 3rd-Party support link
              [System] com.symantec.sharedsettings.plist 3rd-Party support link
              [System] com.symantec.symdaemon.plist 3rd-Party support link
    Launch Agents:
              [System] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [System] com.frogdesign.screenpwddelay-host.agent.plist 3rd-Party support link
              [System] com.frogdesign.screenpwddelay.agent.plist 3rd-Party support link
              [System] com.frogdesign.screenpwdon-host.agent.plist 3rd-Party support link
              [System] com.frogdesign.screenpwdon.agent.plist 3rd-Party support link
              [System] com.symantec.uiagent.application.plist 3rd-Party support link
              [System] jp.co.canon.CUPSiPF.BackGrounder.plist 3rd-Party support link
              [System] jp.co.canon.CUPSiPF.PreviewDaemon.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [not loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [not loaded] com.google.keystone.agent.plist 3rd-Party support link
    User Login Items:
              UNKNOWN
              iTunesHelper
              Dropbox
    Internet Plug-ins:
              QuickTime Plugin: Version: 7.7.3
              AdobePDFViewerNPAPI: Version: 10.1.9 3rd-Party support link
              AdobePDFViewer: Version: 10.1.9 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6 3rd-Party support link
              Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
              MeetingJoinPlugin: Version: (null) - SDK 10.6 3rd-Party support link
              JavaAppletPlugin: Version: 14.8.0 - SDK 10.9 Outdated! Update
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    3rd Party Preference Panes:
              Symantec QuickMenu  3rd-Party support link
    Bad Fonts:
              None
    Old Applications:
              Microsoft Language Register:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        /Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
              iPF Support:          Version: 2.36 - SDK 10.4 3rd-Party support link
                        /Library/Printers/Canon/GARO/Utilities/iPF Support.app
              Solver:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
              Microsoft Lync:          Version: 14.0.7 - SDK 10.5 3rd-Party support link
              /Applications/Microsoft Office 2011
                        Microsoft PowerPoint:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Excel:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Outlook:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Word:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Document Connection:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
              dynamiclinkmanager:          Version: 6.0.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Adobe/Common/dynamiclink/CS6/dynamiclinkmanager.app
              /Applications/Microsoft Office 2011/Office
                        Microsoft Graph:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Database Utility:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Office Reminders:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Upload Center:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        My Day:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        SyncServicesAgent:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Open XML for Excel:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Alerts Daemon:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Database Daemon:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Chart Converter:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Clip Gallery:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
              dynamiclinkmediaserver:          Version: 6.0.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Adobe/Common/dynamiclinkmediaserver/1.0/dynamiclinkmediaserver.app
              SyLinkDrop:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Symantec/SMC/tools/SyLinkDrop.app
              Microsoft AutoUpdate:          Version: 2.3.6 - SDK 10.4 3rd-Party support link
                        /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
              /Library/Application Support/Microsoft/MERP2.0
                        Microsoft Error Reporting:          Version: 2.2.9 - SDK 10.4 3rd-Party support link
                        Microsoft Ship Asserts:          Version: 1.1.4 - SDK 10.4 3rd-Party support link
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                  24%          mds
                   3%          WindowServer
                   3%          EtreCheck
                   2%          iTunes
                   1%          coreaudiod
    Top Processes by Memory:
              721 MB          SymDaemon
              541 MB          Finder
              524 MB          Keynote
              410 MB          Mail
              311 MB          mds_stores
    Virtual Memory Information:
              3.60 GB          Free RAM
              6.10 GB          Active RAM
              4.55 GB          Inactive RAM
              1.75 GB          Wired RAM
              2.74 GB          Page-ins
              0 B          Page-outs

    Hello,
    I have the same problem (probably because we work for the same company )
    The problem is with Symantec Endpoint Protection. I ran a script and found out that's causing the problem. I don't have a fix yet though unfortunately.
    Kevin

  • How to capture the event on changing focus from a JTextField?

    Hi All,
    I have got a problem...
    I want to do something (say some sort of validations/calculations) when I change the focus by pressing tab from a JTextField. But I am not able to do that.
    I tried with DocumentListener (jtf01.getDocument().addDocumentListener(this);). But in that case, it's calling the event everytime I ke-in something in the text field. But that's not what I want. I want to call that event only once, after the value is changed (user can paste a value, or even can key-in).
    Is there any way for this? Is there any method (like onChange() in javascript) that can do this.
    Please Help me...
    Regards,
    Ujjal

    Hi Michael,
    I am attaching my code. Actual code is very large containing 'n' number of components and ActionListeners. I am attaching only the relevant part.
    //more codes
    public class PaintSplitDisplay extends JApplet implements ActionListener
         JFrame jf01;
         JPanel jp01;
         JTextField jtf01, jtf02;
         //more codes
         public void start()
              //more codes
             jtf01 = new JTextField();
              jtf01.setPreferredSize(longField);
              jtf01.setFont(new Font("Courier new",0,12));
              jtf01.setInputVerifier(new InputVerifier(){public boolean verify(JComponent input)
                   //more codes
                   System.out.print("updating");
                   jtf02.setText("updated value");
                   System.out.print("updated");
                   return true;
              //more codes
              jtf02 = new JTextField();
              jtf02.setPreferredSize(mediumField);
              jtf02.setEditable(false);
              jp01.add(jtf02, gbc);
              //more codes
              jf01.add(jp01);
              jf01.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              jf01.setVisible(true);
              //more codes
         public static void main(String args[])
              PaintSplitDisplay psp = new PaintSplitDisplay();
              psp.start();
         public void actionPerformed(ActionEvent ae)
              //more codes
    }As you can see I want to update the second JTextField based on some calculations. That should happen when I change the focus from my frist JTextField. I have called jtf02.setText() method inside InputVerifier. But it's giving error...
    Please suggest...
    Ujjal

  • Can I stop a Finder window from opening on a mounted volume?

    I work in an elementary school. One of the startup items on our kindergarten computers is a shared network applications volume. I have set the Finder preferences to not show connected servers or the hard drive on the desktop. However, when the computer is turned on, even though that shared network applications volume doesn't appear on the desktop, a Finder window opens that shows the contents of that volume. Is there a way of preventing that Finder window from automatically opening? I could use Simple Finder, but there are things I don't like about Simple Finder based on what the kids need to do.
    Thanks!

    I haven't tested this with AFP, but try launching "/Applications" > "Utilities" > "Terminal.app" and entering these commands:<pre>
    defaults write com.apple.finder FXOpenWindowOnMount -bool false
    osascript -e 'tell application "Finder" to quit</pre>
    Then relaunch the "Finder" by clicking on its "Dock" icon so the changes take effect.
    This also assumes the volume is being mounted by the account in question - you mentioned that the window opens after turning the computer on and the shared volume is a startup item, which makes the trigger a bit ambiguous...

  • How to stop Firefox windows stealing focus from other Firefox windows?

    I am using Firefox 26.0 on Windows 7 and tend to brows using multiple windows instead of tabs. Frequently when I click on a link in one window, the new page will begin to load and suddenly a firefox window that is in the back ground pops to the front, stealing the focus from the window I had been browsing in.
    There is no consistent pattern as to which websites or pages are loaded into the background windows that suddenly decide to steal focus. Likewise there is no pattern as to which links or actions I use that seem to cause this to happen.
    Is this a known issue? It is driving me absolutely nuts!

    It could be a bug in the Flash Player plugin, caused by the protected mode feature. This thread has the background on that and known workarounds: [https://support.mozilla.org/questions/955659 Opening New Windows and Shockwave Flash].

  • How Can I Remove the Finder Icon From the Dock?

    Hi! Can someone tell me how to remove the Finder icon from the dock? I don't even care if Finder quits. I just want it removed from the dock. I really don't care if I can't get to my files. Please help.

    Start by going to your core services, (/system/library/coreservices). You can do this by pressing Shift+Cmd+G and then paste (/system/library/coreservices), without parentheses.
    After doing this, find Dock.app, right click, show package contents. This doesn't contain the icons on your dock, just finder and trash.
    After that, move all finder services to the desktop, and then erase them from the core services folder. At this point it will prompt you to put in your password, do so.
    Next you'll want to open terminal and type 'killall dock' or, you could restart your computer.
    This should remove the finder icon from your dock, while still giving you access to it from your desktop.
    Hope this helps!
    -C

  • How do I find music from Turkey?

    how do I find music from Turkey?

    I don't know of any easy way to search for Turkish music. All I can suggest is that you use the Browse feature (it's under the Quick Links on the home iTunes Store page) and browse the World section. Whether there's any Turkish music on the iTunes Store at all I don't know.
    Regards.

  • How can I force focus from flash to another plugin app in FireFox such as with the e.focus() Java Script command in Internet Explorer

    Can you force focus from a Flash app to another plugin such as Unity3d using a JS command similar to e.focus() which works in Internet explorer. The following code works in IE, but not FireFox? Any solution would be helpful. Is it even possible?
    function hideSWF(){
    e=document.getElementById("flash_content");
    e.style.width = 1 + 'px';
    e.style.height = 1 + 'px';
    e=document.getElementById("u3dobjmsiediv_unity");
    e.focus() ;
    function showSWF() {
    e=document.getElementById("flash_content");
    e.style.width = gameWidth + 'px';
    e.style.height = gameHeight + 'px';
    e.focus() ;
    == This happened ==
    Every time Firefox opened
    == Always existed when switching from Flash app to a different app. ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

    No, I am saying that this isn't the forum for help with that. This forum is for Firefox user support, and the helpers in this forum aren't versed in development issues like that - we're volunteers, not Mozilla developers and don't work for Mozilla. You are better off asking about that in a forum where other web site developers do support.

  • My old emails and documents are not showing up in email or finder both from the same date and I cannot find them anywhere. I do not believe I have any archive settings on. Any idea how I get them to show up?

    my old emails and documents are not showing up in email or finder both from the same date and I cannot find them anywhere. I do not believe I have any archive settings on. Any idea how I get them to show up?

    Hello gpbondi,
    The following article provdies step-by-step instructions for downloading your purchases both in iTunes and on your devices.
    Download past purchases
    http://support.apple.com/kb/HT2519
    Cheers,
    Allen

  • HT204053 My ipad stores my documents on iCloud. How can I find them from a different computer, as I used to do by using a memory stick on my old PC etc ?

    My ipad stores my documents in iCloud. How can I find them from a different computer?  I used to use a memory stick and could work on my documents on any computer and want to have a replacement system using documents created on my ipad - I can't use a memory stick with it.

    How do you know that they are on iCloud, the iPad can (and does) save locally. If they are on iCloud they will be accessible via the application that created them (Pages, Numbers etc) and can be reached from any computer with iCloud access by logging to iCloud.com. But you did that and stated that they are not there, so what makes you think that they are?

  • How to find that from which table data is coming in datasource?

    Hi friends
    I want to find that from which tables data is coming into datasource 2LIS_04_P_COMP,2LIS_04_P_MATNR..
    I have searched in forums.. I also have checked in sap.help.. but I didnt get any tablename in field "Table of origin"..
    Please tell me how can I find that data is coming from which table into these datasources..
    I dont want name of the setup tables.. I want name of the original tables (in R/3)which has data..
    Regards
    Swati

    Hi......
    For  data source 2LIS_04_P_COMP............MCAFKO, MCAFPO, MCCOMP are the R3 communication structures...........
    Check these commonication Structure in SE11............I think u will get the required information........
    2LIS_04_P_MATNR is Material View from PP/PP-PI ..........check this..........
    http://help.sap.com/saphelp_nw70/helpdata/EN/88/7fc73c0c52085be10000000a114084/frameset.htm
    Check this each field in SE11....from there try to find out these fields belongs to which table..........as I hav explained u in another thread..........
    May be the extractor is using these fields from different tables.....
    Regards,
    Debjani........

  • ERROR:  cannot find information from the FND_FORM_FUNCTIONS table

    Hi,
    I am in CU2, i have created my project, set the right responsibility in Project property panel of my Jdeveveoper.
    When i run the first page all is ok, but if i click on a h-grid link , i receive the following error:
    "Your system has not been properly set up. The system cannot find information from the FND_FORM_FUNCTIONS table which is needed for this process. Please consult your System Administrator for further assistance."
    This happens only if i launch the custom from jdeveloper. On the Applications, the custom works fine.
    Any idea about the error?
    Thanks in advance,
    Carlo

    Please check the calling logic which is written to invoke the custom form from the existing form.

  • HT204150 Contacts were deleted from my iphone 5 and now are gone on icloud.  Is there a way to find them from a previous icloud backup?

    Contacts were deleted from my iphone 5 and now are gone on icloud.  Is there a way to find them from a previous icloud backup?

    You could try the approach outlined here: https://discussions.apple.com/docs/DOC-4841.

  • How can I find history from a specific website on my MacBook Pro?

    How can I find history from a specific website (such as: time spent on that website and things of that nature) on my MacBook Pro?  I would also like to see if I can get a detailed history for other things done on the computer, such as: Date & Time Spent running a specific application, etc.

    Not so much.
    You can try 3rd party app for example http://timingapp.com/

Maybe you are looking for