best practices of command buttons

Hello

I would ask how others view their GUI with several command buttons (OK Boolean button).

For example, it is a simple application where the user can start data acquisition by clicking on a button with text 'Start monitoring '. Instead of having another button with text "Stop monitoring", usually I just change the label text to "Stop monitoring" button, so it is obvious to the user that clicking on that will stop the process of monitoring the implementation (in the case of this button, I read the text of the actual label with property node in order to decide what message action to the loop the loop handler data acquisition of) GUI).

If I have another button with the label as "Record of startup file" text, I do the same way: after saving the file, change the text 'Stop-save file.

To avoid unnecessary additional programming, this button is in the enabled state if the application is already in the State of "monitoring". In addition, if there is a current folder (+ DAQ obviously), the user cannot press the button "stop monitoring". So according to the status of applications, some of the buttons are enabled, some in 'grey disabled' State.

I wonder how others do their app/GUI?

I don't know if it's a good way to do, but at least I can avoid check additional status of programming and by minimizing the number of buttons...

I use the Boolean options text in the Properties menu where you can have different text for the States TRUE and FALSE to your buttons.  This eliminates some of the code that it sounds as you write.

Play / Pause are the two options I usually use if buttons.

Tags: NI Software

Similar Questions

  • encoding issue "best practices."

    I'm about to add several command objects to my plan, and the source code will increase accordingly. I would be interested in advice on good ways to break the code into multiple files.

    I thought I had a source file (and a header file) for each command object. Does this cause problems when editing and saving the file .uir? When I run the Code-> target... file command, it seems that it changes the file target for all objects, not only that I am currently working on.

    At least, I would like to have all my routines of recall in one file other than the file that contains the main(). Is it a good/bad idea / is not serious? Is there something special I need to know this?

    I guess what I'm asking, what, how much freedom should I when it comes to code in locations other than what the editor of .uir seems to impose? Before I go down, I want to assure you that I'm not going to open a can of worms here.

    Thank you.

    I'm not so comfortable coming to "best practices", maybe because I am partially a self-taught programmer.

    Nevertheless, some concepts are clear to me: you are not limited in any way in how divide you your code in separate files. Personally, I have the habit of grouping panels that are used for a consistent set of functions (e.g. all the panels for layout tests, all the panels for execution of / follow-up... testing) in a single file UIR and related reminders in a single source file, but is not a rigid rule.

    I have a few common callback functions that are in a separate source file, some of them very commonly used in all of my programs are included in my own instrument driver and installed controls in code or in the editor of the IUR.

    When you use the IUR Editor, you can use the Code > target file Set... feature in menu to set the source file where generated code will go. This option can be changed at any time while developing, so ideally, you could place a button on a Panel, set a routine reminder for him, set the target file and then generate the code for this control only (Ctrl + G or Code > Generate > menu control reminders function). Until you change the target file, all code generated will go to the original target file, but you can move it to another source after that time.

  • AF best practices for video

    I'm using an EOS 7 d for 1080 p HD video shooting. New to SLR camera and digital video. I have watched several tutorials but do not yet have a good understanding of what the best practices for the development.

    If I put the camera in AI Servo it will auto focus if the subject is moving away or toward me with depress me back AF-ON or the shutter button? Or should I press one of these buttons to make the camera continues to focus?

    You know tutorials or video lessons that cross using update with the video?

    Thanks in advance!

    I don't know any tutorials, but more serious videographers say it is best to use only the manual focus.

    Trial and error is a good teacher, when it comes to video DSLR. You'll quickly learn that video Auto Focus is really bad with the 7 d and most of the people do not use it all together.

    The method that works for me is to use AF before the filming of the video and then adjust manually if you want to you to shoot the video. With the help of f/8 or f/11 to keep everything in short without having to keep the setting.

    More recent Canon DSLR's like the T4i, T5i, 70 d and SL1 have a "hybrid AF" that does a much better job of AF during video, but it is not yet as good as a camcorder

  • to access the QML attached objects in C++ and best practices for the handling of the user interface in classes

    Hello

    I have in fact 2 queries

    (1) how can we access attachedobjects defined in QML in C++?

    (2) I'm loving development on Blackberry 10 C++ is one of my favorites. But I'm a bit lost when it comes to managing the user interface in classes. For example when we create the project through momentics we have a class called ApplicationUI. It manages all the (default) user interface commands, we in C++. as for example creating the document qml and setting as root user interface, etc. I am now working on an app that have NavigationPane as root, and then I continue to push pages (like the screens). But now the code for all pages is inside my ApplicationUI. What is the best practice to keep the UI for each page logic in a separte C++ class?

    I also develop for Android that a separate class for each activity, this code does not mingle for each activity. Please guide me how can I keep logic of user interface of each Page into a separate class of C++?

    regarding your second question:
    I think this is the simplest approach to keep all things in the UI in QML. You can easily put things into separate files.

    If you want to use c ++ to the user interface: can be done, too. just put it in separate classes and include those in your application class.

  • Best practices for the application of page multi Landscape/Portrait

    Hello
    I am looking for information on track to develop auto guide demand in pure actionscript with new components of qnx.fuse, but there is not a good example in real code. Every time I tried to make it resizable layout to get deformated fluid only components in portrait or landscape mode.

    I have a simple application with the point main and 3 displays:

    public class Main extends NavigatorSprite
    {
        public function Main()
        {
            addEventListener(Event.ADDED_TO_STAGE, init); 
    
            stage.nativeWindow.visible = true;
            stage.scaleMode = StageScaleMode.NO_SCALE;
            stage.align = StageAlign.TOP_LEFT;
            stage.nativeWindow.activate();
        }
        private function init(e:Event):void
        {
            removeEventListener(Event.ADDED_TO_STAGE, init);
            navigator.pushView(View1);
        }
    }
    
    public class View1 extends ViewSprite
    {
    
        private var container:Container;
        private var button_two:LabelButton;
        private var button_three:LabelButton;
    
        public function View1
        {
            addEventListener(Event.ADDED_TO_STAGE, init);
        }
    
        private function init(e:Event):void
        {
            removeEventListener(Event.ADDED_TO_STAGE, init);
    
            container = new Container();
            var layout:RowLayout = new RowLayout();
            container.layout = layout;
    
            button_two = new LabelButton();
            button_two.label = "to page 2";
            button_two.width = 150;
            button_two.height = 45;
            button_two.addEventListener(MouseEvent.CLICK, handleTwoClicked);
            container.addChild(button_two);
    
            button_three = new LabelButton();
            button_three.label = "to page 3";
            button_three.width = 150;
            button_three.height = 45;
            button_three.addEventListener(MouseEvent.CLICK, handleThreeClicked);
            container.addChild(button_three);
    
            addChild(container);
        } 
    
        private function handleTwoClicked(e:Event):void
        {
            navigator.pushView(View2);
        }
    
        private function handleThreeClicked(e:Event):void
        {
            navigator.pushView(View3);
        }
    }
    
    public class View2 extends ViewSprite
    {
    
        private var container:Container;
        private var back:BackButton;
    
        public function View2
        {
            addEventListener(Event.ADDED_TO_STAGE, init);
        }
    
        private function init(e:Event):void
        {
            removeEventListener(Event.ADDED_TO_STAGE, init);
    
            container = new Container();
            var layout:RowLayout = new RowLayout();
            container.layout = layout;
    
            back = new BackButton();
            back.label = "Back";
            back.width = 100;
            back.height = 45;
            back.addEventListener(MouseEvent.CLICK, goBack);
            container.addChild(back);
    
            addChild(container);
        } 
    
        private function goBack(e:Event):void
        {
            navigator.popView();
        }
    }
    
    public class View3 extends ViewSprite
    {
    
        private var container:Container;
        private var back:BackButton;
    
        public function View3
        {
            addEventListener(Event.ADDED_TO_STAGE, init);
        }
    
        private function init(e:Event):void
        {
            removeEventListener(Event.ADDED_TO_STAGE, init);
    
            container = new Container();
            var layout:RowLayout = new RowLayout();
            container.layout = layout;
    
            back = new BackButton();
            back.label = "Back";
            back.width = 100;
            back.height = 45;
            back.addEventListener(MouseEvent.CLICK, goBack);
            container.addChild(back);
    
            addChild(container);
        } 
    
        private function goBack(e:Event):void
        {
            navigator.popView();
        }
    }
    

    Is there for example some best practices how to modify this code to have pages and components with the same sizes in portrait and landscape? On presentation buttons size always 150 width and height 45 and wil containers have stageWidth and stageHeight.

    Thank you if someone could help with this problem

    Hello

    Try listening to a shift in focus screen with this code:

    stage.addEventListener(Event.RESIZE, onResizeHandler, false, 0, true);
    

    You can only change the width/height of your components to the event based on the width/height of the floor.

    I will guard against specifying specific sizes, if you want your code to work on devices BB10. I recommend using %'s.

    Kind regards

    Dustin

  • Request for advice: generally speaking, what is the best practice for managing a paid and a free application?

    Hi all

    I recently finished my first app of cascades, and now I want to inspire of having a more feature rich application that I can then sell for a reasonable price. However, my question is how to manage the code base for both applications. Any have any "best practices", I would like to know your opinion.

    You use a revision control system? This should be a prerequisite...

    How the different versions of the application will be?

    Generally if you have two versions that differ only in terms of having a handful of features disabled in the free version, you must use exactly the same code base. You could even just it for packaging (build command) was the only difference, for example by adding an environment variable in one of them that would be checked at startup to turn paid options.

  • denying denying interceptor inline best practices

    We recently deployed an inline IPS solution using software 5.1 7 E1. We wish to refuse-attacker-victim-pair-Inline for a few signatures on a particular subnet on the network but to destroy the rest.

    To implement this correctly, I think that we must use Action SigEvent filters on the sensor and use the commands > for all subnets agree that we want to allow deny actions for.

    I have seen that in the configuration of the sensor, you can implement in the section > a > statement. My understanding is that does more for fleeing rather than deny solutions online.

    Am I right about that?

    Please could someone on the list post that it is the best practical solution to deny deny attackers inline.

    create 2 event action filters.

    The first action event filter will match signatures and subnets you want to deny on and do not subtract all actions. Make sure that you set to "stop the match".

    The following will match the same signature but the address 0.0.0.0 - 255.255.255.255. remove the appropriate actions.

    The net result is that the filter action first event will apply when it matches and the second when it doesn't.

  • Best practices for the restart of the nodes of the ISE?

    Hello community,

    I administer an ISE installation with two nodes (I'm not a specialist of the ISE, my job is simply to manage the user/mac-addresses... but now I have to move my ISE a VMWare Cluster nodes to another VMWare Cluster.

    (Both VMWare environments are connected to our network of the company, but are different environments. vMotion is not possible)

    I want to stop ISE02, move it to our new VMWare environment and start it again.

    That I could do this with our ISE01 node...

    Are there best practices to achieve this? (Stop request first, stopl replikation etc.) ?

    Can I really just reboot a node ISE - or I have consider something before I do this? After I did this?

    All tasks after reboot?

    Thanks for any answer!

    ISE01
    Administration, monitoring, Service policy
    PRI (A), DRY (M)

    ISE02
    Administration, monitoring, Service policy
    SEC (A), PRI (M)

    There is a lot to consider here.  If changing environments involves a change of IP address and IP extended, then your policies, profiles and DACL would also change among other things.  If this is the case, create a new VM ISE in the new environment in evaluation license using the and recreate the old environment deployment by using the address of the new environment scheme.  Then a new secondary node set rotation and enter it on the primary.  Once this is done, you can re - host license from your old environment on your new environment.  You can use this tool to re - host:

    https://Tools.Cisco.com/swift/LicensingUI/loadDemoLicensee?formid=3999

    If IP addressing is to stay the same, it becomes simpler.

    First and always, perform an operational backup and configuration.

    If the downtime is not a problem, or if you have a window of maintenance of an hour or so: just to close the two nodes.  Transfer to the new environment and light them, head node first, of course.

    If the downtime is a problem, stop the secondary node and transfer it to the new environment.  Start the secondary node and when he comes back, stop the main node.  Once that stopped services on the head node, promote the secondary node to the primary node.

    Transfer of the FORMER primary node to the new environment and turn it on.  She should play the role of secondary node.  If it is not the case, assign this role through the GUI.

    Remember, the proper way to shut down a node of ISE is:

    request stop ise

    Halt

    By using these commands, the risk of database corruption decreases by 90% (remember to always backup).

    Please rate useful messages and mark this question as answered if, in fact, does that answer your question.  Otherwise, feel free to post additional questions.

    Charles Moreton

  • Best practices/assets

    Hello, I have a question about restoring active links in a Web site. I understand that the best way of assets update batch is do them all in one folder. However, I have several large websites with hundreds of photos and other goods, and it seems not that it is the best way to manage property. For example, I have a client that I have 50-75 pictures added to their site each year for a project. I do not delete the pictures of previous years, just keep to add. It only seems fair to just continue to add assets to a record of great asset. But, I had the folder my documents moved a couple of times, whenever I put in exactly the same place on my drive hard as it was (long story, this time, that apple has messed up my documents folder by MOVING to icloud without my permission) and even if I put back it exactly where it was, Muse said all assets are missing and I need to manually recreate a link to each of them. I understand that, for this reason, everything should be in the same folder, but for larger sites, it doesn't seem like it's the best practice. Sometimes, I have 20 or more active in a folder and we rebuild those suddenly, it's great, but I still several hundred in a Web site into smaller folders.

    Any ideas?  I don't know why muse is so delicate on the moved files, if I end up putting them back in the same place. I know that it is better to leave them where you designed the originally, but of the things happening.

    Annette

    ADusa says:

    the best practice

    Annette

    don't move images from one computer to another because they are not the same images in the new system... even if you put them in the same place.

    I just take the .muse file then use Dreamweaver (something like it) to download images from the Web page on the new computer... new version of Muse has an active button fired but older versions of the muse is

  • Best practices for handling logic conditional dialogue/popup in the ADF?

    Here's the scenario:

    I have a page that shows a popup programmatically in a method of bean support. The popup asking the user a yes / no question and subsequent logical path is determined by their response. However, if the popup is visible or not in the first place is conditional. In addition, there is an additional logic in the original method, apart from the logic of popup, that must be met.

    The problem with this is that the ADF seems to spin off the popup in another thread and prevents the execution of logic in the original method at the same time, while you wait for the response from the user. However, the desired effect is that the program stops until the user has answered the question in the context menu.

    I was not able to understand in an elegant way to make this happen. Ideally, I think that the solution is to encapsulate the logic that occurs after the popup is displayed (or not shown) in the original method and call it from the popup action listener if the popup is displayed (if not call it the original method of). However, the logic should be encapsulated requires the use of some local variables that have been put forward for the popup to appear. There is no way to get these values to the popup action listener method to pass them on to the encapsulated logic (aside from the creation of global static variables in the bean, which seems to be a bad solution).

    Another idea I had was to get the logic ' show/do not see the popup' workflow. However, it seems that for every single popup would make the really complicated workflow.

    Is there a 'best practice' recommended to handle this situation? It must be a common problem, and it seems that I will talk all wrong.

    However, the desired effect is that the program stops until the user has answered the question in the context menu.

    This will not happen in any web environment, including ADF.

    You will have different events for each life cycle:

    1 - opening popup: popupFetchListener event

    2 - Click on OK, Cancel buttons: DialogListener event

    3 - Press the Esc button: popupCancelledEvent

    You can share data between these events on pageFlowScope, or viewScope.

    But if you use the ADF BC, you might be better to use transient attributes on the objects in view.

  • Best practices for adding form fillable form designer EULA & forcing acceptance by the user

    What are created the best practices for adding a license agreement end user to a form with LiveCycle Designer. and to force the user to signify the acceptance of the EULA before access inside the form?

    Time, I have the kludged with a series of four message boxes (which is necessary because my LICENSE agreement, like most) is too long to fit in a single messageBox).  3 first message boxes have OK/Cancel buttons.  If the user clicks OK, she gets the following message EULA box; If she clicks cancel the form closes.  The last post (fourth) area a Yes/No buttons with the corresponding behavior.  It seems that the work (I think?), but it's ugly.  Is there an "easy way" to do it with a single drop-down dialog box "I agree" and "I refuse" custom buttons?

    I've seen references to Tools like this but they are marked as obsolete or abandoned due to security or other unspecified concerns.

    Best, Blake

    Another way might be, keep the form pages hidden at the beginning and only display a single page that has text box that contains the EULA with accept and refuse to scroll buttons. IF someone refuses, you can keep the rest of the hidden form or display message boxes to force acceptance of the EULA.

    If anyone agrees, you can simply hide the EULA page, and display form pages.

    I hope that used here too scripting required to reach it either.

  • Best practices for structuring a big Flash project?

    I'm building an educational site in Flash. A student works through a series of activities, or watch a video of animation or answer a question. You can get a good idea of the Basic with this model functionality: http://imgur.com/Mi4JyHN.


    Once a student logs in, the server responds with their current activity and progress. Displays the activity, and all interactions of the student are sent to the server for recording (time spent on questions, answers clicked, correct and incorrect buttons, etc.). When the student is done with an activity, the server is notified and responds with the next activity to present.

    I'm pretty new to Flash and would love to hear how people with experience framing project. I see the following options.

    1. A huge SWF. All audio and video clips are embedded in the SWF file and swapped out if necessary. This is not a reasonable option, because the size of the SWF file that results would be enormous.
    2. Exactly a SWF for each activity. Command buttons and progress bars are obviously shared between each activity, and it seems that a lot of duplication to have in each SWF compilation. Also, if a button is changed, this requires re - compile everything, right?
    3. A SWF of other charges. The main SWF file contains the buttons and progress bars and retrieves external SWFs on the server to replace the stage space. I don't know enough Flash to predict how this will go.
    4. JavaScript, part Flash. The button bars and progress are made in HTML + JavaScript. The page retrieves external swf on the server to replace the stage space. This is the current system, and the problem is the ugliness or the difficulty of managing communication between JS and AS3.
    5. HTML5. While I wish it is a possibility, I don't feel as if it was. The animation is still easier in Flash and we always aim some older browsers. The best part of Flash's consistency in the experience.


    Additional questions:

    • What options leave us open to the publication for mobile using Adobe AIR?
    • What options are best for automated tests / accessibility / version control / general layout of code?

    Thank you very much for all the advice!

    For a Flash-based design, I'd go with option 3.  General commands and objects common to use with each activity would be in the main file.  Whether or not the main file would be responsible for sending data to the server might depend on some there is determinable similarities between databases... activity otherwise it might fall on sovereign wealth funds individual to interact with the database activity.  There are too many unknowns in this regard to offer much.

    If this was going to be a responsible application, as an AIR application, and then option 1 might be more reasonable since just install once for all is available.

    When it comes to mobile, you're likely to hit a snag, if you rely on the AIR/Flash to try to deal with one hand and activity SWFs approach... mainly in the area of the Apple... unless I've forgotten a lot of what I've been involved with some time ago, a loaded swf file cannot contain any code when it comes to iStuff.  If you end up having to do the main file contain all the coding to deal with the treatment of each activity.  Each UI element / interactive cannot exist by its name and the main file should target and assign listeners and treatment and etc... a mess in my opinion.  This is why having one large AIR file is maybe a bit more reasonable.

    I have nothing to offer at the end of things HTML5.  I have not yet traveled in this way.  Because HTML5 is basically without wings without javascript and CSS, he could come to pass that the current system (option 4) is the way to go.

  • Best practices for the compression of the image in dps

    Hello! I read up on best practices for the compression of the image in dps and I read the asset from the source of panoramas, sequences of images, Pan and zoom images and audio skins is resampled not downloading. You will need to resize them and compress them before deleting the in your article, because the dps do not do it for you. Hey can do!

    So Im also read as he active source of slideshows, scrolling images, and buttons ARE resampled as PNG images. Does this mean that DPS will compress for you when you build the article? Does this say I shouldn't worth going bother to resize these images at all? I can just pop in 300 DPI files 15 MB used in the print magazine and dps will compress their construction article - and this will have no effect on the size of the file?

    And this is also the case with static background images?


    Thanks for your help!

    All images are automatically resampled to based on the size of the folio you do. You can put in any image resolution you want, it's not serious.

    Neil

  • best practices of grid of alert

    Hello

    I'm using the grid v11g

    I want the grid to use out of monitoring for all targets, but when it comes to I want to receive notification only for the subset of these elements (as well as two or three different items that are not enabled in the framework of the outside the surveillance zone), notifications by e-mail

    What is - this is the best approach to implement this?

    below is the only way and effective way to do it?

    1 create the model for each target types (IE host_temp, db_temp...) by using the existing button "create as" to clone existing templates provided by oracle as "Oracle provided host model", I guess that's the oracle of model used for out of area of surveillance? and then add my own metrics to model.
    2. create notification rules (one per target type), limit the rules to only those measures which I want to be informed

    Thank you

    Hello

    Yes, it's the General method to do so.
    You can consult this Oracle OpenWorld presentation on best practices of monitoring strategies using EM11g:
    http://www.Oracle.com/technetwork/OEM/sys-Mgmt/s317279-em-monitoring-BestPractices-183599.PDF

    concerning
    Ana

  • Best practices for automation of ghettoVCBg2 starting from cron

    Hello world!

    I set up an instance of vma for scheduling backups with ghettoVCBg2 in a SIN store. Everything works like a charm from the command line, I use vi fastpass for authentication, backups complete very well.

    However, I would like to invade the cron script and got stuck. Since vifp is designed to run only command line and as I read not supposed to work from a script, it seems that the only possibility would be to create a backup user dedicated with administrator privileges and store the user and pass in the shell script. I'm not happy to do so. I searched through the forums but couldn't ' find any simple solution.

    any IDE for best practices?

    Thank you

    eliott100

    In fact, incorrect. The script relies on the fact that the host ESX or ESXi are led by vi-fastpass... but when you run the script, it does not use vifpinit command to connect. It access credentials via the modules of vi-fastpass which don't vifpinit library but as you have noticed, you cannot run this utility in off-line mode. Therefore, it can be scheduled via cron, basically, but you must run the script interactively, just set up in your crontab. Please take a look at the documentation for more information

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

Maybe you are looking for

  • Satellite A500 / 01 M - can not install the driver from nVidia page

    So I bought an A500 / 01 M over a month or two ago, and the NVIDIA drivers are not updated. I have the nvidia site to download new drivers, but they would not install.He said that the pilot was not compatible and I got get the update of my manafactur

  • Recovery for Satellite L755 - 17Q

    First of all, I want to say that I am completely useless with computers. I have used the product recovery CD, followed all the steps, it took like 30 minutes. And then he did. After that it's over, he had a number of problems that have emerged: Windo

  • Windows 7 drivers for dx6120 microtours

    Y at - it support dx6120 format microtour PC having Windows 7 operating system. A friend of mine has just installed Win 7 and needs drivers. What are the current opportunities, or more it wise for him to downgrade to XP?

  • Strange behavior of the run LabVIEW VI 2013 LabVIEW 7.1

    I'm trying to extract some data hardcoded from old code LabVIEW 7.1 and decided to write a small program in 2013 of LabVIEW. The program opens a reference to a VI 7.1, search enums and call it with reference to all combinations of enums. Actually qui

  • HP Officejet Pro 8500 a won't copy

    My printer works fine, but my copier will not copy.  When I select a snippet of copy, there is nothing except multicolored vertical stripes.  I cleaned the printer window.  I tried to change the settings, resize, move, & crop so that the image appear