Is it possible to capture the state of a button outside of capturing events?

I was wondering if there was a way in Flex to determine the state of a button (i.e. up, down, over, selected, etc..) besides capturing each individual events.  What I am asking is essentially to be able to access the "phase" private member variable of the Button class.  Please advise.

Actually, nevermind, I was mistaken that the Button.phase parameter was private, it is actually of mx_internal type.  Thanks.

Similar Messages

  • Is it possible to move the "Add.." button at contacts on top of the custom label list? I add a lot of custom lables and tired of scrolling down every time.

    Is it possible to move the "Add.." button at contacts on top of the custom label list? I add a lot of custom lables and tired of scrolling down every time.

    No way to move any buttons in iOS devices.

  • Is it possible to set the stateof a command button

    I want to call a function when the user presses a command button (left click), then wait until he releases the mouse button, then call a second function.
    Here is the code for EVENT_LEFT_CLICK:
    CallFunction_1(...)
    GetRelativeMouseState(panel, control, 0, 0, &mouseLButton, 0, 0);
    while(mouseLButton)
    ProcessSystemEvents();
    ProcessDrawEvents ();
    GetRelativeMouseState(panel, control, 0, 0, &mouseLButton, 0, 0);
    CallFunction_2(...)
    My Problem is, that the button does not chage its state to "pressed", so it appears to the user that he has not clicked on it.
    Is there any possibility to set the command button th the pressed state?

    The reason for this is that the LEFT_CLICK event has not been processed yet. We allow you to "swallow" any event to basically eliminate the built in effect of that event. In your case you want the normal effect of the LEFT_CLICK event to occur (button appears pressed on the panel), but you also want to launch a loop to check when the mouse has been released. This is easily done through posting a deferred call. A deferred call allows the current event to be completed and then calls the deferred callback after that. So your code would be changed to:
    In LEFT_CLICK,
    CallFunction_1(...)
    PostDeferredCall (funcName, (void*)control);
    Then write a function "funcName" with prototype:
    void CVICALLBACK funcName (void *callbackData);
    and code:
    void CVICALLBACK fu
    ncName (void *callbackData)
    int control = (int)callbackData;
    int mouseLButton = 0;
    GetRelativeMouseState (panel, control, 0, 0,
    &mouseLButton, 0, 0);
    while(mouseLButton)
    ProcessSystemEvents();
    ProcessDrawEvents ();
    GetRelativeMouseState (panel, control, 0, 0,
    &mouseLButton, 0, 0);
    CallFunction_2(...)
    This should solve your problem.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Is it possible to run the vi with a button on the front panel?

    Hi to all,
    I was wondering if it is possible to run a vi with a button placed on the front panel.
    Regards,
    Palazzo

    Palazzo wrote:
    Run vi when opened is not useful in my application, I know that option, thanks.
    Can you elaborate? Programmed as a proper state machine, have the program run in an idle state that only waits for for a button press.
    There is no need ever to go to edit mode during execution of a finished program.
    while I have written a demo Xcontrol to show that everything is possible, I strongly recommend against it. It makes no sense.
    See here for the example and instructions. But please read the entire thread, though.
    LabVIEW Champion . Do more with less code and in less time .

  • Is it possible to get the decline and answer buttons from sleep mode?

    The way my iphone operates now, when a call comes in and the phone is in sleep/locked mode, the only option is to slide the lock to answer the call. When a call comes in and the phone is not locked, it gives the option to decline the call with a red button and answer the call with a green button. My question is this: Is it possible to set the phone so it gives the decline/answer option coming straight out of sleep/locked mode?

    Nope. But single clicking the Sleep/Wake button will silence the ring, and double-clicking the Sleep/Wake button will send the call to voicemail, having the same effect as "Decline."

  • Is it possible to get the iPhone 5s home button on the iPod touch 5g

    So I was looking at the iPhone 5s (which I don't plan to buy) and I notices that the home button was different from the  one on the ipod touch5g and pre existing models. Is there a way that you can get the 5s home button on an iPod touch 5g because it looks really nice and kinda chrome.

    no

  • Possible to override the remotes "change audio" button?

    I'm creating a DVD that has multiple audio tracks for a single video track. I'm also programming in subtitles for the same track(French). The two audio tracks have different versions of dialogue. So, that means that I need two subtitle tracks – one for each audio. I understand how I can use stories and scripts to associate the proper subtitle track with the corresponding audio track,
    BUT
    my problem is this: it is necessary to allow the user to switch back and forth between the audio tracks whenever they want. So, if a French user is watching with subtitles on, and switches the audio using their remote mid-stream, then I need a way to change the subtitles to match the now-active audio.
    The best way I can think of to do this would be to hi-jack the functionality of the "change audio" button on the remote, and make it run a script that changes audio, then checks subtitle settings and changes them as well, if appropriate.
    Can this be done in DVDSP? I've found promising entries in the advanced connections display, but they don't respond to my initial attempts.
    Thanks for any help.
    Patrick

    Hey. Thanks. I hit a ton of pages searching, but missed that thread post. It's exactly the same problem. I suppose my only hope is, fingers-crossed, more DVD players support the targeted scripting of remote buttons these days???
    Well. I noticed there were several other programs mentioned in that thread, which I'm going to look up now, but it seems that this is a "supported by DVD players" problem rather than a "my program can't do that" problem.
    Something occurs to me. Is this a problem that could be circumvented by going to Blu-ray? DVD SP has a lot of buzz about supporting Blu-ray projects, would Blu-ray players be more likely to support this remote-based scripting???
    P
    Message was edited by: poltrain

  • How do i customize the states in a vertical menu bar?

    i see that it is possible to change the states for a horizontal venu bar, but i can't get it to work for the vertical one.  please tell me we can edit the states in a vertical menu bar.
    valerie

    Yes, you've hit a bug in Muse, that will be fixed in the next release.
    The bug happens when you have a gradient fill for the default state, but no gradient fill for your other state. The vertical menu has this look by default. You can work around it by removing the gradient in the default state, or adding a gradient for the other states.

  • Is it possible to control the parallel port with Lookout 5.0

    I want a simple demo setup on a PC, so I can control the 8 data bits of the parallel port. Example, to use START p/b that would toggle bit 0 and data returned on bit 1.

    It is possible to send bytes to the parallel port using the ASCII object within Lookout. However, it is presently not possible to control the state of the individual bits on the parallel port with Lookout.
    If you need to control the individual bits on a parallel port, consider using LabVIEW. It is much more powerful when programming serial and parallel ports.

  • How can I change the state in the shipment info in the account setting?

    How can I change the state in the shipment info in the account setting?
    I was trying to buy an Apple TV from the store but, I live in Italy and at the moment (for long time) I'm in Deutschland.
    From the shipment information i didn't find the possibility to change the state. From default is ITALY but I need to receive in Deutschland.
    Did somebody know how to???
    Thanks in advance!!!

    Hi 7oaksGaz,
    1) Due to tax reasons, it's not possible to change the country associated with an existing Adobe ID.
    Follow the steps mentioned in the below link as a workaround to create an Adobe ID with the email address you currently use for the existing Adobe ID.
    http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html
    2) You can change the language of the application from AAM preferences
    Please find the link below for the article with the steps
    http://helpx.adobe.com/creative-cloud/kb/creative-cloud-trial-mode.html
    Thanks!
    Eshant

  • Is it possible to customize the actions of the new Forget Button.

    As I use a number of pinned tabs I don't want the Forget Button to close tabs and open clean window because I have to reset the pinned tabs every time I use the button
    I just want to delete cookies and recent history (to clear the cache when I am updating my blogs). I know I can do this in the History Menu under Clear Recent History but it would be neat if I could do it from this one button
    Is it possible to set the actions for this button or is fixed?

    Hi,
    Could you check below is the one are you looking at
    APO customisation > supply chain planning > SNP >
    basic settings > maintain global snp settings > Orders
    per bucket
    Regards
    R. Senthil Mareeswaran.

  • Capture event c#

    Hi,
    Is it possible to capture event and trigger action? On closing document, message box say "Bye".
    Can I do it using SDK with c# if yes then please guide me how. If NO then  let me know how it can be possible.
    Thanks

    Please tell me more which C++ based plugin I can use?
    I can embed javascript with pdf using c#(like app.alert). But I cannot find example of capturing event. Can you please provide me example?
    Thanks

  • Possible to capture an image if the button on the cam is clicked?

    Hi!
    Im testing JMF and wonder if anybody knows if it is possible to capture click events from the web camera? The web camera itself has a button made to capture images and I'd like this feature in my application. All I wonder is if it's possible to capture or in any other way access information when ever this button is clicked.
    Thx in advance!
    /Anders

    You could use linux easily.
    Check dmesg, after you push the button.
    Allyou have to do is capture the event.
    In windows, you would probably have to do some jni.

  • Is it possible to generate receivable statement for a party in the hierarch

    Our TCA data model is setup like this:
    For a party "A" we have two created two subsidary party "A1" and "A2". Both A1 and A2 are related to A with a relationship in TCA. Each A1 and A2 are linked to seperate accounts and both A1 and A2 have seperate but same bill-to and ship-to address. So A1 and A2 are not really two seperate logical entity or operating unit of party A.
    My question is: When we generate the statement is it possible it for party A so that it rollsup both A1 and A2?
    Any help is appreciated.
    Thanks,
    Achal

    Hi Neha,
    These forums have information on both, seq.no and and timestamp
    [Timestamp|Dynamic Filename with TimeStamp;
    [Seq.no|Complex Scenario on file sequencing;
    Hope it helps..
    Regards,
    Lavita

  • Query with JPA not working. Is possible to see the executed SQL statements?

    Hi all,
    I have a question regarding namedqueries. I am having an error for which I am not being able to find any solution. ORM mappings seem to be ok, and the EntityManager validates correctly. However I am getting an error when trying to retrieve some results. My question is if it is possible to retrieve the set of SQL statements queried on the server, to see if it is due to a different issue than JPA settings.
    Thanks in advance,
    Chal-lo.

    You can enable sql logging in a provider specific way (e.g for hibernate you add hibernate.show_sql=true in the hibernate.properties file).
    You could get more help if you described the problem you are getting.

Maybe you are looking for