Event happening when a field loses focus...

If I have a field called , say, "text_txt" - is there a way
to make it so that something happens (like a goto action or
whatever) as soon as the focus goes OFF of that text field?...
Thanks!...

DIY_Lobotomy,
> If I have a field called , say, "text_txt" - is there a
way
> to make it so that something happens (like a goto
> action or whatever) as soon as the focus goes OFF of
> that text field?...
This question is likely to get more answers in the
ActionScript forum,
but since it's here, I'll answer it here.
For the vast majority of ActionScript questions, here's the
scoop: just
about everything in ActionScript can be referred to as an
object. Objects
are defined by their namesake classes (movie clips by the
MovieClip class,
dynamic and input text fields by the TextField class, sounds
by the Sound
class, and so on). Classes are your Owner's Manual for the
object in
question. Things the an object can do are called methods;
characteristics
an object has are called properties; things an object can
react to are
called events. At least one of these three categories appears
in each class
entry of the ActionScript 2.0 Language Reference.
In your case, you're looking for the Events summary of the
"TextField
class" entry, because you want to know what things a text
field can react to
(such as focus leaving the object).
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • I need to execute a formatted search when the field loses focus

    Is this even possible?  I do NOT want to force the users to press shift-f2 every time to validate/search on every field on the form.  This is absurd.  How can I trigger a formatted search on a field when it loses focus?
    I tried activating menu item #7425, but it's not executing the one on the field that loses focus, but a different one.  I guess it only works on the active field??
    I tried catching an earlier event, but after it executes the formatted search on the right field, it places the value on whatever field just gained focus instead of the one it was assigned to.
    Any ideas here?  We cannot force our users to press shift-f2 on all these fields!
    The only other idea I have is to not use a formatted search but instead try to create some sort of popup form with a grid and my own query.  There has to be an easier way, right?

    Bryan:
    I use the following on a KeyDown event for when the User tabs out of a field after entering data if the data they entered is not valid.  Perhaps you could try this in the LostFocus event:
    g_B1Connection.Application.SendKeys("+")
    Also, I have used this in the KeyDown event:
    DisplayLookup("txtWO0")
    Private Sub DisplayLookup(ByVal objText As String)
            Try
                WOItem = WOForm.Items.Item(objText)
                WOItem.Click(SAPbouiCOM.BoCellClickType.ct_Regular)
                g_B1Connection.Application.SendKeys("+")
            Catch ex As Exception
                g_B1Connection.Application.MessageBox(ex.Message, "Ok", 1)
            End Try
        End Sub
    Thanks,
    EJD

  • Caption field loses focus from one photo to next...

    It's that time of year again! I have one race that requires a bib number search, which in turn requires me to enter the bib numbers in the caption field. I used PhotoMechanic last year but was told that I could just as easily do it in Lightroom by entering the number in the caption field and then using command-right arrow to commit the data and move to the next photo while keeping focus on the caption field.
    This is happening exactly *some* of the time. Most often, though, when I command-right arrow I'm taken to the next photo but LR sort of "thinks" a little bit and in the process the caption field loses focus. Over the course of thousands of photos, the need to continually grab the mouse and click the focus back on the caption field is cumulatively very, very cumbersome.
    Anyone know of a better way to do this?
    Thanks,
    Dane

    Just be aware of the limitations you get for $150...
    PM has no editing capability other than cropping an image and even that is pretty limited. So if you aren't going to do a lot of editing then PM might well be the way to go since it might handle metadata editing "better" than LR for the specific task you are doing. Don't forget to add in the cost of the external editor that PM requires.
    I'm not looking at replacing LR, just frustrated that I feel the need to supplement it for such a simple task.
    BTW, I don't see the behavior you are describing when applying captions to photos sequentially. Sometimes you have to hit ctrl-right a couple of times because of the way LR handles autofill, but you can turn off autofill in catalog preferences.
    Yes, when autofill is on I sometimes need to hit command-right arrow a couple of times...once to basically select the autofill option I've been presented, and again to commit the data and move to the next photo. That's not what I'm complaining about. My gripe is that I almost always end up at the next photo with the caption field not having focus as it should.
    What were the factors that made you try LR?
    I've used LR since the first beta version and have no intention of giving it up. I get frustrated with it now and then, and this is one of those times. Adobe tells me command-right arrow should do what I want, but it doesn't. Why not? So I end up having to use a different app just to add captions.

  • Metadata fields lose focus mid edit

    This one could get me ranting, I am looking at about 500 images all needing iptc fields created individually, that is a bit of keyboard work.
    So I select the field and begin typing, look down to my notebook to find the edit has gone, the field reverted to it's previous state. This happens too frequently, on occasion it has dropped focus and then changed module to develop!
    There are other threads that touch on this subject, it is one of those intermittent issues the developers get stuck understanding. Please invest the time and find a solution that is both simple and safe.
    Cheers
    Victor

    I'm glad other folks are seeing this problem and it isn't just me.
    I'll try the suggestion from above about pausing between fields and see if that helps.
    I'll watch and try to see if it only happens after I had just edited one field and am working on the next. Also, I believe it has happened when I was working on a single image rather than a group.
    The problem is not "just" losing what has been typed. The problem is also finding that you are sending keyboard commands to Lightroom itself. e.g. if your next character to type is 'n', you switch from grid to survey view. I once did a 'd' followed by a 'v', and my images were changed to greyscale. That scares me a little. I wonder if there is a combination I could be typing that would actually delete photos that haven't been backed up yet?
    My system is a MAC OS X 10.4.8 with 768 MB of RAM. I wonder if the problem could have anything to do with being at the edge of the "System Requirements"?
    Robert

  • Playback pauses when the window loses focus.  Can I fix that?

    When going through footage, I might be multitasking -- talking on chat, looking at to do lists, etc.  Whenever I tab away to some other application, playback pauses in Adobe Premiere Elements 13.  This is really annoying -- any way to turn that off?

    JustinPierce
    Your type of situation has been written about before and remains the same up to and including the current version 13.
    What you describe is what it is. There is no way to change that behavior. The Premiere Elements playback in progress stops when you
    switch to another application. No user turn off switch to prevent this from happening.
    ATR

  • How to keep the highlight when the JTextComponent lose focus?

    I wanted to do some basic copy/cut/paste on the JTextPane from the Menu. But when I selected the menu, the highlight disappeared. How do keep the highlight?
    The only topic I found about this was here:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=214931
    but it appeared intimidating and not exactly what I needed.

    Most javax objects will accept things in <html> tags why don't you try setting them onto the JTextPane (never tried this btw but should be worth a try) using html and the transferring the same syntax to the output email

  • Can I keep the scrollbar visible in a text field once focus is lost?

    Hi there,
    I am pre-loading a text field with a large amount of text and making it read-only so that the user can scroll and read.  So essentially I'm not using it for text entry but simply as a scrollable text area as I couldn't find a simpler way to achieve this.
    Only problem is our client doesn't like the fact that the scrollbar doesn't appear until you click into the text field and disappears again when the field loses focus.  It is not immediately clear that there is a large amount of text and that the user needs to scroll to read it all.
    Is there a way of making the scrollbar visible at all times, or is there a better way of implementing a scrollable text area?
    Many thanks,
    Kieran

    Here are my answers..
    1) Is there any way I can programmatically force the scrollbar to be visible at all times?
    Srini: I do not think that is available.
    2) Do you know of any other way to implement a read-only scrollable text area?
    Srini: Make the TextField Type to Protected/ ReadOnly to hold the ReadOnly text and make it Allow Multiple Lines. (I think you did the same)..Usually if you have a long text inside a text field with scrollbar, if the user tries to print, it will only print what ever is visible. So it would be better to check the "Expand to Fit" for Height in the Layout tab and "Allow Page Breaks with in the Content" for TextField (if possible) or the Subform/ Table/ Row that holds the TextField.
    Thanks
    Srini

  • urgent when jinternalframe lose focus

    i want do something when the jinternalframe lose focus but the focuslistener of java only listener to keystroke focus.
    anyone know how can i listener to the jinternalframe losing focus?

    have u looked into InternalFrameListener? if not then it out in the JDK documentation.....
    asrar

  • Using web.show_document the first time makes new browser window lose focus

    Hi,
    In our application we use show_document(url, '_blank') to open our reports (as pdf) in a new window.
    Our environment is Application Server 10g Release 2 with Forms 10g Release 2 and jinitiator 1.3.1.22.
    The first time I call a report, the new browser window containing the pdf is shown but loses focus after about 1 second. The focus is then returned to the applet window. When calling a report again it always keeps the focus.
    After closing the applet window and restarting the application, the same thing happens: first report called loses focus, all others keep the focus.
    Does anyone have any idea why this is happening? We want the focus to stay on the new browser window every time...

    Hi Jeroen,
    I m also facing a problem something similar to yours. If you got any solution please let me know.
    Problem-
    Currently my application is running on Forms 9.0.4.2 and my form calls another third party which displays the image in image viewer in new browser. When user clicks on the button to display image, then I m using the following Code -
    -- Method: displayDocuments ([Ljava/lang/String;)Ljava/lang/String;
    FUNCTION displayDocuments(
    obj ORA_JAVA.JOBJECT,
    a0 ORA_JAVA.JARRAY) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(1);
    JNI.ADD_OBJECT_ARG(args, a0, '[Ljava/lang/String;');
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'com/hli/imaging/adapter/LK_FormsImagingAdapter', 'displayDocuments', '([Ljava/lang/String;)Ljava/lang/String;', args);
    END;
    Image is displaying fine but the focus is staying on the newly opened browser. I want it to get back the focus to the forms window.Is this possible ???
    Thanks in advance
    Sai                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Aperture loses focus, even in other programs

    I developed a new problem over the past week or so. I'll be typing along in any program when it suddenly loses focus. I can click to re-establish but, once it starts. it happens every 10-15 seconds. I think I've isolated the issue to Aperture. Once I quit Aperture, the problem seems to stop. When I'm using Aperture, it's begun acting strangely: multiple clicks required to select photos, shift-click to get a range doesn't always work, right-click menus pop up then disappear or don't contain all items expected (e.g., Export only shows "Project as new library" as a sub).
    I'm up to date on Yosemite (10.10.1) and Aperture (3.6 500021000000000.3 RAW 6.02/Build 768.6), and I'm struggling to key the start of this phenomenon to any particular update (assuming Aperture is winding down and Photos will come soon?) I haven't tried to reinstall Aperture, although I did have a repair situation a couple of weeks ago when I had a white screen of death in OS X.
    Has anyone experienced this? Any suggestions beyond repair/rebuild? I've been exporting originals for a while with the expectation of changes ahead and will continue with that as best I can...

    So, I had some time (and accumulated frustration) to check on this further, with no positive results.
    I thought I might need to repair or rebuild my Aperture database. I tried following the instructions in the Help file (Control-Command-Click on Aperture database in Finder) but that did not yield the dialog to repair/rebuild, just launched Aperture.
    I used Activity Monitor to try to see what was running, and I seem to get a process called "ReportCrash" that cycles into the CPU use column every time the focus changes. But, I haven't gotten the typical "Program has crashed. Do you want to send a report?" dialog. It happens every 3-10 seconds, and only happens when Aperture is open. I haven't tried reinstalling Aperture yet because I haven't had a chance to dig out installation disk stuff.
    I may try to cross-post this to a Yosemite forum to see if it's just coincidence that it happens when Aperture is running.
    Maybe it's just life telling me to ante up for LightRoom...

  • When does a selection in a text field in a Finder window lose focus?

    Hello,
    this problem has emerged on account of an Applescript file that needs to access a text selection (portion of a filename highlighted) in an open Finder window.
    The bare minimum code to demonstrate the problem is this:
    *tell application "System Events"*
    * *tell process "Finder"*
    * *set selText to value of attribute "AXSelectedText" of text field 1*
    * *end tell*
    *end tell*
    other variants also exist, using "keystroke" but that does not work either. I am not asking help with Applescript here, it is here only to give a sense of the problem.
    My conclusion thus far is that the selection lose focus before the script process can access it. In the best case I get the full filename by using "attribute" and copy of the alias onto the clipboard by using "keystroke".
    So my problem is this:
    It seems that the focus stays alive when one clicks on a menubar item, any click on any other item on the desktop, including windows of irrelevant applications, changes the focus from the selection within the text field corresponding to a filename, to the filename itself.
    And my question is this:
    Is there a changeable setting within the OS that has to do with how long the focus stays alive on a selection within a text field corresponding to a filename? If yes, how do I change it?
    Thanks

    baltwo wrote:
    Thanks for clarifying. Never heard it called a text field, just a label. So, exactly what are you trying to accomplish? Is it that you want AS to select the file, highlight its label so you can edit/change it with some other text? If so, have you checked out the Finder scripts installed on the machine, especially the Finder script *Add to Finder Names*?
    UI Element Inspector calls the activated/editable filename a text field.
    Actually I want to modify one of the stock Finder scripts. I want to be able to select part of the file name in the active text field of the Finder window, then activate the script, *have the script pick up the selection* as a text string then use it internally.
    The bolded step is the one in question.
    Every attempt fails on the fact that the focus is lost from the "text field" and it reverts to the label for the filename, if I may use this distinction, (or to "FinderItem" in the parlance of UIEI) as soon as another process begins, it seems. So when the script becomes active, but before any of the commands is executed, the selection disappears.
    My guess is that it is not some absolute necessity but a setting that perhaps can be changed somehow.

  • Lose focus when tabbing out of autoSubmit text box in IE

    Hey,
    Using JDEV 11.1.1.4 I have a problem with tabbing from one textbox to another textbox in IE. Both text boxes have autoSubmit=true and to reproduce the problem it's like so:
    I type a value or edit the existing one into text box 1 and press Tab. The submit is done and focus is given to the second text box but only momentarily before it loses focus. The focus then is given to the window it would appear, because if I press Tab again it begins from the top of the page. This is only happening in IE (v8 is all I have tried so far). This ONLY happens when the value of the second box is null. If it has a value all works fine.
    I tried implementing various solutions including using the ExtendedRenderKitService to write javascript to the client from the bean to set focus on the text box after the partial render. The javascript is called and focus is set but then something else calls blur on it afterwards. I have verified this by putting a blur event listener on it and it gets called after I set focus on it from my own javascript!
    Has anyone experienced something similar? Just to note: It only happens in IE, and it only happens when the second text box is empty.
    Thanks,
    Ross

    Hey John,
    In reply to your message
    1). Tried on 11.1.1.6 to see if the issue is still there?Not really an option to try and upgrade and test if it works there.
    2). Made a simple test case removing as many variables as possible (e.g. do a simple screen with no DB interaction and only two fields) to see if it reproduces or it's something with your screen?Tried this an it works fine which means it is something unique to my code.
    3). Filed an SR at https://support.oracle.com with your test case
    As above it looks like it's not a problem with ADF so I will keep looking at it.

  • Word 2011 for Mac Book pro - I have found that my cursor disappears sometimes when I click on a toolbar function. I found out it is a bug, that the Mac loses 'focus'. I can correct it temporarily by clicking on Format - Font - Cancel. Any info?

    I have Word 2011 on a Mac Book Pro and have had problems with a dissapearing cursor - it makes editing tricky
    After googling it I found out that there is a bug where the Mac loses focus if you click away from the document - it also does this with italics according to other users.
    I had a play with it and found out that when I click on the toolbar in a document where this happens, the cursor disappears, e.g. changing font colour etc. And then, when I click on Format - Font - Cancel it returns
    I'd be interested if anyone else has a comment to add, please do
    thanks

    BTW (speaking as a Dad of 3 daughters in Grad school) if you don't already have and use a DropBox account, or some other similar online "cloud" based backup of your school documents, you should start doing so immediately. By keeping all of your important documents in the Dropbox folder on your computer, you have instant access to them from any other computer (or iPad), should you be w/o your computer while in for repairs (or if, God forbid, it is stolen). It's free for 2 GB of online storage, which is more than enough for a few years worth of Word documents, etc. (If you get other people to sign up via your email "invitation", then Dropbox gives you even more free storage space.) Every time you close a document, it is updated on the Dropbox servers (encrypted), if it is in the Dropbox folder (assuming you give it a few seconds to update before turning off your computer). Do a google search of "Cloud based storage comparisons" to compare the amount of free space each of the competing services give you.

  • Is there a way to keep the ADL open when testing CS5.5 Air apps after it loses focus?

    When I test Air applications (specifically targeting mobile) it seems that when the ADL (Air Debug Launcher) launches, it will automatically terminate the session when I click on anything else other than the ADL window.  I have been trying to use 3rd party application debuggers that provide improved memory diagnostics, but these debuggers only seem to be able to work when the application is launched through the Flash Player and not through the ADL.  Unfortunately, the Air specific code will only work in the ADL.  Is there some way to keep the ADL running even when it loses focus?  I have tried using the ADL from the Flash CS5.5 IDE as well as from the command line and both will terminate upon losing focus.

    - Transfer the app to the computer by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Connect the iPod to the computer and make a backup by right-clicking on the iPod under Devices in iTunes and selecting Back Up.
    - Restore the iPod from that backup. That should also update the iPod.

  • I recently asked a question regarding my ipad calendar not syncing.  Now I noticed I am unable to even add an event ( the   sign in the upper right hand corner) is greyed out, nothing happens when you touch it.  My notes aren't syncing either

    Calendar not syncing, unable to add events as the + sign at the top right is greyed out and nothing happens when you touch it.  Then realized that my Notes aren't syncing either nor are my reminders.  What the heck is going on.  This ipad mini is just barely 6 months old.  Software is up to date.  Someone please help me.
    I have always wanted an ipad now beginning to wonder why...

    Turns out once I shut down the iPad and turned it back on my issues were resolved.
    Thank you

Maybe you are looking for

  • Is there any procedure to get the memory warning levels using objective C

    I want know the different levels of memory warnings programmatically using objective C.Is there any procedure to get that.

  • Problem calling servlet from doget method of another servlet

    hi, Iam trying to post an html form written in the doGet() method of a servlet to pass this information to another servlet's doPost() method. Iam giving the following URL: "<FORM ACTION=http://localhost:8080/examples/servlet/UpdateProcessServlet" + "

  • Officejet 6000 printhead

    We recently had to change the color cartridges on our HP Officejet 6000, and afterwards, we started getting the error code on the control panel that is for "The printhead is incompatible" - power button is blinking and all the cartridge buttons are b

  • Centering HTML in mobile phone environment

    I am working on an Android application that will draw HTML from the CF server and display it within the app. The issue I have is that under some occassions the HTML we serve to the app will not fill the whole screen of the phone, other times it will

  • Query Designer Zero Supression in formula

    Hi all, I have already supressed all ZEROS in the Query. However I am calculating an amount using an exchange rate and where ever there is no exchange rate i am getting ZEROS. How can I supress these zeros at the formula level? Cheers~