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 .

Similar Messages

  • How to display a specific tab in a screen after a popup message

    Hi all,
            I've a rewuirement where in i need to display a secific tab in a screen after popping up a warning message. To be specific, when i choose 'Yes' in the popup window, it shoud take me to a tab which is not active while displaying the warning popup.
    Thanks in advance....
    Anil Kumar Japa

    Hi
    U need to active the tab you want to show:
    So you should set the ok_code (of the tab) value to field ACTIVETAB
    <TABSTRIP>-activetab = <OK_CODE>.
    And transfer the value of subscreen number to the subscreen area:
    CALL SUBSCREEN SUBSCREEN1
                 INCLUDING G_CTRL_TABSTRIP-PROG             
                           G_CTRL_TABSTRIP-SUBSCREEN.
    Max

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

  • After my macbook was serviced, when I tried to open CS6, it prompted me to key in the serial number. After keying in, I got error message saying the serial number is invalid. However I have checked that it is correct.

    After my macbook was serviced, when I tried to open CS6, it prompted me to key in the serial number. After keying in, I got error message saying the serial number is invalid. However I have checked that it is correct.

    First be sure login and password are OK. Sometimes the address starts wit "http://..." and sometime starts with "ftp://...". Try both normal FTP access and Scure FTP access (SFTP). At the end, contact the site's provider.

  • Cursor out of focus after error message

    Hi,
    We have build an application using forms 6i.
    When using the application sometimes after getting an errormessage in a form the cursor stays in a field( after acknowledging the message) and can't move to another field. Also navigating to a poplist shows the values but when releasing the mousebutton it jumps back to the original field.
    I can't reproduce this behaviour at will but it just sometimes occurs. Nothing helps but stating the browser again.
    Has anybody experienced this behaviour?
    Does anybody have any clue where to look?
    Regards,
    Joshua

    Check these things before you do anything with your system:
    *How is the drive formatted?* If it's FAT32, that's the problem and you will have to reformat the drive as Mac OS Extended to use it with Final Cut Express. But make sure you *back up your files first*, because reformatting erases the entire disk.
    *How is the drive connected* - Firewire or USB? If Firewire, are there any other Firewire devices connected, especially a camera. If so, disconnect the camera.
    What is the exact make & model of your external hard drive?
    Are you using this external hard drive as a *Time Machine backup drive?* If so, you should *turn off* Time Machine before you export to this drive. Actually, you should not use a TM backup drive at all for video projects.

  • Temporary focus for a popup?

    Hi, this is NOT URGENT, just a little brain teaser I have come upon myself.
    I have a calendar-like component that I want to display on a popup. The user may open it (with a button) and choose something with the mouse (which hides the popup and fires an event). No problem there.
    In the interest of not requiring mouse use (a big deal with me), I put in the handling value various keystrokes (<arrows/pageup/pagedn> move around; <enter> or <space> make selection; <escape> closes without selection, etc.). But I cannot figure out how to get the keystrokes delivered to my component because I can't seem to understand the temporary focus situation with popups.
    I have tried writing my own JPopupMenu and Popup implementations, tried to manually move focus around, tried tweaking around with the MenuSelectionManager to see if it is eating my keystrokes, but I can't get it to work, and I know that there must be something much simpler that I am not seeing.
    BTW, I am trying to not have to muck with the Input/Action Maps of the window (or of any ancestor component higher than the popup itself), though I have considered that I could change them when popup opens and restore them when popup closes. Like I said, there must be something much simpler, right?
    I wrote a small sample case, which I will include in case anyone cares to give this a look.
    SimplePanel just uses the arrow keys to change a Label among {N,E,S,W} values. It has a main that sticks it in a frame. The arrow key cause the label to change.
    SimplePopup provides a button that opens a JPopupMenu containing a SimplePanel. (To keep it super simple, I haven't even included a way to close the popup.) User can open the popup by hitting <space> on the focused button, but cannot manipulate the SimplePanel using the arrow keys.
    (I will post the code in separate messages)
    Thanks,
    /Mel

    I have a solution -- add a KeyEventPostProcessor that redispatches the KeyEvents to the component on the popup. For the example, I just implemented KeyEventPostProcessor in this class. Hurray for 1.4!!!
    My question from before still stands though: isn't there a simpler way to do this!??! Furthermore, why shouldn't this be the default behavior to begin with? (i.e. when a popup is opened on a window the popup becomes a temporarily focus root; when the popup is closed the (permanent) focus reverts to whoever had it before...)
    /Mel
    class SimplePopup extends JPopupMenu implements KeyEventPostProcessor
       SimplePanel content = null;
       SimplePopup(SimplePanel content)
          this.content = content;
          this.add(content);
       public boolean postProcessKeyEvent(KeyEvent e)
          if (this.isVisible())
             KeyboardFocusManager.getCurrentKeyboardFocusManager().redispatchEvent(this.content, e);
          return false;
       public void setVisible(boolean b)
          super.setVisible(b);
          if (b)
             KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventPostProcessor(this);
          else
             KeyboardFocusManager.getCurrentKeyboardFocusManager().removeKeyEventPostProcessor(this);
       public static void main(String[] args)
          JFrame frame = new JFrame();
          JPanel extraroom = new JPanel();
          extraroom.setBorder(new EmptyBorder(50,50,50,50));
          final JButton button = new JButton("show it");
          final SimplePanel spanel = new SimplePanel();
          final SimplePopup popupmenu = new SimplePopup(spanel);
          button.addActionListener(new ActionListener()
                                          public void actionPerformed(ActionEvent e)
                                             Point point = new Point(2, 2 + button.getBounds().height);
                                             Component window = SwingUtilities.getWindowAncestor(button);
                                             point = SwingUtilities.convertPoint(button,point,window);
                                             popupmenu.setLocation(point);
                                             popupmenu.setVisible(true);
          extraroom.add(button);
          frame.getContentPane().add(extraroom);
          frame.pack();
          frame.show();
    } // end class SimplePopup

  • Qosmio X870-15D and Win8.1 - popup message "Flash Cards Test Version"

    Hi eveyone !
    Since I updated my X870-15D native Windows 8 to Windows 8.1, I get a popup message telling : "+*TOSHIBA Flash Cards*+ (title) +*Win8-TestVersion*+" and two buttons "OK" and "Cancel", each time I boot up ; whatever button I clic, the popup disappears
    How can I get rid of that irritating popup please ?

    You could try to uninstall the applications from Win 8.1 system but Im not quite sure if this would be helpful.
    Fact is that Win 8.1 upgrade should be done using special step by step instruction. In case you will not follow this instruction, some software parts might not work properly.
    By the way: In case you have problem only with the Flash Cards Support Utility, I would recommend you to uninstall this Flash Cards Support Utility (also called TOSHIBA Function Key Utility) from the system. After notebook reboot, download the TOSHIBA Function Key Utility for Win 8.1 and install it again.
    [TOSHIBA Function Key Utility for Win 8.1|http://www.toshiba.eu/innovation/download_driver_details.jsp?service=EU&selCategory =2&selFamily=381&selSeries=231&selProduct=7670&sel ShortMod=null&language=13&selOS=46&selType=all&yea rupload=&monthupload=&dayupload=&useDate=null&mode =allMachines&search=&action=search&macId=&country= all&selectedLanguage=13&type=all&page=2&ID=88191&O SID=46&driverLanguage=42]

  • 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

  • Why do I get a popup message in multiple languages requiring a shutdown and restart

    Why do I keep getting a popup message in multiple languages requiring a shutdown and restart?  Has been going on for a few months.  Because of the shutdown reports have been sent to Apple upon restart.

    After it restarted, did you see a dialog box resembling this one:
    If so, next time it occurs click Report...
    Before you send it to Apple, copy the text of the report. Paste it in a reply. Remove or obscure any personal information, should it appear.
    If problems continues to occur please determine if they also occur in "Safe Mode":
    Safe Mode or "Safe Boot" is a troubleshooting mode that bypasses all third party system extensions and loads only required system components. Read about it: Starting up in Safe Mode
    Starting your Mac in Safe Mode will take longer than usual, graphics will not render smoothly, audio is disabled on some Macs, and some programs (iTunes for example) may not work at all.
    To end Safe Mode restart your Mac normally. Shutdown will take longer as well.

  • Display popup messages

    hi,
    i am using adf11g,jdeveloper 11g.in form i drag and drop one vo.
    in that form,for one attribute which is used as LOV,i have written valuechangelistener method.
    in that method i wrote some code for validaiton.when validaiton occur i am able to show popup messages regarding particular error.
    when any validaiton occur,popup message is coming,but my data is partially submitting to form after showing that error message.
    it should not submitted to form in case of any error.
    please give me the solution.
    IN JSFF page
    <af:panelFormLayout id="pfl8" fieldWidth="100" labelWidth="150"
    binding="#{GLPolicyBean.bindFormEvent}">
    <af:inputListOfValues id="GlstpAcDesc"
    popupTitle="Search and Select: #{bindings.GlstpAcDesc.hints.label}"
    value="#{bindings.GlstpAcDesc.inputValue}"
    label="#{bindings.GlstpAcDesc.hints.label}"
    model="#{bindings.GlstpAcDesc.listOfValuesModel}"
    required="#{bindings.GlstpAcDesc.hints.mandatory}"
    columns="#{bindings.GlstpAcDesc.hints.displayWidth}"
    shortDesc="#{bindings.GlstpAcDesc.hints.tooltip}"
    autoSubmit="true"
    partialTriggers="GlstpGlCode"
    valueChangeListener="#{GLPolicyBean.glACDescChanged}">
    <f:validator binding="#{bindings.GlstpAcDesc.validator}"/>
    </af:inputListOfValues>
    </af:panelFormLayout>
    in glpolicybean.java
    public void glACDescChanged(ValueChangeEvent valueChangeEvent) throws TransactionException{
    // Add event code here...
    System.out.println("account desc new value----------->"+valueChangeEvent.getNewValue().toString());
    String accDesc=valueChangeEvent.getNewValue().toString();
    System.out.println("account description1----------->"+accDesc);
    System.out.println("account desc old value----------->"+valueChangeEvent.getOldValue());
    ADFUtils.setBoundAttributeValue("GlstpGlSubcd", "");
    XBSystemMastersServiceImpl systemImpl=(XBSystemMastersServiceImpl)ADFUtils.getDCBindingContainer().getDataControl().getDataProvider();
    ViewObjectImpl glPolicyAddVO=systemImpl.getGLPolicyAddVO1();
    try {
    for (Row row : glPolicyAddVO.getAllRowsInRange()) {
    String accDesc1 = (String)row.getAttribute("GlstpAcDesc");
    System.out.println("account description1----------->"+accDesc1);
    if (accDesc.equals(accDesc1)) {
    throw new TransactionException("A/C Desc already entered for this setup");
    }catch (TransactionException e) {
    JsfUtils.addContextMessage(JsfUtils.getStringFromBundle("A/C Desc already entered for this setup"),FacesMessage.SEVERITY_WARN); }
    thanks in advance,
    Edited by: sravanthi on Dec 14, 2011 6:12 AM

    Hi,
    Try using validator.
    See
    http://docs.oracle.com/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_inputListOfValues.html

  • How do I show and hide a popup message by the program

    Hi,
    I've the following problem. Sometime the program must wait to open a seriel port. On slow machines, this could take some seconds.
    During this time I'll display a popup message with the message "please, be patient....".
    After the port is open, the message should be hide by the program.
    JOptionPane could be good, but without a "OK" button. Everthing should be controlled by the program.
    I would implement the Runnable interface for the showing of the popup message.
    Any ideas? Thanks in advance.
    Hans

    You can use a JDialog... this will act like JOptionPane, but you can put on it whatever components you like... so no OK button!
    For example:
    JDialog dialog = new JDialog(parentFrame);
    dialog.add(new JLabel("Please be patient", BorderLayout.CENTER);
    dialog.pack();
    dialog.setLocation(100,100);
    dialog.setVisible(true);
    dialog.setVisible(false);

  • Popup message to all logged in users

    Good afternoon,
    Is there a way of sending a popup message to anyone logged into an APEX Application - such as: "System is going down for emergency reboot of server. Please log out.", or similar type of message.
    I understand that the potential exists that someone that shows as logged in might have closed their browser and all of that. But I have a "strongly worded request" to do the popup thing if possible.
    I can parse through those that have logged in, find their emails and send out an email message, but that might not have the same urgency to the user as a popup message would have - particularly if the popup is modal.
    I've tried to search the forum, but I haven't seen anything on this. That doesn't mean it isn't here, it just means I didn't find it.
    Sorry I forgot: APEX 3.2, Windows 2003 servers; Oracle 11g database. If you need more details, let me know.
    Thanks,
    Don.
    Edited by: dfcii_2 on Sep 1, 2010 5:27 PM

    Good morning Roel,
    The solution you proposed - creating a Region on Page 0 that reads from a table and displays ONLY if the record count in that table is > 0 works PERFECTLY! I tried it out and I get the expected results.
    For anyone else that may wish to try this, what I did was to include a :P0_MSG_COUNT variable and on each of my primary pages (those used most frequently and those refreshed by child pages), I included a process to re-check the table so each time the page was refreshed, if there was a message, it would display.
    Something like this:
    select count(1)
      into :P0_MSG_COUNT
      from MSG_TABLE;I set this procedure to run every time the page is loaded or refreshed. This will check to see if something was posted after the user logged into the application.
    Thanks,
    Don.

  • XFCE popup message in panel not appearing

    after upgrade to last XFCE release i seem to be unable to see the popup messages from items on panel such as Network monitor.
    I hover with mouse cursor over it but nothing appears.
    Anyone had similar happening?

    this has already been discussed on the xfce mailing lists: http://foo-projects.org/pipermail/xfce4 … 26461.html
    If you find somewhere a patch to fix this please tell me and file a bug in our bugtracker.

  • I'm getting a popup messages "uninstal' how do I stop this?

    Question
    I'm getting a popup messages "uninstal' how do I stop this?

    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
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • Popup messages for records

    Hi Everyone,
    Input enabled table can be seen on sap technical.
    this table is connected to one ZTABLE in backend. After entering values in the row of input enbled table i want one popup message that so and so record getting updated to ZTABLE whether user enter 1 row or 2 row or 3 row etc  it should give popup message to all records.
    Thanx in advance.

    Hi john,
                 For pop up first create a view with the pop up message which u want to display,
    then create another window and embed this view to new window.
    then in onaction of update write coding for calling the popup window.
    DATA: CONTEXT_NODE TYPE REF TO IF_WD_CONTEXT_NODE,
            LR_POPUP TYPE REF TO IF_WD_WINDOW,
            LR_VIEW_CONTROLLER TYPE REF TO IF_WD_VIEW_CONTROLLER,
            LR_API_COMP_CONTROLLER TYPE REF TO IF_WD_COMPONENT,
            LR_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.
      LR_API_COMP_CONTROLLER = WD_COMP_CONTROLLER->WD_GET_API( ).
      LR_WINDOW_MANAGER = LR_API_COMP_CONTROLLER->GET_WINDOW_MANAGER( ).
      LR_POPUP = LR_WINDOW_MANAGER->CREATE_WINDOW(
                MODAL               = ABAP_TRUE
                WINDOW_NAME         = 'POPUP_WINDOW'    "window name
                TITLE               =  'TITLE'
               CLOSE_BUTTON        = ABAP_TRUE
               BUTTON_KIND         = IF_WD_WINDOW=>CO_BUTTON_OK
               MESSAGE_TYPE        = IF_WD_WINDOW=>CO_MSG_TYPE_INFORMATION
               CLOSE_IN_ANY_CASE   = ABAP_TRUE  ).
               LR_VIEW_CONTROLLER = WD_THIS->WD_GET_API( ).
               LR_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
               BUTTON = IF_WD_WINDOW=>CO_BUTTON_OK
               BUTTON_TEXT = 'Yes'
               ACTION_NAME = 'YES'
              ACTION_VIEW = LR_VIEW_CONTROLLER ).
      LR_POPUP->OPEN( ).
    if u want values entered in input field to be displayed in popup, then do context mapping of the node which contains the values to context of popup view.

Maybe you are looking for