Active button

Hello everyone.
I put a button in the user interface that is associated with the reminder "stop". I need to get out of an emergency procedure, but unfortunately when my software performs some operations if I click the button nothing happens. Can you help me?
Thank you.

It is a classic problem with GUI applications based.

GUI events are handled on the same thread as the GUI Panel.  So, if you have this thread doing something, is not GUI events and your treatment STOP command is unresponsvie.

If you could:

1. whenever you have the GUI thread (usually the hand) do something, do it regularly to call a function ProcessSystemEvents() to be able to respond to a GUI event and run your STOP command callback function.

2 create a thread of 'work' to go off and do the surgery, leaving your main thread available to process GUI events i.e. RunUserInterface().  When the user wants to STOP, the main thread see quickly and noted the worker or threads to stop or even put an end to them directly.  It's the design model more common for this problem.

3 create a panel separated with the STOP command on this issue, load this Panel from a secondary thread and then have this secondary loop of thread on the verification of the State of the control and react when the SHUTDOWN command is used.  You must be careful not to simply spinlock on the State control in order to do not consume a lot of CPU bandwidth.  I used this with a high priority thread track, most of the time to sleep but wake every 100 msec or then check and see if the STOP control has been clicked.  Once there, you can have this second vault of thread of the test system (beware of conflicts of resources), or it can indicate to the main thread to stop it (but this kind of pose the question) or he may try to leave the process.  You must make sure that the end of the process to close unexpectedly when you think it does, it is possible to crash with a call to ExitProcess().  You can use TerminateProcess() or ExitProcess(), but you should learn about the differences between these two functions.

Windows threading model hosts 'user interface' threads that deal with GUI events off the coast of the queue of messages, as well as "work" threads that don't.  But, the CVI event model does not provide this distinction.

Tags: NI Software

Similar Questions

  • BlackBerry Z30 voice activation button

    Is there a way to disable the voice (middle button) on the side of the camera activation button.

    This button is pressed accidentally easily.

    Bobexit0

    Try to turn the mute OFF where you see "open with the mute button" under "settings/voice control.

  • Not active button "Synchronize" in iTunes

    Firmware: 9.2

    someone tell me what the problem is, I can't throw any music, nothing!

    The same problem, when you connect mini iPad 2 with iOS 9.2

    The button is not active!

    Looks like there is no compatible backup on this computer.

    Did you ever backups using this particular machine?

  • Active button not recorded data.

    java.lang.IllegalStateException: ADF_FACES - 60003:Component with the ID: pt1:r1:0:PanelCollection:b3 not registered Active data.


    I get such a mistake after the ADF, update to the latest version. Before it was not held (I see it working in production, it's only broken in my dev system).

    It seems to be caused by the following fragment:

    < af:button text = "Alter table" id = "b3" action = "editTabledef" disabled = "#{!}" bindings. Delete.Enabled} "/ > "

    The problematic tag here is 'disabled '. When I remove the EL of the attribute, then the problem is gone. But ultimately I need to disable the button

    When no line is selected. Anyone else see a familiar problem? Anyone know how to solve? I tried to change the ChangeEventPolicy, etc., but it doesn't seem to work.

    Hi all... I solved it myself.

    The solution is quite simple and I'll write it here, it may help someone in the future.

    The commandNavigationItem has a property partialSubmit = false (default). This has caused problems

    with 12.1.3 ADF and the solution are fairly simple - affecting the partialSubmit set to true. As I have

    described previously, the problem only appeared when I clicked on the same commandNavigationItem.

    The entire site has been reloaded, and it seems that the integrity should have been lost. I want to understand

    the problem a little bit more, but unfortunately I do not have as much time. Maybe the solution will help someone

    in the future. Thanks to all for trying to help.

  • Yet cs6 selection vs activation button

    Difficulty understanding what I am doing wrong with my menu buttons. I'm doing the buttons that show the two selection (blue marker) and activation (red marker).

    Here's my layers in Photoshop cs6:

    photoshop buttons.png

    And here's what still gives me:

    encore buttons.png

    Note that, in the Panel menu, I clicked on the "view the status selected button" to get the image reproduced above. I was surprised that I have not all markers of blue button. Blue is the color of the (= 1) preceded by layers in Photoshop. Red is the color of the (= 2) layers the prefix.

    What seems actually still to do is just to show the layer at the top of the layer stack to the button, without any regard for the prefix. I say this because I get exactly the same results when I click on the button "view activated State" in the Panel menu again.

    What I want is for the selected State show a marker for the State and blue enabled show a red marker. Seems simple, but I've been beating my head against the wall for the last day, trying to make it work. I read the docs again and again and, well, they are not helping. So I ask here: what I am doing wrong that spoil?

    I can't get this right, but the real appearance is defined by the color scheme. You probably have "automatic" set, and the default values for the selected and activated the same. According to the player, active is very short. Change the set of colors 'default', and you may be able to see a difference.

    I learned to play with this some more.

  • the keyboard and/or the active button - sprite zoom (scale)

    The idea is to scale the sprite [1.0,1.0] [2.0,2.0], etc. using either the keypad '+' and '-' or activation of the button.

    I have hunted through every discussion in the forum, as well as dozens of suggested sites and am always so lost that I started. Anything that can give me a little push in the right direction would be much appreciated!

    Instead of basing your calculations of width/height on the height and width of the members , based on the height and the width of the sprite :

    property spriteNum
    property my
    
    on beginSprite me
      my = sprite(spriteNum)
    end
    
    on mouseUp me
      my.width  = my.width  * 1.2
      my.height = my.height * 1.2
    end
    
  • stop on the last slide with active buttons

    Hello world

    Am still a beginner with Captivate... Please help:

    I have 4 buttons set in place on the last slide of Film1, functioning as a simple menu, sort of.

    First button goes to Movie 2, second button jumps to 5 film, third button jumps to 8 film, with a last button SHOWS ALL from 2 film as well. All these movies are related to each other (ie. 3 movie begins when ends the movie 2).

    How can I get the Film1 stop on the last slide, with all 4 buttons remaining active?

    In my published exe, the buttons work if and only if I click on them, until the project stops.

    Thank you in advance for expenses!

    Hello

    Please make sure that the buttons have activated pause. (It is possible to disable)

    Assuming that they have activated pause, they should pause and wait for the user to click on them before you continue. If a break has been disabled, probably made in the box Inactive playhead of the button and it no longer works.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Help with active buttons

    I'm looking for a way toggle all buttons in a swf file. I found this search here, but I do not understand and am looking for some in many ways, as shown.

    http://www.Adobe.com/cfusion/webforums/Forum/MessageView.cfm?forumid=15 & catid = 288 & ThreadID = 1240137 & highlight_key = y & keyword1 = active

    I'm playing with having things to load in what I call 'windows' and when you close a window, basically he just collapses the .swf. The problem I have is that the cursor reacts to roll overs and I can still rollover buttons in the same swf if its collapsed. To see this prob go to:
    www.Custom-Differentials.com

    Open the Gallery, then drag the Gallery until the middle of the screen, close the Gallery, then move the mouse around the outside of the "title bar" and watch the change in mouse colors even if there is nothing there. I put a trace in working capital management, so I know the buttons that are the cause. I would like to just a disable a broad view, all of the buttons, then the window is closed.

    Thanks in advance for any help.

    Well, you really want to disable each button/movieclip in your swf file. But if you did you can use:

  • Activation button engaged without being invited

    The Activation lock on my iPad mini was involved even though I do not prompt to help hence is my camera. Somebody hacked my account?

    When connecting to iCloud on your iPad, find my iPad it is enabled by default.

  • FN-active button continuously for Satellite C670D-125 after Windows Update 10

    Hello everyone,

    After the update of my Satellite C670D-125 to 10 windows function (fn) key is active at all times. This means I have to press the fn key when I want to use the standard function key (for example, the numbers above the letters). Only numbers wouldn't be a big problem, but also for the space key and the esc key, I have to press fn in order to use the standard function (space and escape to ).

    This behavior occurs in bios setup also now! So it seems to me that the update enabled an integrated keyboard.

    In other discussions and forums of the facility (re-) "VAT package" is recommended, but there is no option for my notebook on the fn feature and the of - and reinstalling had no effect. Another option was to change the setting in the bios Setup, but there is no menu entry in my bios, which deals with this issue... It seems that I have a simplified bios (I guess because there is not a lot of options for the implementation of the material) and I even installed the last update of the bios on the side support toshiba.

    Everyone has the same problem or an idea how can I solve the problem?

    Thank you very much
    Taomir

    In other discussions and forums of the facility (re-) "VAT package" is recommended, but there is no option for my notebook on the fn feature and the of - and reinstalling had no effect.

    The relocation of the PPV would be useful, but only in case your would still use Windows 7

    Given that Windows 8 the VAP has been replaced by the driver for the Toshiba system, but the fact is that your C660 is not listed as 10 Windows supported model and that is why there is Win 10 drivers are not available for this unit.

    Anyway, you can try to install the system Win 10 driver released for other series laptop... I don't know if it will work, but I guess it's the last resort for repair running Win 10...

    by the way: here is the link for Win 10 drivers:
    http://win10upgrade.Toshiba.com/swup...SPX?region=TEG

  • I use a laptop but the finger activation button is worn out or. I bought a mouse but can't seem to make it work. Is it necessary to 'activation' in a special way? Thank you.

    I use a Vista laptop but the keyboard button is worn out and I bought a mouse to work with until I can afford another

    laptop. However, the mouse don't seem to work. What do I need to enable something somewhere please? Thank you very much

    Hello

    -What is the State of the mouse in Device Manager?

    Check if the mouse is compatible with Windows Vista Compatibility Web site.

    I suggest that you follow these steps and check if the problem persists.

    Step 1:

    Update mouse drivers.

    I suggest that you visit the manufacturer's website, download and install the latest drivers for your mouse.

    Step 2:

    Also click "Run now" to this article and check if this is useful.

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

  • customization of the active buttons on the MS Wireless Comfort Keyboard 5000

    I implemented the 3 hot button a 2 page document appears. I want that document to always open in a full screen view 2 pages. Any ideas how I can do? If the answer is a Macro, you can guide me?

    Hello

    You can contact the Microsoft Hardware Support for assistance.

    Here is the link: http://www.microsoft.com/hardware/en-us/support

  • Button design and Split non-active buttons - DW 2015

    I upgraded to DW 2015 Build 7698

    Also the fact that .asp and .aspx are not taken in charge as a new file, my question is now that I can't see what the page looks like. The Design button is grayed out, as is the split button.

    I opened a classic ASP page and see the code enough end. It is a page that I used with happiness in older versions on DW including CS6.

    Can someone please help with this and let me know what I need to do in order to have a side by side (split) of the code view and the actual page?

    Thank you

    Solved. Sorry for the confusion.

    In summary,.

    (a) build 7714 solves the problem as initially indicated.

    (b) I created the problem again myself when for some reason I'm really not sure, I need to have recently entered in Edit > preferences > File Types / Edirors and added to the list of "open in code view".asp

    I think .asp should be there with .js and .css however it is clear that have .asp it screws to the top of the editor. I removed this entry and it's fine now.

    see you soon

  • Manufacturing of active buttons after the event

    Hello

    I love Flash Catalyst. I think that Adobe has a real winner in this product!

    I'm learning the catalyst and creates a simple application of type CBT. He has a home page and 4 other pages, which have all of the links button on the main home page. I want a video to play on the home page, and then once the video is finished, I want the button to page 2 to be sensitized, while buttons for pages 3 and 4 are insensitive. In other words, I don't want users to be able to jump to the last page without displaying any content on the previous pages.

    Is this possible in catalyst?

    1 million thanks!

    Hello

    Yes. Pretty easy.  Take a look at this fast wired.

    You control your welcome video (.flv) starting with an interaction "On start Application"

    Progression to the first State after the welcome video is controlled using the interaction 'on video play Complete '.

    The availability of the buttons to navigate through the different States are controlled by checking or unchecking the "Enabled" property on a button in each State.

    Hope this helps,

    Tanya

  • Active button = "false" &amp; moving Objects.

    Hi all

    I want a button, that is,

    Enabled = "false".

    to change only to

    enabled = "true".

    If I move an object in a special location on the screen.

    For simplicity in the example I have sayed special location must be the location of the button.

    When I move my object (a button without a label) to the 'Test1' button and then the button should be enabled = "true".

    However, in my broken programming code, whenever I move the unlabeld button, the "Test1" button becomes available = 'true '.

    I have no idea why?

    It would be great if someone could help me

    Thank you

    Markus

    Here's the Code.

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = minHeight = "955" "600" creationComplete = "application1_creationCompleteHandler (event)" >
    < fx:Declarations >
    <!-Platzieren Sie Elemente (z. B. Dienste, Wertobjekte) nichtvisuelle-> yesterday
    < / fx:Declarations >

    < fx:Script >
    <! [CDATA]

    Import mx.events.FlexEvent;

    protected function application1_creationCompleteHandler(event:FlexEvent):void
    {
    Area1.addEventListener (KeyboardEvent.KEY_DOWN, moveTextArea);

    var: timer = new Timer (50);
    Timer.Delay = 100;
    timer.repeatCount = 0;
    timer.addEventListener (TimerEvent.TIMER, timeListener);

    Timer.Start ();

    }

    public void timeListener(e:TimerEvent):void
    {

    }

    public void dummy()
    {
    If ((area1.x == test1.x) & & (area1.y == test1.y))


    {
    test1. Enabled = "true";
    }
    on the other
    {
    test1. Enabled = "false";
    }
    }

    public void moveTextArea(e:KeyboardEvent):void
    {
    if(e.keycode == Keyboard.Right)
    {
    Area1.x += 20;
    }

    if(e.keycode == Keyboard.Left)
    {
    Area1.x-= 20;
    }

    if(e.keycode == Keyboard.up)
    {
    Area1.y-= 20;
    }

    if(e.keycode == Keyboard.Down)
    {
    Area1.y += 20;
    }

    Dummy();

    }

    []] >
    < / fx:Script >

    < s:Button = "20" x = "20" label = "Test1" id = "test1" enabled = "false" / >

    < s:Button = "60" x y = '60' id = 'Grenier1' / >

    < / s:Application >

    public void dummy()
    {
    If ((area1.x == test1.x) & (area1.y == test1.y))
    {
    test1.enabled = true;
    }
    on the other
    {
    test1. Enabled = false;
    }
    }

Maybe you are looking for

  • Imported CD, music not sync iPad Mini

    I got the music from a CD in my iTunes library. They appear on my phone just fine, but when I try to sync my iPad Mini, all music from the physical CD that I imported from is not displayed. I had this problem before, and I couldn't fix re-importing e

  • Satellite A200 - white screen with 3 beeps

    Hello My Toshiba Satellite A200 was recently gives me a white screen with 3 beeps at every start. I took it to my friend for repair and they told me that I had to take the battery out and put it so that it starts. It worked for him, but not me. I cal

  • Unable to connect to a wireless router (even with a strong signal)

    OK so I have WRT160N (I think version 3) wireless router and my problem is that I can't connect wireless even if the signal is strong... I bought last month and it works very well at the time, I can connect my laptop and iPhone, PS3, but now I can't

  • How to sort files in most recent records; last updated sorts by month (1, 2, etc.)

    Recent update has changed the sorting of files in my files - now sorts by # first date, i.e. the month, then all the files of January appear first (or December if I reverse).  They were all sorted by "most recent" as is my Outlook Inbox.  Can't find

  • Found, preventing the connection on the coming Pro 8

    While trying to calibrate the screen of my coming 8 Pro, I basically incoherent and had to leave the process to halfway. It was not exactly user-friendly on the tablet. In any case, after the reboot, I can not connect to, as it is obviously not calib