Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Contributor
Posts: 30
Registered: ‎02-20-2011
My Device: 9700
My Carrier: 3 Australia
Accepted Solution

Dropdown list and picker layout

Hi Guys,

 

In my application I have a data entry form which is as below

 

  1. TextInputBox
  2. TextInputBox
  3. DropDownList
  4. Picker
  5. TextInputBox

So, problem I am having is that DropDownList's List is overlapped by control 4 & 5 and also Picker's lower part is overlapped by control # 5.

 

So, is there anyway to specify the z-order of controls?  

 

(I haven't been able to use 'z' property effectively)

Developer
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: Dropdown list and picker layout

hey,

 

to change the "z-order" on an object, you can use the setChildIndex() method to change its order in the parent object. here is more detail on that:

 

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectContainer.html#...

 

good luck!

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Contributor
Posts: 30
Registered: ‎02-20-2011
My Device: 9700
My Carrier: 3 Australia

Re: Dropdown list and picker layout

Thanks buddy,

 

It worked like a charm!

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Dropdown list and picker layout

I add an event to listen when the drop down gains focus and then I call to have it push to the front.  Something I wish they would just do native to the control.  This is also true for some other controls.

New Developer
Posts: 61
Registered: ‎06-07-2011
My Device: Playbook
My Carrier: Employee

Re: Dropdown list and picker layout

I have one base container(vertical flow)  and 5 sub containers(each one having horizontal flow), in this  2  containers having dorpdown lists.  My code is like this

 

uiContainer.addChild(hContainer1);

uiContainer.addChild(hContainer2);

uiContainer.addChild(hContainer3);

uiContainer.addChild(hContainer4);

uiContainer.addChild(hContainer5);

 

If I changing the childIndex of the uiContainer only the order  of the alignment is changing. Dropdowns are still overlapping.

 

uiContainer.setChildIndex(hContainer5,0);

uiContainer.setChildIndex(hContainer4,0);

uiContainer.setChildIndex(hContainer3,0);

uiContainer.setChildIndex(hContainer2,1)

;uiContainer.setChildIndex(hContainer5,2);

 

please help me I am waiting for your reply....