How to set the focus to the ComboBox control via actionsript?

Hello

I wanted the focus (describing the border) on a TextInput(id:myTextInput) and ComboBox(id:myComboBox) in actionscript. I tried myTextInput.setFocus (); that works very well for the TextInput component. In the case of ComboBox, myComboBox.setFocus (); works if and only if the ComboBox editable property is set to true. It does not work if it is not editable ComboBox. I wanted to put the focus on an uneditable combo box... Pls help... How can I achieve this?

-Deepak

Hello

Try this:

focusManager.setFocus (myComboBox);

focusManager.showFocus ();

Kind regards

Adrian

Tags: Flex

Similar Questions

  • How to use the combobox control to filter datagrid in Flash Builder 4?

    Hello

    I worked through the TestDrive with Flash Builder 4 application and I would like to know how to filter a datagrid using a combobox control.  I googled the subject and results for many different versions of Flash, some who look like they're going to take a considerable amount of time to implement.  I hope, with Flash Builder 4, there is a simple way to do this without writing code pages.

    I think I can be close to getting this work by passing the combobox value in a PHP script that queries the database with a WHERE clause.

    Thakns,

    David

    On the change of the ComboBox, you can filter on the ArrayCollection.source that contains the data. And define the table filtered as the dataprovider for a datagrid. Take a look at the function of class filter Array.

    -Gerard

    http://www.gauravj.com/blog

  • How to set the digital format via the API

    Hello

    I have a utility that imports limit of external resources and that the utility (c#) I would need to change the digital representation so that what is defined as hex in the external resource should appear after imported to TS so hexa.

    Can U help out me if it is possible with the API, and if so, what is the good methods for doing this?

    Thanks in advance.

    Hello

    Only a few minutes ago, we have found this solution work:

    x.NumericFormat = "%#X";  where x is the PropertyObject pointing to the number. It is just not documented anywhere for this method that you can use X for hex.

  • Satellite C660 - how to set the focus of the webcam?

    Hello

    Just bought this laptop, the built-in webcam looks very blurry when I use Skype. Does anyone know how to set the focus to the subject?

    See you soon
    Jules

    Hello

    to be honest, I have no idea on your model of lap... Try to update driver webcamd and play with Skype video settings.

  • How to set the focus to textfield

    Hello everyone.

    Need advice on how to set the focus to textfield. I tried t use setfocus, however does not

    Thank you!

    textField.requestFocus ();

  • How to set the focus

    Hai

    Say like page of connection in onload, the cursor should focus in the box, how to set the focus?

    Second, even connect click on the connection through properties of the keyboard button, if I click enter on the keyboard it should connect

    How to have the keyboard properties in flex?

    Can someone help me

    Thanks in advance :-)

    for logging by using the... button you can add eventlistenrer to the area of particular text... example...

    ti.addEventListener (KeyboardEvent.KEY_DOWN, EnterKeyEvent);

    private function EnterKeyEvent (event: KeyboardEvent): void
    {
    if(Event.keycode == 13)
    {
    do something
    }
    }

  • How to set the height of the combobox dropdown

    I want to see all the items in the drop-down list of a ComboBox without using the scroll bar. Currently the
    drop-down list shows only five items. To see "Six", I have to scroll down.

    < mx:ComboBox editable = "false" id = "number" >
    < mx:ArrayCollection >
    < mx:String > One < / mx:String >
    < mx:String > two < / mx:String >
    < mx:String > 3 < / mx:String >
    < mx:String > four < / mx:String >
    < mx:String > 5 < / mx:String >
    < mx:String > Six < / mx:String >
    < / mx:ArrayCollection >
    < / mx:ComboBox >

    You can use the rowCount of the ComboBox control:

    Vygo

  • How to stop the remote control to the setting

    How to stop the remote control to the setting

    Disable the settings > general > accessibility > voiceover.

  • How to set the number of e-mail messages that are stored on my iPhone

    How to set the number of e-mail messages that are stored on my iPhone – so when I don't have a network connection I can see a 'large' number of messages in my Inbox etc.

    This is series is not defined in the world

    You must go to settings-> mail, contacts, and calendars and check the settings of your e-mail provider offers in this area

  • How to set the time that my screen stays on?

    How to set the time that my screen lights up.  I have an iPod Touch 6?

    Settings > general > auto-lock

  • How to set the default android home page.

    How to set the home page in the latest browser of firefox for android?

    Hello:

    Unfortunately you can not remove the top sites home page but you can pin a site, remove a site from unpin it and change the url of a pinned site.

    Please read this article for instructions.

    I hope this helps!

  • How to set the time between slides in a slideshow (iPhoto, el capitan)

    How to set the time to say - 5 seconds or 20 seconds - between slide show photos in iPhoto. I use el capitan.

    See the Settings button at the bottom right of the toolbar (at the bottom of the slide show). Click on it and you have a small window with two tabes, refers to all the slides, the other to the selected slide. You can make your choice

  • How to set the date and time on my HP Officejet pro 8600 more?

    How to set the date and time on my HP officejet pro 8600 more?  It just on a printed journal Jan-oo-oo fax shows 00:00 AM.  There are no instructions on how to change this.  I need proof that I sent a fax to a certain date and time.  Help, please.  Thank you

    Hello

    Below are the steps to set the Date and time for your device:

    1. On the Control Panel, press the right arrow key ( ), press Setup ( ).

  • How to set the output meter channel to generate a signal pulse using DAQ6008

    Hello there I am generating a pulse signal of 100 Hz and a duty of 20% of the 6008 data acquisition cycle using visual studio 2013. I have code that needs to generate this but I'm not sure on how to set the channel output meter. When I run this NI MMAX and my vb error code indicates that the physical channel is not supported. I am a user of data acquisition were first and would appreciate any help offered.

    If you look at the USB-6008/6009 User Guide and specifications, you will see that the counter in these devices cannot rely as edges of entry. It cannot generate a pulse.

    Lynn

  • How to set the position and size of the façade using the FPRunTimePosRunCustom method in a c# application?

    How to set the position and size of the façade using the FPRunTimePosRunCustom method in a c# application?

    I found a solution! -Set the size and position of the façade with the help of the

    File > VI properties > window running Position (in category list) > custom (in position of menu drop-down).

    then just accept the current position and size (leave the boxes checked) or set values you want directly (uncheck the boxes and fill in the numbers), or physically position and size the façade and use, the "set to current location" button and press "set size" current All that is easier for you.

    OK so it does not make use of the method VI Methods (Active X) FPRunTimePosRunCustom ([Position], [Size]) but if labview want to make him difficult to use then other means must be found.

Maybe you are looking for

  • iTunes cannot find music (suddenly)

    I have nothing to change anything on my PC and now the biggest part of my album Art has disappeared, and iTunes cannot locate the music.  Reinstalled iTunes.  The need to solve the problem of location of music first. iTunes THOUGHT ALL my music is lo

  • iMac mailbox folders

    The folders and all their contents have disappeared from my mailbox of the iMac.  Can someone help me to get back them please? SM

  • Windows 7 product key issue

    I've recently updated my computer to Windows 8 Professional. Is it possible to use my Windows 7 product key I bought this PC to another PC?

  • Message tells me that I do not have access to my Quicken files. Help, please!

    Just bought a new laptop running Windows 8.  I loaded Quickens and restore my files and was able to work with them.  But when I tried to open a Quickens the next day, I was told it was a read only file and I want to restore it.  But he told me that I

  • Creative cloud apps open no more

    HelloI am currently editing with PR Pro CC 2015 and using AE CC 2015.2 hours ago, everything was fine. Now, I can't open any software CC more.I tried to reset my password but the problem is still there!Any idea of a question?ConcerningEric