kingyiren / flex-object-handles

Automatically exported from code.google.com/p/flex-object-handles
0 stars 0 forks source link

Problem with the behavior of a ComboBox when it´s inside a ObjectHandle container #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Put a populated combobox inside a ObjectHandle container 
2. Execute de application
3. Click on the combox´s arrow - OK
3. Click on the middle of the combobox -> PROBLEM
4. After click on the middle, try to click on the combox´s arrow again ->
PROBLEM

What is the expected output? What do you see instead?
-> On 3 and 4 steps, the combobox should "open" showing the options

What version of the product are you using? On what operating system?
-> I´ve tried with ObjectHandles-1.0.0014 and ObjectHandles-1.0.0015.

Please provide any additional information below.

This is the code used for the test:

<oh:ObjectHandles id="ohTest" mouseChildren="true" x="0" y="0" width="250"
height="100">
    <mx:ComboBox id="cboTest" x="0" y="0" width="200" labelField="label"
selectedIndex="0">
        <mx:Object label="anything1"/>
    <mx:Object label="anything2"/>
    </mx:ComboBox>
</oh:ObjectHandles>

Original issue reported on code.google.com by fernando...@gmail.com on 3 Jul 2008 at 6:48

GoogleCodeExporter commented 8 years ago
I had a same problem.
I thought that it was caused by loosing focus of Combobox.

So. I removed the line "setFocus();" at the end of the method "onMouseDown" in 
ObjectHandles.as

I didn't check any other features of ObjectHandles.
but, anyway, it works fine.

Original comment by neon...@gmail.com on 22 Jul 2008 at 4:21

GoogleCodeExporter commented 8 years ago
ObjectHandles swallows the mouse move events that would make that work.  This 
is a
common issue that has many symptoms, including this one.  I don't have a 
general fix
for it.

This is not an issue with ObjectHandles version 2.

Original comment by marc.hug...@gmail.com on 22 Dec 2009 at 4:05

GoogleCodeExporter commented 8 years ago
There are a problem with the neon's workaround:
- if you try to resolve the comboBox problem commenting the setFocus() line at 
the end of onMouseDown in ObjectHandles.as the component will not send the 
KEY_DOWN event. So you must change the setFocus for this:

if (event.target==this)
    setFocus();

Original comment by Alex.m20...@gmail.com on 18 Apr 2011 at 4:31