Boolean key focus

I have an event case that executes when a boolean is pressed by the user.   In the event I set the property 'key focus' to TRUE for an string control where the user needs to enter information.   The first time the event executes key focus for the string control is not set.  The second time onward, the key focus gets set.  How come it does not get set the first time the event occurs?

Yup, I've done that many times myself. Can you post an example showing the effect?
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • Key focus after a popup message

    Hi everyone,
    On my main VI, I ve got a cluster of strings and I try to set focus key on one of those strings. It works fine if I don't  have any popup message before trying to set a key focus.
    1/ Run the main VI.
    2/ Click on button "Start STB Identification"
    If "Boite de dialogue" boolean is set to false, focus key is set to the fourth string.
    If "Boite de dialogue" boolean is set to true, focus key doesn't appear. Sometines key focus is correctly set.
    LV 8.5
    Thanks in advance for your answer.
    Message Edité par Zaboulou le 03-19-2008 02:36 PM
    Attachments:
    Key Focus.llb ‏25 KB

    Zaboulou wrote:
    I very well know NI forum.
    So why did you post in the feedback forum instead of the LabVIEW forum? The feedback forum is for issues dealing with the forum web page, not for LabVIEW code!
    I cannot reproduce your problem either. Maybe there is something special on your setup.
    Your code has a quite few other problems, for example the main VI uses all CPU to spin the loop doing nothing. A wait statement is definitely needed. Same in the inner loop where you check for loss of key focus.
    LabVIEW Champion . Do more with less code and in less time .

  • Key focus confusion

    When I use the property node for key focus, the display is different than when the focus is obtained by just tabbing through the controls.
    Is there a way to set focus and have it look as if I tabbed to it?
    Thanks in advance.

    I thought of Boolean controls only.
    You didnt even mention that they re Numeric controls in your post. Thats the confusion...
    But, see the screenshots attached. They both look like same.
    Switch the Keyfocus button to see it for yourself...
    Also, try it out for Dialog controls, if you wish.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    Keyfocus_Coded&Tabbed.vi ‏19 KB
    Coded Keyfocus.PNG ‏45 KB
    Tabbed Keyfocus.PNG ‏45 KB

  • Key focus is not visible for all objects when tabbing

    I'm using LabView 5.1.
    The key focus is not visible for all objects when tabbing through a "disabled and grayed-out" object.
    For example, let's say I create a panel with 3 buttons. If I create a "disabled" attribute for button 2 and assign the value "2" (disabled and grayed-out) to it. When I will run this VI, the key navigation will go through button 1 and button 3 (skipping button 2 as expected) but the key focus on button 3 will not be visible.
    Is this a bug with LabView or am I doing something wrong ?

    Hi Ben,
    Don't worry, time is not an issue... I'm posting an example of a VI with the problem I described. I noticed that the problem occurs only with "dialog buttons".
    When you have time, let me know if you see the same behavior. If you do, I will report the problem to National Instrument.
    Thanks for your time !
    BigBen
    Attachments:
    3buttons.vi ‏22 KB

  • How I Creat a Local Variable to Boolean Key If I but this Boolean Key in Cluster in Fron Panel

    I build a cluster on Fron Panel and I put in it Boolean Key (Square LED) .
    I want to creat a local variable to this object , how can i creat it.
    the option which I get are
    Property Node
    Reference
    Invoke Node

    Hi,
    You create a local variable of the cluster first. Then you can access any of the items in the cluster using Unbundle/Bundle or Unbundle by Name/ Bundle by Name tools.
    Hope this helps
    Ray Farmer
    Regards
    Ray Farmer

  • Key focus problem

    Hi,
    I have a small subvi that simply has a string control which the user enters a string value.
    I am using the key focus property node to put the cursor in the string control.
    The subvi works very well alone, however when I call it from my main vi, the cursor is not in the string control.
    It seems the key focus is not working.  Any suggestions?

    OK, I agree there is still something broken in that subVI, because it does not work with a TRUE setting either.
    I was able to fix it by simply going to the windows properties of the subVI in question and setting its mode to "Dialog", then saving it again. (Make sure to close the FP before running the main VI) This seem to clear the corruption and the keyfocus now works. See if this works for you too. Good luck!
    LabVIEW Champion . Do more with less code and in less time .

  • Key Focus when Adding Tags

    When I click the "Add Tag" button at the bottom of a post, the text entry field does not automatically receive key focus, meaning I must click on the field before I begin to type or CTRL+V a tag from the clipboard. I would like to see this text entry box automatically receive keyboard focus after clicking "Add Tag".
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}
    Solved!
    Go to Solution.

    Good news this time... the key focus for adding tags works in the upgraded version which you will be hearing more about soon!
    Thanks,
    Laura

  • Remove "Highlight" of Key Focus

    Is there a way to remove the "highlight" that setting the key focus on a control brings about?
    I want the key focus to be on a button, but I have edited the control,
    and now the black box that gets around it is ungainly, and was
    wondering if there was a way to remove it?

    Hi Novatron,
    I'm not aware of any setting that will remove the visible border around
    the object that's in focus. The only thing you can do is make sure that
    the object will never get in focus by right-clicking the control and then choose "Advanced » Key navigation » Skip this control when tabbing".
    Has anyone else created a programmable workaround for a similar issue?
    - Philip Courtois, Thinkbot Solutions

  • Barcode scanner key focus

    Hi All
    I have doubt in setting the key focus to the string.
    Once i started the program, message pops up to the user.once the user clicked OK button the cursor have to come to string. I have attached my VI.pls give me some guidance
    Thanks
    Attachments:
    Barcode_ex1.vi ‏19 KB

    Hi Veeru,
    do you really need the PopUp every loop iteration? I made some changes in your vi, maybe it helps.
    You should define an  event case for every Control you want to work with.
    Mike
    Attachments:
    Barcode_LV80.vi ‏20 KB

  • Swap the key focus at Array element

    Hello,
              Would you help me about the title query ? the details is in attachment. thanks @! LV7.1 version.
    Attachments:
    help.vi ‏40 KB

    Attached is a quick example showing the basic method needed for a table.
    An array is more complex, because to refer to a specific array element, you first have to resize the number of visible elements to 1, then use the Array Element>Reference and cast that reference to a cluster, and set the key focus to the right element of the cluster and then resize the array back to its display size. To avoid having the user see this, you need to use the Defer Panel Updates property, and this might cause the control to lose the focus, I'm not sure.
    A side note is that using Value property nodes is not a good way of doing things. A local is usually better and using real data flow is even better.
    Try to take over the world!
    Attachments:
    help mod 71.vi ‏63 KB

  • Alert causes key focus loss

    _player.alert("") causes lingo key handlers to lose focus in
    a shockwave window. The alert comes up, hit OK, but then the
    program loses all keyboard input. The window is still in focus,
    though. I have to click inside the window to regain keyboard input.
    Any way around this? Thanks

    Hi Howard,
    the session state for Page Items are set on submit, that is why the lower part of your question works.
    I would create an ITEM (in my example P11_ERROR),
    and then create 2 dynamic actions:
    1.) Execute PL/SQL Code when Lose Focus on Item TCKT_ID
    Code:
    DECLARE
    lv_counter NUMBER;
    BEGIN
    SELECT count(*)
    INTO lv_counter
    FROM your_tckt_table
    WHERE tckid = :TCKT_ID;
    IF lv_counter > 0 THEN
       :P11_ERROR := 'ERROR';
    ELSE
       :P11_ERROR := NULL;
    END IF;
    END;
    Page_items to Submit: TCKT_ID
    Page Items to Return: P11_ID
    2.) a Dynamic Action wich Alerts the Error:
    on Change of Item P11_ERROR Condition: when ITEM IS NOT NULL
    Action: Alert "Error! ID does already exist!"
    Works for me :-)
    Tom

  • Bringing tab key focus on to SelectManyCheckbox

    Hi,
    Does anyone know if it is possible to be able to tab through the SelectManyCheckbox component items? i.e. just like a user can press the Tab key to move to different InputText components, I would like them to be able to do the same for the SelectManyCheckbox components but by default you are unable to bring focus on to these.
    Thanks

    Hi Frank,
    Thanks for your responsel. I've tried this but it doesn't seem to work. After doing some searching there does seem to be some complicated solutions involving TabIndex and Javascript which could be similar to what I am trying to achieve, but they're not straightforward. I have another page which has only SelectManyCheckbox and on that you can tab through the checkboxes but on the page which also has inputText boxes before/after the SelectManyCheckbox items you can't tab through them.
    Regards

  • Bad Idea: Making default behavior of "built in mouse wheel support" set to on key focus

    This is just a little rant....
    I love new features in Labview, but setting them to be on automatically when they can generate unexpect behaviour is really a bad idea. We recently moved from 2012 to 2013. Suddenly, I have users saying "values are changing and I don't know why". Turns out they were changing a value in a numeric, then attempting to scroll away. Why on earth would NI make this the default behavior??? Luckly for us the value change wasn't too bad but I could think of a few places that a sudden, unplanned change in a numeric could have ruined an experiment.
    Off to do alot of work to undo this....

    RTSLVU wrote:
    I have noticed this too, but I swear long before 2013.
    You should not have to scroll around a user interface to begin with.
    If you can not fit a user interface on one screen of the target machine it's time to rethink your interface.
    I suggest dividing things up by task and using a tab control.
    and this is why I now hate posting in this forum.....
    People just love to tell you how you should be doing something, and not focusing on the topic of the thread. If everyone is going to get stuck on the "UI's should not have scroll bars" soap box, see the attached screen shot. This problem arose from a settings pop-up dialog. I could have used tabs, but in this case it makes more sense for the users to move top to bottom in a linear fashion through the process they are setting up.
    My point in all this is why would NI make this the default behavior? I like the feature, but it should have been something that a designer has to actively turn on.
    Attachments:
    settings screen.PNG ‏181 KB

  • How to disable the Tab key Focus Traversal

    I have to disable the default focus traversal function of tab key

    The method tht you need to look into is setTraversalPolicy()

  • DATAGRID FOCUS ISSUE: Focus got lost, while moving from one cell to another cell using tab key.

    Problem: Focus got lost, while moving from one cell to another cell using tab key.
    Example: In an AdvanceDataGrid, there are three columns having custom ItemRenderer with Spark TextInput control (editable=true & focusEnabled=true).
    When I try to move the focus in with in 2nd, 3rd & 4th column using tab key, focus got lost. Most of the time it’s working, but some time it doesn’t work. There’s no clue as to how may rows/columns the focus has jumped to; or whether the focus has gone out of the data grid altogether.
    Observations: I am not sure whether this problem is because of custom component implementation or it is because of some issue related to Flex Component.
    It only occurs when we perform some actions like some server call, some complex logic execution etc. at the focus out event of itemrenderer.
    There is one property of datagrid i.e. editedItemPosition which contains row & column index of datagrid. On the focus out event, it gets null when focus got lost. We tried to set it, but it didn’t work.
    Steps Performed:-
    1. Currently focus is in 2nd column i.e. Apply to #.
    2. Once I press tab key from 2nd column, it goes to 3rd column which is correct.
    3. Now if I press tab key from 2nd column i.e. Payment #, focus should go to 3rd column, but it goes out of data grid and set the focus of button which is outside data grid.

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bjtable+%2Btab+%2B%22enter+key%22&col=javaforums

Maybe you are looking for