The drop-down part of the combo box is not a child of the combo-box
but as a top-level pop-up so it exists outside of the combo box's
parent. Your button would not do this if it was placed on the canvas.
So you'll want to have your button pop-up as well. Check out the
PopUpManager class in the docs to figure out how to do this. 

Ryan

--- In [email protected], "wwaishan" <[EMAIL PROTECTED]> wrote:
>
> I have a Canvas with one Combobox and one Button within.  I'm trying
> to visually append the button below the dropdown so the button looks
> like it's part of the dropdown.  On the DropdownEvent.OPEN event, the
> button is moved to be below that dropdown.  On the DropdownEvent.CLOSE
> event, the button's visibility is set to false.  My code mostly works.
>  My problem is when the dropdown extends past the parent canvas's
> boundaries (I don't mean the application window's boundaries).  The
> dropdown appears fine but my button doesn't appear at all.  I suspect
> it has something to do with z-order.
> 
> The dropdown displays fine when it extends past parent's boundaries. 
> How do I do this for the button also?
> 
> Thanks.
>


Reply via email to