Close control reminder eventdata for Panel

Hello...

I'm sorry, this seems to be a basic question - but in fact, I couldn't find an answer in help...

I built a panel that is displayed by using InstallPopup (); Besides other controls, the Panel has a button OK command, and in the editor of the IUR narrow control of the Group of experts has been assigned to this button. (there is no reminder Panel for this Panel)

Accordingly, pressing the OK button or by clicking the close button in the upper right of the Panel title bar called the command callback function, and in both cases, a VALIDATION event is generated because the command button is a quick access control. That everything is perfect.

Now, in the callback function CVICALLBACK PanelOK (int command face, int, int event, void * callbackData, int eventData1, int eventData2) I thought to make the distinction between the OK button and close Panel button and then I checked the settings eventData1 and eventData2.

By pressing the OK button gives 0 in two settings, and in my opinion that's fine.

However, by clicking the close button in the upper right corner of the title bar of the Panel gives 1 in both settings, and I'm trying to understand why there is a 1 and what means this value.

According to the help (userint.h) and the event data for a VALIDATION event settings are for

  • menu selection events
  • table events
  • events of the tree
  • Mark state changes
  • changes to the label of finishing
  • Double click on
  • key return
  • column labels
  • graphs

This case applies here? And what is the magical keyword should I entered in search of help for the answer me?

Thank you!

Wolfgang,

Besides cases you listed here, the event data are not defined. It is usually 0, but not necessarily. You certainly shouldn't count on that it is 1 in this case.

This essentially means that you can't really tell the difference between these two events. If you really make the difference, enjoy the round table of EVENT_CLOSE.

Luis

Tags: NI Software

Similar Questions

  • Outsourcing of the controls on the front panel for a panel floating Subvi

    Hello!

    I already found a few similar topics, but I still don't know which is the best way to solve my problem. I will try to describe my problem in detail first: I have a main VI that acquires data from a device and displays these data in a large waveform graph. I have also a few controls on the front panel to control my device. First, I placed all of these device controls (digital, sliders, etc.) as well as the chart inside the front of my main VI. However, due to limited screen space now I would like to make the largest possible graph and so decided to "outsource" some controls out of the main façade of VI to several panels front-end Subvi.

    I would then press a button in my main VI and it would open the Panel before the floating of the Sub - VI corresponding with outsourced controls when required. However, everything must be absolutely transparent. It is important that floating panels to run in parallel with my main VI, that is the main VI must continue to operate. That way I'll have my data constantly updated in the chart in my main VI while I can change some settings of the device through the controls placed in my SubVIs. These changes will be immediately applied (for example as soon as the main VI calls this slot - VI in its main loop).

    It is important to the visibility of the outsourced optional control panel, i.e. If the Subvi front panel opens with the user that it will pop up and the user will be able to change the paramers device using the. But then the user should be able to close the front panel (hide) the Subvi to see the entire chart again without the Panel floating in front of her (of course control values must be maintained when the Subvi front is not visible). Then the new button is pressed in the main VI that opens the dialog box not modal Subvi containing controls and it can redefine new values of device.

    Advice how to do this are welcome. I don't know if I need something complex like VI server or asynchronous screws or I can solve my problem by changing some settings simple Subvi? Thank you in advance for your help!

    Best regards

    Anguel

    AStankov wrote:

    How about using a global variable for the VI at VI communication instead of a queue?

    A global variable will, also.  Write you in one place and read the value frequently to somewhere else (in the election). So you can see easily to any value change.  However, mark will waste a lot of time processor.  This is why I have proposed to use a queue or a notification utility.

    AStankov wrote:

    Would be the last option that you mentioned, i.e. finish the Subvi at each change of value, I would keep the Subvi front open as needed until things from the user to hide? Or would there be inevitable flickering Panel or any other drawbacks?

    Yes, the Subvi can keep the façade open until the user closes. And there should be no flickering.  The biggest drawback I see right now is that when you expect an event in the Subvi, the mainVI cannot stop without talking to the Subvi to stop.  So you'll need another channel of communication (again a global, a queue, a declarant or an event) to tell the Subvi that she must stop.

  • How to make non-visible control on the Front Panel appear at Design time?

    I have a few controls on the front whose visibility is changed (on or off) at run time. The problem is that if I stop the Run time, the visibility of the control remains in the running in design mode state. So I am not able to see or find the control to make changes in design mode.

    How can I make all the visible front-panel controls, or find and make it visible to a control on the front whose visibility has False?

    Thank you.

    It is documented in the help of LabVIEW.

    Hidden front panel display


    Perform the following steps to display a hidden front control or indicator. You can also hide the indicators and controls on the front panel.

    1. Find the terminal block schema for the object. "If you have multiple devices with the same type of data, right click on the terminals and select visible elements" Label in the context menu. Find the object with the label that corresponds to the object hidden façade.

    2. Right-click in the Terminal, and then select Show Control context menu if the object is a control or indicator to show if the object is an indicator.

    You can also use the Visible property to display the controls and indicators by program.

    You can also view all hidden front panel controls and indicators.

    Path: Fundamentals-> build the façade-> how-to--> configure the objects-> display on front panel of the façade hidden object.

  • Disabling the controls on the front panel

    Hello

    Currently, I am working on trying to disable/gray out between 10-20 controls on the front panel when you press a start button and then allowing them the end of the test. Currently I use the property nodes, all of which are connected to a constant of the State in which I want that works perfectly. My question is that there is another way other than having a bunch of knots of padding property to the top of my structure of the event. Ive read where people had Subvi, which has used references to make this same feature, but is there a way of doing things in the block diagram of my current VI? Thank you!

    Need references of your controls on the front panel, so this can be fast, because you can select more than one, and with a right click you create references.

    I have attached a version LV2010.

    Edit: another review:

    Must be created only once these references. Usually, it's comfortable group all the references in a cluster, use this thread through your entire code. This way you can just ungroup references to the actual location, you have to play with, put them in a table and use the above FOR loop to change their properties...

    Like this:

  • Controls on the front panel does not work

    In the attached vi (I've stripped down to simplify things), I have a problem with the controls on the front panel does not when you click on the control to acquire it. It of probably something obvious but got me to loss.

    Thank you

    It is probably because you are in the State to acquire until you're done absorbing.  Meanwhile, none of your other events can run.  You have events to acquire: let the mouse.  There is a setting for "Panel before locking up the end of the occurrence of the event.  Given that the event cannot process until your State acquisition is completed, the façade will be locked.

    I would recommend another loop for the acquisition of your data.

  • How can I do tab close buttons always visible for all tabs?

    I have the value "1" browser.tabs.closeButtons setting or "display the buttons close all tabs", but the problem is, whenever I have about 6-10 tabs open (varies according to the size of the screen) the close buttons disappear except for the active tab. I like to keep the close buttons available, at least to make a button close appears when I go on the tab with my mouse, so I can't switch to it or right click on it to close it...

    See:

  • Binding the controls on the front panel programmatically

    It seems that Programmatic binding the controls on the front panel do not work when they are located in a tab control.

    Is this a known problem in LV 8.6?

    If the control of the façade is already bound to a URL of PSP you can link to another URL using DataSocket URL property during execution of the VI.

    If the front panel control is not bound to a URL of PSP, then you cannot attach it to the URL of the PSP when the VI is on. You can use the method AttachDataSocket of VI to change the link while the original VI is stopped (in edit mode).

  • How can I close the Client Services for Netware that is me project to use the fast user switching without losing my internet connection

    For NetWeare customer service

    How can I close the Client Services for Netware that is me project to use the fast user switching without losing my internet connection

    Hello

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in Forum.You IT Pro can follow the link for your question:

    http://social.technet.Microsoft.com/forums/en/category/w7itpro

  • LPN controlled, active checkbox for all subdirectories, even if the org inventory is Non - WMS Org

    Hello

    In one of our instance "LPN controlled" checkbox enabled for all subdirectories, even if the org inventory is Non - WMS org.

    Can I know configuration controls this box in Orgss Non - WMS?

    Thank you

    Bug: 16097371 -SUBINVENTORIES NEW CREATED AS CONTROLLED IN ORGS NON LPN - WMS

    This hotfix will be available for all clients in RUP7 INV/RRS rollup patch.16826285: R12. INV. B.

    Kind regards

    Surya

  • Detailed help for the controls on the front panel

    I can't help sensitive to context or detailed on the controls in the Panel before LabVIEW help. Why this does not work in LabVIEW?

    I have trying to find detailed help about the ring of text.

    In the finder of the example, search for "rings."

  • Don't make a left click or close the popup settings for Flash Player local storage

    New book from Surface, 200% display scaling. cannot left click or close the popup of local storage settings Flash Player (which is not scaled). Make a right click works, but cannot get rid of blocked dialogue. I see people saying Flash dialogues only work with the scaling to screen 100%, but this would make the screen of 3000 x 2000 pretty unusable. Is there a better solution?

    I just ordered a couple for the team the other day.  It took some time for our supplier of equipment start their storage.

    These dialog boxes are problematic for a number of reasons.  I'd love to see them disappear entirely.  In most cases, what you run is our protection fromclickjacking anti - being overzealous.  Flash Player is in an uncomfortable position, where it is difficult to ensure that we are the object of above and that our security dialogue box is not obscured by something malicious that tries to make you click on it.  This is particularly problematic if the dialog box appears on things that move, such as video.  Fixed bugs in the logic of clickjacking is a game of whack-a-mole, so usually set us on a config and finds that he has beaten another combination of factors of density/zoom screen/resolution.

    The best way to deal with the situation is to simply stop the dialog box to display in the first place.  The days when disabling Local Shared Objects in Flash you bought anything in terms of protection personal information are over long - HTML5 provides much more powerful functions to develop behavioral followed resilience.  The best approach in trying to stay private is to use only the browser incognito-private browsing mode.  This tricks Flash into thinking it has access to whatever he wants to write, but it happens in a temporary directory that is destroyed when you exit the private browsing session.

    Since Flash Player think actually that it runs with rein in Incognito mode, without dialog boxes to throw (unless you have set the default privacy preferences in the drive).  Incognito mode is far superior to management of granular controls of the Flash, because it also beats the approaches to monitoring of client - side HTML5 equivalent * and * is not usually degrade the user experience.  We do also some extra stuff to help the hurt to do server side footprints, like turning a very minimal list, sorted by alphabetical order of the policies in Incognito mode.  If you're curious about what can be done exclusively on the coast Server (and want to be depressed), check out https://panopticlick.eff.org/.

    Anyway, for this purpose, you can configure Flash Player to always allow sites to store local shared objects, or you can allow it on a site-by-site basis if it is a site of particular video or something that gives you consistent headaches.

    To do this, go to control panel > Flash Player > storage and choose an option.

    It is also interesting to note that there is a lot of superstition there since the beginning of the 1990s on the 'Flash Cookies' / shared/LSO local objects that holds true anymore.

    When you clear the cache of your browser, we remove our LSO.  The feature was scheduled for things like game save data and caching assets, but some smart marketing people find it useful to backup the data in the cookie of the user store, so that they had followed who survived a user to delete their cookies.  While the unfortunate and embarrassing, we corrected for a long time that, by adopting a behavior that we believe best match user expectations.  Unfortunately, once you get the stench on you, it is difficult to reverse.

    Hope that helps!

  • How can I close control Mission applications?  I hide the dock and it's out of the way while I work.

    I want to manage (close) application for running applications windows, Mission control. GNOME Shell has something similar to the control of the Mission, but each window has an 'X' in the top left allows you to close it in the preview... It is the most natural way for me to 'clean up' my open windows.

    Always close all the windows do not exit the application. Only applications that have a window like the preferences system, Keychain Access, and disk utility can be leave by closing a window. More information

    You can hold down the Option key when the button in an application to close by clicking on a red and it closes all open windows that are open in the application. It does not end the app.

    Command + Option + Q allows you to exit an application and to close all its windows so that when you reopen the app it will not open windows.

    If you want to quit all open applications, see this post on the use of Automator to stop everything.

    http://osxdaily.com/2013/06/02/quit-all-applications-Mac-OS-x/

  • How to create a control of time for the while loop?

    Hi all

    I want to control my time running of the loop. In other words, I want to stop everything in the execution of the loop after a time (in ms) that is defined by the user. For example user defines Control Panel for 5 seconds before a while loop runs and stops after 5 seconds.

    I don't know is it possible with the while loop. I managed with the timed loop, but this must be wrong with my application. Y at - it of the other loops for timed control if it is not possible with while loop? There is also a simple loop with .vi random number (0-1) as an attachment.

    Best regards

    Jick

    Hi again,

    I managed to solve my problem right after I posted my first message. I did it with the passage of time and the register shift (for the elapsed time of reset).

    Thanks for your replies anyway!

    Best R

    Jick

  • Functional global variable home (RFGV) is cut off by the controls on the front panel

    Hello

    I though that I had found the ultimate way to dynamically manage memory in a system of Exchange. I read on RFGV here: http://labviewwiki.org/Functional_global_variable and put together a static FGV normal to follow the references for each created instance of memory which I then could easily remember just by name. But now I found that all the RFGV completely stops whenever a front panel with a menu control is used, i.e. 'enum', 'ring' or 'control path. I tried to put in different delivery systems, but not luck. I read about that guy who could have fallen into the same problem: http://forums.ni.com/t5/LabVIEW/Do-I-need-to-use-a-semaphore-when-reading-writing-a-functional/m-p/1... but he got no help what I could see.

    I have not tried semaphores. Don't know what that is. Check my little test code and tell me what I am doing wrong. Or maybe there is no solution in this case I have to abandon the idea of the use of RFGV for anything. Maybe memory held all the VI will be assigned statically.

    Run the code (in LV2009) and watch the 6 LEDS Flash. Then click on anyone of 'enum', 'ring' or 'path' (the file dialog box) and watch off LED when dynamic memory is used to write or read while the continoues to static VI.

    Any suggestions?

    Best regards

    Kai

    If the memories are good, what you're running against is not the user interface thread, but an internal mechanism of LV called the loop of the root, which must run in some things. Specifically, in your case, the method run a VI and showing a menu (a menu real, or a context menu of a ring).

    You can work around this problem (and greatly simplify your code) If you use the call node of the reference instead of the method to execute a VI, but I wouldn't recommend it anyway, since I assume that your code is not what you think it does. In LV memory management can be quite complex if you want to be able to control it, so if you feel you really need, I suggest to start by searching for existing materials on the management of memory in LV

  • Programmatically disable the controls on the front panel

    Hi all

    I have a case in which I need to activate the control of front panel during scanning or taking data and when this case is false / when not not taking data. I try to make the Subvi usng vi reference, the node property, making the label controls and disbaling it. I want to disable the control listed in the table during the real deal and allow them to return to the case of fake. But right now, it of not working and hangs my main program. Please see the vi attached and help find where I am doing wrong.

    Thank you

    The best way would be to create an array of references to the controls you want to mess with beforehand.  I say that because I'm guessing that you have several groups of controls you will be turn on/off at the same time.  If you have a table of these controls already created, then just run the table in a loop FOR and use the Disable property.  I made a few minor cleanups in your current VI.  I got rid of the outermost case structure since the two cases are essentially the same thing.  A selection function allows to choose to enable or disable.

    NOTE: the forums are screwing again and not let me post a VI.  Change the extension back to vi to open it in LabVIEW.

Maybe you are looking for