the same code as yours, just iam storing values in array but the issue is when ever we use popup menu button, it exceeds the length of browser & will not have scroll policy. so iam facing the issue
On Dec 29, 10:11 pm, Khalid Chaudhary <[email protected]> wrote: > can you share your code............ if possible? > > > > On Wed, Dec 29, 2010 at 10:28 PM, babi <[email protected]> wrote: > > hi khalid, > > in your code we are able to see the list till inbox81 only > > as we dont have a scrollbar. i want to see whole list., imean till > > 161. hope you understood my problem. > > > thanks, > > Gautam > > > On Dec 29, 9:46 pm, Khalid Chaudhary <[email protected]> > > wrote: > > > Run the below code........... hope this is what you are looking for > > > ------------------------------------------------------------------------------------------------------------------------------ > > > > <?xml version="1.0"?> > > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> > > > > <mx:Script> > > > <![CDATA[ > > > > import mx.controls.*; > > > import mx.events.*; > > > > private var myMenu:Menu; > > > > private function initMenu():void { > > > myMenu = new Menu(); > > > var dp:Object = [{label: "New Folder"}, > > > {label: "Sent Items"}, > > > {label: "Inbox1"}, > > > {label: "Inbox2"}, > > > {label: "Inbox3"}, > > > {label: "Inbox4"}, > > > {label: "Inbox5"}, > > > {label: "Inbox6"}, > > > {label: "Inbox7"}, > > > {label: "Inbox8"}, > > > {label: "Inbox9"}, > > > {label: "Inbox10"}, > > > {label: "Inbox11"}, > > > {label: "Inbox12"}, > > > {label: "Inbox13"}, > > > {label: "Inbox14"}, > > > {label: "Inbox15"}, > > > {label: "Inbox16"}, > > > {label: "Inbox17"}, > > > {label: "Inbox23"}, > > > {label: "Inbox31"}, > > > {label: "Inbox41"}, > > > {label: "Inbox51"}, > > > {label: "Inbox61"}, > > > {label: "Inbox71"}, > > > {label: "Inbox81"}, > > > {label: "Inbox91"}, > > > {label: "Inbox101"}, > > > {label: "Inbox111"}, > > > {label: "Inbox121"}, > > > {label: "Inbox131"}, > > > {label: "Inbox141"}, > > > {label: "Inbox151"}, > > > {label: "Inbox161"} > > > ]; > > > myMenu.dataProvider = dp; > > > myMenu.selectedIndex = 0; > > > myMenu.addEventListener("itemClick", itemClickHandler); > > > popB.popUp = myMenu; > > > popB.label = "Put in: " + > > > myMenu.dataProvider[myMenu.selectedIndex].label; > > > } > > > > private function itemClickHandler(event:MenuEvent):void { > > > var label:String = event.item.label; > > > popTypeB.text=String("Moved to " + label); > > > popB.label = "Put in: " + label; > > > popB.close(); > > > myMenu.selectedIndex = event.index; > > > } > > > > ]]> > > > </mx:Script> > > > > <mx:Panel title="PopUpButton Control Example" height="75%" > > width="75%" > > > paddingTop="10" paddingBottom="10" paddingRight="10" > > > paddingLeft="10"> > > > > <mx:PopUpButton id="popB" label="Edit" > > > creationComplete="initMenu();" width="135" /> > > > > <mx:Spacer height="50" /> > > > <mx:TextInput id="popTypeB" /> > > > > </mx:Panel> > > > </mx:Application> > > > ------------------------------------------------------------------------------------------------------------------------------ > > > > On Wed, Dec 29, 2010 at 5:29 PM, babi <[email protected]> wrote: > > > > i am using a popup menu button in my application. the menu is big such > > > > that i am unable to scroll and cant see the remaining items in the > > > > dropdown. > > > > > is there any way to get the scroll enabled for this? thanks in > > > > advance. > > > > > gautam > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Flex India Community" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<flex_india%2bunsubscr...@googlegroups.com> > > <flex_india%2bunsubscr...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/flex_india?hl=en.-Hide quoted text - > > > > - Show quoted text - > > > -- > > You received this message because you are subscribed to the Google Groups > > "Flex India Community" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<flex_india%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/flex_india?hl=en.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

