Validators don't reset the focus "halo" color

If I use a TextInput's "change" event (rather than it's
"valueCommit" event) to trigger the Validator, the thin red line
around the TextInput (and the control's errorString property) is
updated correctly by the Validator after each key depression but
the control's "focus" halo isn't updated. The "focus halo" appears
to be evaluated only when the UIComponent receives focus. As a
consequence in the example below I can be sometimes left with red
halo around a valid TextInput and a blue halo around an invalid
control. Is there any way to get the FocusManager to reevaluate the
halo color each time the Validator runs?
<mx:Application >
<mx:NumberValidator id="numberValidator" minValue="2"
maxValue="10"
source="{this.textInput}" property="text"
triggerEvent="change" />
<mx:TextInput id="textInput" />
</mx:Application>

I had once a similar problem and i solved it like this:
if (numberValidator.source.errorString != "") {
numberValidator.source.errorString = null;
You could try this code inside your TextInput's change
event

Similar Messages

  • My iWeb links don't reflect the correct 'rollover' color once published.

    On one of my sites (I have several 'practice' ones that I use before publishing the real one), the hyperlinks don't show the formatted 'rollover' color or underline as I set them in the Inspector. The setting is exactly the same as my other pages, but on this site the rollover works fine in the editing phase, but upon publishing the pages, the links work, but the color doesn't change nor does the underline appear. Any ideas?

    Recheck the formatting by selecting only a part of the hyperlink instead of the whole word. I had that problem once and it took me a while to figure out that my formating while applied to the whole link I had somehow not selected the whole text. I know this does not seem to make sense but try to select it differently and look at your formating window to see if it makes a difference.
    Mireille

  • Arrow keys don't change the focus in the delete window

    When I delete an image a window open the three option; delete, reject and cancel; with reject being the focus.  In oder to select another option I have to reach for the mouse; because the arrow keys do nothing, and there is no D, R or C shortcut.  Is there something wrong with my setup; like an option I've failed to set. Hard to believe the user must always reach for the mouse when deleting images.

    I'm not sure why they don't work on mine.  There is an program on my machine who's shortcuts have to be disabled before I use CS5, but I don't know any others that remap my arrow keys.  Of course it's entirely possible that there is one, but I have no idea how I'd ID it; if it exists.
    I dl'd my copy of CS5 from Adobe then bought a student copy at the bookstore, then used the key from that to activate the dl'd copy.  I can't think of any reason that should create problems.  I suppose I could re-install it from the disk; but I'd rather not

  • Move datasheet scrollbar with vba in access because requery resets the focus to first top-left cell

    Hi,
    I have a Form in Access 2010 which is split into three sections: form header, detail, form footer (empty) below each other. Detail contains a datasheet (looks like an excel table).
    Every time I do a requery with vba (I requery the table if something is changed in a certain column), the first cell (on top left) gets the cursor focus (selection). Now when I have enough rows in the datasheet (or resize the window), scrollbars appear.
    If I'm changing a value near the bottom and my vba script does a requery, I have to scroll back down to the selected cell, which is very annoying and impossible to work with regularily.
    I think this is a known problem. So far I have a workaround that stores the SelTop and SelLeft and restores these values after the requery. This works fine but it still moves the view around because the selected cell is now on the lowest visible row.
    A better approach would be to save the scrollbars' offsets and restore them after requery. I stumbled upon this project: http://www.lebans.com/setgetsb.htm which seems to get that done by calling the win32api functions to move the scrollbars of the access
    window.
    Unsurprisingly, Access 2010 doesn't support accessing its scrollbars via win32api anymore. Is there another way to do this with vba? Via .net, ole automation or something else?
    Note that I do NOT want to access form scrollbars or ActiveX/Forms 2.0 scrollbars, but the built-in auto scrollbars of a datasheet in "Form View" of a form that is split in 3 sections. I don't even know how to enable/disable these built-in scrollbars,
    they automatically appear if the window is small enough or enough columns are added.
    Thank you very much,
    Simon

    I just looked at the sample code you referenced and found that the APIs are working just fine, but the class name for the scroll bars changed between Access 2003 and 2007 which is why the sample code couldn't find them.
    If you change the change the following line in the "fIsScrollBar" function in the sample, you will find it runs in Access 2007, Access 2010 and Access 2013 as it did in Access 2003.
    In 2003 use:
    If fGetClassName(hWnd_VSB) = "scrollBar" Then
    In 2007, 2010 and 2013
    If fGetClassName(hWnd_VSB) = "NUIScrollbar" Then
    Yes, this was the problem!
    I couldn't figure out first because the subforms lead to a tree structure which contains several scrollbars.
    If someone else runs into this problem, I wrote this function to display the tree structure:
    Private Const GW_HWNDNEXT = 2 'nextSibling
    Private Const GW_CHILD = 5 'firstChild
    Private Const GW_HWNDFIRST = 0 'firstSibling
    Private Declare Function getWin _
    Lib "user32" _
    Alias "GetWindow" _
    (ByVal hwnd As Long, ByVal which As Long) _
    As Long
    '********* Code Start *********
    ' This code was originally written by Dev Ashish.
    ' It is not to be altered or distributed,
    ' except as part of an application.
    ' You are free to use it in any application,
    ' provided the copyright notice is left unchanged.
    ' Code Courtesy of
    ' Dev Ashish
    ' (altered, original code at http://access.mvps.org/access/ )
    Private Declare Function apiGetClassName Lib "user32" Alias _
    "GetClassNameA" (ByVal hwnd As Long, _
    ByVal lpClassname As String, _
    ByVal nMaxCount As Long) As Long
    Private Const mconMAXLEN = 255
    Private Function fGetClassName(hwnd As Long) As String
    Dim strBuffer As String
    Dim count As Long
    strBuffer = String$(mconMAXLEN - 1, 0)
    count = apiGetClassName(hwnd, strBuffer, mconMAXLEN)
    If count > 0 Then fGetClassName = left$(strBuffer, count)
    End Function
    '********* Code End *********
    Private Function sGetHwndClassTree(root As Long, indent As Integer)
    Dim indentstr As String
    Dim outstr As String
    Dim wnd As Long
    Dim child As Long
    indentstr = ""
    outstr = ""
    wnd = root
    child = 0
    For i = 1 To indent
    indentstr = indentstr & " "
    Next i
    Do While wnd <> 0
    outstr = outstr & indentstr & fGetClassName(wnd) & Chr(13)
    child = getWin(wnd, GW_CHILD)
    If child <> 0 Then
    outstr = outstr & sGetHwndClassTree(child, indent + 4)
    End If
    wnd = getWin(wnd, GW_HWNDNEXT)
    Loop
    sGetHwndClassTree = outstr
    End Function
    For my case, the output is
    OForm
    OSUIBlank
    OSUIBlank
    NUIScrollbar
    NetUIHWND
    OSUIBlank
    NUIScrollbar
    NetUIHWND
    OFormSub
    OFormSub
    OFEDT
    OFormSub
    OForm
    OSUIBlank
    OSUIBlank
    NUIScrollbar
    NetUIHWND
    OSUI
    OSUIBlank
    NUIScrollbar
    NetUIHWND
    So I actually have three scrollbars to watch.
    Anyway, thank you very much!

  • My display won`t start if i don`t reset the powerbook

    i have to press the reset buton behind the keyboard and then press the power buton to start the laptop and the display to start. what is the problem and can it be fixt?

    Just checking to be sure but ..... Do you realize that the Pad will go to sleep after a certain period of time (which you can change in settings>general>auto lock)? Are you sure that the iPad is not just going to sleep? You can wake the iPad by tapping the little black button at the top of the iPad - the power button - or by tapping the home button. Then you have to slide to unlock it.
    If you have reset the iPad as you described above - and it works and turns back on again - try this - hold down on the sleep/power button until the red slider appears and then slide to the right to shut it off. To restart, hold the sleep/power button until the Apple logo appears and let go of the button.
    Is this how you are trying to restart?
    Message was edited by: Demo

  • How do you reset the firewire and USB? My ports are intermittent. I suppose

    How do you reset the firewire and USB ports? My ports are intermittent. I suppose it could be a hardware isssue, but still wonder if I can reinstall/reset the software without reformatting my drive.

    Hello! Resetting the ports is done by resetting the pmu. press the button once with all external cables unhooked. Below is a pict of an example of the pmu location. Also an intermittent problem is often a bad cable. Tom
    [IMG]http://img470.imageshack.us/img470/1623/mddlogicbd4ga.jpg[/IMG]

  • How can I reset the screen colors/resolution on an old white macbook?

    My screen shows neon colors and a zigzag shapes.  How can I reset the color resolution?  This laptop was supposedly fixed but when returned all my data had been "lost".  The certified mac tech said he reinstalled the OS but lost all my desktop files and HD and couldn't recover.  ODDLY, when I started the machine and started fresh, my old hard drive was still there!  Although he'd wiped out my current desktop files- gone.  But, the  screen colors went wonky all of the sudden and I don't know how to resert or correct the resolution.  Can any one share a suggestion?

    With that kind of issue after returning from a repair where a tech was inside the computer, it should be returned to the same place for an evaluation of the problem, a diagnosis, and perhaps they need to check their work to see if something came loose while they had it apart.
    The System Preferences> Displays has a panel to select settings.
    You may have to try & see about a reset of System Management Controller http://support.apple.com/kb/HT3964 Or, if reset of NVRAM  http://support.apple.com/kb/HT1379 may help. Not sure if these would do anything if there is hardware damage.
    Good luck & happy computing!

  • Can anything be done to change the white on grey color scheme in Bookmarks?

    I just upgraded my Mac Book Pro to OS X Version 10.9.1. I was horrified when I got a look at what Apple has done to Safari!  I have macular degeneration - which means that my eyesight is slowly fading away.  Bookmarks was especially difficult because all of the bookmrks are shown with a white on grey color scheme.  And when the "new" Apple color schemes are not white on grey - they are grey on white.  I simply can NOT see anything which is white on grey.  OR white on ANY light color.  In order to be able to see anything, I need to have contrast.  For example, as I type on this page, the scroll bar is grey on white.  It has become almost impossible for me to find the scroll bar on most pages.  Previously, my scroll bars where usually bright blue.  I can see bright blue on white - but NOT grey on white.  I can read white letters on BRIGHT or DARK Blue -but NOT light blue. 
    Apple has made SO many strides in makes computers accessable to those of us who have no other choice except to deal with disabilities!  Can ANYTHING be done to change the white on grey color scheme which Apple has adopted throughout its system? 
    Now, in order to use my Bookmarks, I have to go to my Edit Bookmarks page.  Even that solutation is not all that helplful, because the lettering on the Edit Bookmarks page is so small. 
    Also - I discovered that the "new" Mail pages had the same problem.  For the most part, the "innovations" in mail make all of the pages too busy for me to be able to sort my mail or keep track of it in any way.  I had to choose to return to the "classic" mail option to be able to get a reasonable facsimile of being able to handle my E mail accounts! 
    And, of course, once again, the scroll bar on my mail accounts is also grey on white - so it takes a lot of searching for me to just find the scroll bar when I need to scroll down in an E mail!
    ALSO - I was equally horrified when I discovered that the Upgrade to Version 10.9.1 made it impossible for me to visit some of my favorite music pages - most of which use MIDI files!  I can no longer hear any of my favorite MIDI music pages!  I TUNES, of course, is in love with people like Lady Gaga - the type of performers - and performances - which have no relevance to older Americans. 
    I do volunteer work at a local Assisted Living facility and one of the greatest advances we have been able to make with Alzheimers patients is the way in which Senior Citizens respond to music from their time period.  Unfortunately, most of the music which senior citizens prefer to listen to is music which has been preserved in MIDI pages.  A few weeks before I "upgraded" my Mac Book Pro - I could take my computer over to the local Assisted Living Facility and play music from Hymn Time's Cyberhymnal or the Angelwinks tunes - but I can NO longer do that with the current Apple "upgrade" in version 10.9.1 - because the music from those MIDI pages can no longer be heard by anyone!  The page comes up and you can see the writing - but no one can hear any of the music.  We understand that a group in Switzerland has been working on an APP for I Phones which DOES make MIDI files accessable - so surely it should be possible to provide a way for Version 10.9.1 users to listen to MIDI files, such as those provided by Hymn Time's Cyber Hymnal or by Angelwinks! 
    You will notice that I changed the font for this to Arial Black - primarily because I could NOT see what I was writing when I first began - because, once again, the color scheme was grey on white. 

    Hi Grandma,
    18 point Helvetica Bold .
    There is an Apple Support Community called Vision:
    https://discussions.apple.com/community/accessibility/vision?view=discussions
    I shall ask the Moderators (Hosts) to move your discussion to that forum.
    Kind regards,
    Ian.

  • On our project site, with Firefox 4 and 5, buttons don't take the keyboard focus if you mouse-click on them. Is this a problem of our site?

    On a page like http://www.ori.uzh.ch/links.html, clicking a link opens a new tab, and after closing that tab, you can move to the next link with the tabulator key. On that site, it still works with Firefox 5. I also worked on our project site (password secured, sorry) with Firefox up to 3.6.18. But now, if I open a link with the mouse, close that tab again and press the tab key, the focus just goes to the first clickable button, as if I had not clicked any button previously. If I open a link by tab key and "enter", the keyboard focus is preserved on that button. But there are many many buttons on our pages, and they reload frequently.
    BTW I adjusted the system preferences, so that the keyboard focus moves between all controls. (see http://www.tipstrs.com/tip/1505/Tab-key-to-select-form-elements-in-Firefox-on-the-Mac). But I don't think the problem is related to that.

    I found out that our buttons are no links, but input tags, type="submit". I'll discuss the problem with our programmer.

  • When i want to return to my home page I click on the home icon and it resets the page to my home page but also open a blak tab which i don't want how can I stop this as i have too many tabs open.

    When I want to return to my home page after looking at a website I click on the home icon and it resets the page to my home page but also open a blak tab which i don't want.How can I stop this as I have too many tabs open and have to close all of them.

    You may have an unwanted extension that is modifying sites (or the toolbar area). Try this:
    Disable ALL nonessential or unrecognized extensions on the Add-ons page. Either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable.
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Does that flush the tab?
    Please report back on anything suspicious you find so others can learn about its bad behavior.

  • I setup my iCloud account on my iPhone 5 with the wrong e mail address, and I don't remmber the password, I reset my tel and erase all the information on my iPhone in order to try to set up a new iCloud account but when I restart I have a problem aga

    I setup my iCloud account on my iPhone 5 with the wrong e mail address, and I don't remmber the password, I reset my tel and erase all the information on my iPhone in order to try to set up a new iCloud account but when I restart I have a problem agaIn , they ask me to put again the old iCloud user account and password, what I can do in order to start the phone when I don't have the correct e mail and I don't remmber the passcode.?

    I have the same problem as the emails go to my iCloud account that I cannot access!!! I cannot answer the security questions as someone else must have set up my iCloud account. Nothing seems to work. It would be great if someone has some ideas as what can be done to recover the situation?

  • Hi. I tried to change my old icloud account on a new one. After reset the settings I need to enter my old Apple ID account and password, that I don't remember.

    Hi. I tried to change my old icloud account on a new one. After reset the settings I need to enter my old Apple ID account and password, that I don't remember.
    I do not remember it because when I bought the my iPhone 4s in 2011 I didn't understand how it works and asked a representative to set it up for me. The representative helped me and gave a piece of paper with login and password but I lost it a long time ago.
    Before resetting the settings I turned off "Find my iPhone" function, but it anyway asks me to enter my old Apple ID and password. I have the original box, documents, receipt. So how can I solve this problem?

    You do not have to call US, but you need to call. Or else.
    Contact Apple for support and service - Apple Support

  • HT2623 how do i delete icloud account on my ipad when my apple ID is non active email and i don't know the password and can't reset password without active email

    how do i delete icloud account on my ipad when my apple ID is non active email and i don't know the password and can't reset password without active email

    If the iCloud account you are trying to delete is old ID that was later updated to change it to your current ID, you can go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now, if desired, you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I can't sign into iCloud because my Apple ID doesn't work there.  For some reason it gave me a .mac email and I don't remember the password.  When it gives me the option to reset my password, it's my Apple ID password which I don't want to do.

    I can't sign into iCloud because my Apple ID doesn't work there.  For some reason it gave me a .mac email and I don't remember the password.  When it gives me the option to reset my password, it's my Apple ID password which I don't want to do.  I have ended up chaning my Apple ID 3 times lately and I still can't get to my cloud management.  What do I do?

    Check if your Data and Time, and Time Zone are set to automatically: OS X Yosemite: Set the date and time on your Mac
    Is this issue also appearing on new user account:
    Isolating an issue by using another user account - Apple Support
    Mac OS X: How to troubleshoot a software issue - Apple Support
    Is this issue also appearing in safe mode: OS X: What is Safe Boot, Safe Mode? - Apple Support

  • Why is my calendar not holding the correct color.  I have reset the color of a particular calendar posting and within second the color reverts to purple.

    Why is my calendar not holding the set color.  I have reset the color of a particular calendar and within seconds it reverts back to purple.  I am using ICloud on a calander linked to my IPhone and IPad.

    set them at icloud.com on a computer.  its a work around.  Peace, Clyde

Maybe you are looking for