[flexcoders] Scrollbars, mx:DataGrid, and non-Halo themes...
If I have a non-Halo theme (for example, Cobalt) in my Flex 4 app, there are no longer any scroll-bars on my Data Grid. How do I re-enable the vertical scroll bar, in particular? Thanks, Laurence MacNeill Mableton, Georiga, USA
[flexcoders] Scrollbars of List do not work in mx:Window in an AIR app?
Can anyone give me an idea why I cannot scrub the scrollbars of a List or HorizontalList when they are a child of mx:Window? This is only a problem with MXML syntax. It works fine with regular actionscript syntax. ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; title=Dummy Application width=800 height=800 layout=absolute mx:Script ![CDATA[ import mx.core.Window; ]] /mx:Script !-- * List scrubs just fine in the main window. * -- mx:HorizontalList dataProvider={[1,2,3,4,5,6,7,8,9,10]} columnWidth=40 width=300 height=50/ !-- * List seem to not wanna scrub when they are a child of Window. Why? * -- mx:Window width=50 height=50 creationComplete={event.target.open();} mx:List id=listA dataProvider={[1,2,3,4,5,6,7,8,9,10]} rowHeight=40 width=100 height=300/ mx:HorizontalList dataProvider={[1,2,3,4,5,6,7,8,9,10]} columnWidth=40 width=300 height=50/ /mx:Window /mx:WindowedApplication -- Keith H -- www.keith-hair.net
RE: [flexcoders] Scrollbars of List do not work in mx:Window in an AIR app?
The doc says that mx:Window cannot be a child tag Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Keith H Sent: Monday, January 04, 2010 12:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Scrollbars of List do not work in mx:Window in an AIR app? Can anyone give me an idea why I cannot scrub the scrollbars of a List or HorizontalList when they are a child of mx:Window? This is only a problem with MXML syntax. It works fine with regular actionscript syntax. ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; title=Dummy Application width=800 height=800 layout=absolute mx:Script ![CDATA[ import mx.core.Window; ]] /mx:Script !-- * List scrubs just fine in the main window. * -- mx:HorizontalList dataProvider={[1,2,3,4,5,6,7,8,9,10]} columnWidth=40 width=300 height=50/ !-- * List seem to not wanna scrub when they are a child of Window. Why? * -- mx:Window width=50 height=50 creationComplete={event.target.open();} mx:List id=listA dataProvider={[1,2,3,4,5,6,7,8,9,10]} rowHeight=40 width=100 height=300/ mx:HorizontalList dataProvider={[1,2,3,4,5,6,7,8,9,10]} columnWidth=40 width=300 height=50/ /mx:Window /mx:WindowedApplication -- Keith H -- www.keith-hair.net
Re: [flexcoders] Scrollbars of List do not work in mx:Window in an AIR app?
Thanks. -- Keith H -- www.keith-hair.net Alex Harui wrote: The doc says that mx:Window cannot be a child tag Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui
[flexcoders] Scrollbars positionning is done too late to avoid flickering after an image scaling
Hi all, I have an issue with scrollbars positioning: I want to position them before the container is rendered to avoid some flickering. My goal is to scale an image and keep the focus on a given area on this image. Here is a simplified version of my code to expose the problem. The first slider tries to update scrollbars position immediately after scaling but it can’t work as container scrollbars properties are not already set. The second slider uses a callLater() call, the result is better but there is still some annoying flickering as sometimes the container is rendered before scrollbars positions are set: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=491 height=299 mx:Script ![CDATA[ import mx.controls.sliderClasses.Slider; import mx.events.SliderEvent; private function OnPlus(event: MouseEvent): void { Image1.scaleX += 0.1; Image1.scaleY += 0.1; CenterImage(); } private function OnMinus(event: MouseEvent): void { Image1.scaleX -= 0.1; Image1.scaleY -= 0.1; CenterImage(); } private function OnSliderChange(event: SliderEvent): void { Image1.scaleX = event.value; Image1.scaleY = event.value; CenterImage(); } private function OnSliderChange2(event: SliderEvent): void { Image1.scaleX = event.value; Image1.scaleY = event.value; callLater(CenterImage); } private function CenterImage(): void { if (Canvas1.maxHorizontalScrollPosition 0) Canvas1.horizontalScrollPosition = Canvas1.maxHorizontalScrollPosition / 2; if (Canvas1.maxVerticalScrollPosition 0) Canvas1.verticalScrollPosition = Canvas1.maxVerticalScrollPosition / 2; } ]] /mx:Script mx:Canvas id=Canvas1 x=10 y=52 width=367 height=187 mx:Image id=Image1 width=367 height=187 source=http://www.google.com/intl/en_ALL/images/logo.gif/ /mx:Canvas mx:HSlider x=10 y=10 minimum=1 maximum=20 change=OnSliderChange(event) liveDragging=true / mx:HSlider x=217 y=10 minimum=1 maximum=20 change=OnSliderChange2(event) liveDragging=true/ /mx:Application Is anyone has a solution to this problem? The problem seems very simple but I am scratching my head on this for days! Note that for my purpose scrollbars are mandatory. Thanks! -- View this message in context: http://www.nabble.com/Scrollbars-positionning-is-done-too-late-to-avoid-flickering-after-an-image-scaling-tp23208225p23208225.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Scrollbars not appearing for big image display
Why aren't scrollbars appearing when I set a very large image into a container ? MXML is as follows: mx:Canvas id=vizImageCV left=0 right=0 top=0 bottom=0 clipContent=false mx:Image left=0 right=0 top=0 bottom=0 id=vizImage scaleContent=false/ /mx:Canvas Image data is set afterwards, once it's been downloaded from server. I have tried many ways: - calling invalidateDisplayList() on canvas after setting image data - calling invalidateSize() on canvas - setting width/height/measuredWidth/measuredHeight on canvas, getting them from Image - setting scrollbar display policy to on for canvas (though the default is auto) Any suggestion ? Thanks -- View this message in context: http://www.nabble.com/Scrollbars-not-appearing-for-big-image-display-tp16527521p16527521.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] ScrollBars don't appear in Browser...
No one a clue? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lieven Cardoen Sent: vrijdag 19 januari 2007 14:11 To: flexcoders@yahoogroups.com Subject: [flexcoders] ScrollBars don't appear in Browser... Any idea why the scrollbars in the browser do not appear when I set the minWidth and minHeight. The swf doesn't go smaller than 1024768, but the browser doesn't let me scroll if its window is smaller... mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical minWidth=1024 minHeight=768 backgroundGradientColors=[#ff, #ff] xmlns:inputmodule=be.bekaert.specularis.inputmodule.* creationComplete=initApp() verticalGap=0 paddingLeft=0 paddingRight=0 paddingBottom=0 paddingTop=30 width=100% height=100% xmlns:ns1=* fontFamily=Arial Lieven Cardoen Application developer indiegroup interactive digital experience engelse wandeling 2 k18 b8500 kortrijk
[flexcoders] ScrollBars don't appear in Browser...
Any idea why the scrollbars in the browser do not appear when I set the minWidth and minHeight. The swf doesn't go smaller than 1024768, but the browser doesn't let me scroll if its window is smaller... mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical minWidth=1024 minHeight=768 backgroundGradientColors=[#ff, #ff] xmlns:inputmodule=be.bekaert.specularis.inputmodule.* creationComplete=initApp() verticalGap=0 paddingLeft=0 paddingRight=0 paddingBottom=0 paddingTop=30 width=100% height=100% xmlns:ns1=* fontFamily=Arial Lieven Cardoen Application developer indiegroup interactive digital experience engelse wandeling 2 k18 b8500 kortrijk
[flexcoders] Scrollbars
Hi all, Is there any solutions to determine if scrollbar showing at the component or not? Thanks, With best regards Dmitry -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Scrollbars
If maxVerticalPosition 1? Guessing, can't confirm currently. - Original Message - From: chrislee943 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, August 01, 2006 4:54 AM Subject: [flexcoders] Scrollbars Hi all, Is there any solutions to determine if scrollbar showing at the component or not? Thanks, With best regards Dmitry -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Scrollbars size binding issue
I've got a weird problem. If I paste the following into a blank app, everything looks good: mx:VScrollBar id="vscroll" bottom="{hscroll.height}" right="0" top="0" /mx:HScrollBar id="hscroll" bottom="0" left="0" right="{vscroll.width}" / The scrollbars don't overlap, and leave a square in the bottom-right corner. However, in my app (which is exactly the same), whichever scrollbar is 1st in the source, seems to consider the value of the other's size as 0. If I swap the order around, the other one then touches the edge of the page (filling in the square). It's like it's not updating the bottom property of the VScrollBar when it figures the height of the HScrollBar, but I can't understand why it's working in isolation. Anyone got any suggestions on where I could start looking? The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] scrollbars on panels
If I remember well, some people solved the problem by applying minHeight="1", you should search the archives. Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Husain KitabiSent: dimanche 16 octobre 2005 18:42To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] scrollbars on panels Hi I tried using that, but no success. I also get a warning message when I used parent.height. Btw, I replaced my panel with accordion container. Now the scroll disappeared from the HBox and appeared in the accordion. My requirement is a panel. Regards HusainManish Jethani [EMAIL PROTECTED] wrote: On 10/15/05, Husain Kitabi [EMAIL PROTECTED] wrote: mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" xmlns:lsmclassgroup="com.lsmonline.client.dto.*" xmlns:lclassgroupView="com.lsmonline.client.view.course.classgroup.*" height="100%" mx:Panel title= "Create Classgroup" id="classgroupRegisterPanel" vScrollPolicy="auto" height="100%" In my viewstack I add this component as lclassgroup:classgroupRegister id="classgroupReg" label="Classgroup" width="100%" height="100%" / classgroupRegister is a HBox with 2 panels. I require each panel to have its own scroll bar. What I am getting now is scroll bar on HBox.Try setting the heights of the panels to "{parent.height}" -- whereparent would be a reference to the ViewStack. Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--
RE: [flexcoders] scrollbars on panels
HiI tried minHeight but no success. Any idea why does it happen. Regards Philippe Maegerman [EMAIL PROTECTED] wrote: If I remember well, some people solved the problem by applying minHeight="1", you should search the archives. Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Husain KitabiSent: dimanche 16 octobre 2005 18:42To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] scrollbars on panels Hi I tried using that, but no success. I also get a warning message when I used parent.height. Btw, I replaced my panel with accordion container. Now the scroll disappeared from the HBox and appeared in the accordion. My requirement is a panel. Regards HusainManish Jethani [EMAIL PROTECTED] wrote: On 10/15/05, Husain Kitabi [EMAIL PROTECTED] wrote: mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" xmlns:lsmclassgroup="com.lsmonline.client.dto.*" xmlns:lclassgroupView="com.lsmonline.client.view.course.classgroup.*" height="100%" mx:Panel title= "Create Classgroup" id="classgroupRegisterPanel" vScrollPolicy="auto" height="100%" In my viewstack I add this component as lclassgroup:classgroupRegister id="classgroupReg" label="Classgroup" width="100%" height="100%" / classgroupRegister is a HBox with 2 panels. I require each panel to have its own scroll bar. What I am getting now is scroll bar on HBox.Try setting the heights of the panels to "{parent.height}" -- whereparent would be a reference to the ViewStack. Yahoo! Music Unlimited - Access over 1 million songs. Try it free. --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--hussain Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] scrollbars on panels
I made a search in the archives, came to this on 2nd position: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg13611.html Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Husain KitabiSent: lundi 17 octobre 2005 17:07To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] scrollbars on panels HiI tried minHeight but no success. Any idea why does it happen. Regards Philippe Maegerman [EMAIL PROTECTED] wrote: If I remember well, some people solved the problem by applying minHeight="1", you should search the archives. Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Husain KitabiSent: dimanche 16 octobre 2005 18:42To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] scrollbars on panels Hi I tried using that, but no success. I also get a warning message when I used parent.height. Btw, I replaced my panel with accordion container. Now the scroll disappeared from the HBox and appeared in the accordion. My requirement is a panel. Regards HusainManish Jethani [EMAIL PROTECTED] wrote: On 10/15/05, Husain Kitabi [EMAIL PROTECTED] wrote: mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" xmlns:lsmclassgroup="com.lsmonline.client.dto.*" xmlns:lclassgroupView="com.lsmonline.client.view.course.classgroup.*" height="100%" mx:Panel title= "Create Classgroup" id="classgroupRegisterPanel" vScrollPolicy="auto" height="100%" In my viewstack I add this component as lclassgroup:classgroupRegister id="classgroupReg" label="Classgroup" width="100%" height="100%" / classgroupRegister is a HBox with 2 panels. I require each panel to have its own scroll bar. What I am getting now is scroll bar on HBox.Try setting the heights of the panels to "{parent.height}" -- whereparent would be a reference to the ViewStack. Yahoo! Music Unlimited - Access over 1 million songs. Try it free. --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--hussain Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] scrollbars on panels
On 10/15/05, Husain Kitabi [EMAIL PROTECTED] wrote: mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* xmlns:lsmclassgroup=com.lsmonline.client.dto.* xmlns:lclassgroupView=com.lsmonline.client.view.course.classgroup.* height=100% mx:Panel title= Create Classgroup id=classgroupRegisterPanel vScrollPolicy=auto height=100% In my viewstack I add this component as lclassgroup:classgroupRegister id=classgroupReg label=Classgroup width=100% height=100% / classgroupRegister is a HBox with 2 panels. I require each panel to have its own scroll bar. What I am getting now is scroll bar on HBox. Try setting the heights of the panels to {parent.height} -- where parent would be a reference to the ViewStack. Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] scrollbars on panels
Hi I tried using that, but no success. I also get a warning message when I used parent.height. Btw, I replaced my panel with accordion container. Now the scroll disappeared from the HBox and appeared in the accordion. My requirement is a panel. Regards HusainManish Jethani [EMAIL PROTECTED] wrote: On 10/15/05, Husain Kitabi [EMAIL PROTECTED] wrote: mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" xmlns:lsmclassgroup="com.lsmonline.client.dto.*" xmlns:lclassgroupView="com.lsmonline.client.view.course.classgroup.*" height="100%" mx:Panel title= "Create Classgroup" id="classgroupRegisterPanel" vScrollPolicy="auto" height="100%" In my viewstack I add this component as lclassgroup:classgroupRegister id="classgroupReg" label="Classgroup" width="100%" height="100%" / classgroupRegister is a HBox with 2 panels. I require each panel to have its own scroll bar. What I am getting now is scroll bar on HBox.Try setting the heights of the panels to "{parent.height}" -- whereparent would be a reference to the ViewStack. Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] scrollbars on panels
On 10/15/05, Husain Kitabi [EMAIL PROTECTED] wrote: I have a Canvas HBox Panel1 Panel2 /HBox Canvas What's the MXML source look like? This canvas goes into my viewstack. I need a scroll bar in Panel 1. But what happens is it shows scroll bar on canvas. So both the panels move up and down. I tried using vscrollPolicy on each component, but not reached a solution yet. Have you set height=100% on the HBox? Have you set percentage heights on the Panel's? Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] scrollbars on panels
mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" xmlns:lsmclassgroup="com.lsmonline.client.dto.*" xmlns:lclassgroupView="com.lsmonline.client.view.course.classgroup.*" height="100%" mx:Panel title= "Create Classgroup" id="classgroupRegisterPanel" vScrollPolicy="auto" height="100%" In my viewstack I add this component as lclassgroup:classgroupRegister id="classgroupReg" label="Classgroup" width="100%" height="100%" / classgroupRegister is a HBox with 2 panels. I require each panel to have its own scroll bar. What I am getting now is scroll bar on HBox. I do have the percentage height set. I also tried the vScrollPolicy. Using vScrollPolicy shows the scroll area but no bar. Pl advise Thanks HusainManish Jethani [EMAIL PROTECTED] wrote: On 10/15/05, Husain Kitabi [EMAIL PROTECTED] wrote: I have a Canvas HBox Panel1 Panel2 /HBox CanvasWhat's the MXML source look like? This canvas goes into my viewstack. I need a scroll bar in Panel 1. But what happens is it shows scroll bar on canvas. So both the panels move up and down. I tried using vscrollPolicy on each component, but not reached a solution yet.Have you set height="100%" on the HBox? Have you set percentageheights on the Panel's? Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Scrollbars in a VBox
With all these pricing things up in the air its hard to think about coding, but I do have a bit of a problem I'm trying to work out. I have a layout that has multiple nested VBox components with a repeater on the inside. For my application this repeater is going to be repeating a custom component based on a dataProvider. My problem is that Flex wants to put the scroll bars on the outer most VBox instead of the innermost one thats closest to the repeater. I have tried many variations of vScrollPolicy settings, but the problem seems to be somewhere else. Is there a way other than setting a specific size for the VBoxes that I can tell the inner most VBox to be the one that has a scroll bar? I have included some sample code to show my problem. In this example the scroll bars are actually going on the application control. This is a very simple example that is similar to the layout in my application and still shows the problem. I know I could use a List or a Datagrid with a custom renderer but both have behaviors I don't want. I was hoping to just be able to use a repeater and have scrollbars on the parent vbox. Any help would be greatly appreciated. Thank you, -- Matthew ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var list:Array = [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z ]; ]] /mx:Script mx:VBox id=outer width=100% height=100% backgroundColor=#FF borderStyle=solid borderThickness=5 borderColor=#FF mx:VBox id=middle width=100% height=100% backgroundColor=#FF borderStyle=solid borderThickness=5 borderColor=#FF !-- Scrollbars Need to be on this VBox \/ \/ \/ -- mx:VBox id=inner width=100% height=100% backgroundColor=#FF borderStyle=solid borderThickness=5 borderColor=#00FF00 mx:Repeater id=rpList dataProvider={list} mx:Label text={rpList.currentItem} / /mx:Repeater mx:Label text=Item Count: {list.length} / /mx:VBox /mx:VBox /mx:VBox /mx:Application Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Scrollbars in a VBox
I haven't even read through most of your example but I'm guessing what you need to do is specify minHeight on a few of your inner VBoxes. By specifying minHeight some of the sizing will get forced down into the inner boxes instead of propagating outward. Even a minHeight of 0 should do it. Matt -Original Message- From: Matthew Shirey To: flexcoders@yahoogroups.com Sent: 3/31/2005 1:40 PM Subject: [flexcoders] Scrollbars in a VBox With all these pricing things up in the air its hard to think about coding, but I do have a bit of a problem I'm trying to work out. I have a layout that has multiple nested VBox components with a repeater on the inside. For my application this repeater is going to be repeating a custom component based on a dataProvider. My problem is that Flex wants to put the scroll bars on the outer most VBox instead of the innermost one thats closest to the repeater. I have tried many variations of vScrollPolicy settings, but the problem seems to be somewhere else. Is there a way other than setting a specific size for the VBoxes that I can tell the inner most VBox to be the one that has a scroll bar? I have included some sample code to show my problem. In this example the scroll bars are actually going on the application control. This is a very simple example that is similar to the layout in my application and still shows the problem. I know I could use a List or a Datagrid with a custom renderer but both have behaviors I don't want. I was hoping to just be able to use a repeater and have scrollbars on the parent vbox. Any help would be greatly appreciated. Thank you, -- Matthew ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml http://www.macromedia.com/2003/mxml mx:Script ![CDATA[ var list:Array = [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z ]; ]] /mx:Script mx:VBox id=outer width=100% height=100% backgroundColor=#FF borderStyle=solid borderThickness=5 borderColor=#FF mx:VBox id=middle width=100% height=100% backgroundColor=#FF borderStyle=solid borderThickness=5 borderColor=#FF !-- Scrollbars Need to be on this VBox \/ \/ \/ -- mx:VBox id=inner width=100% height=100% backgroundColor=#FF borderStyle=solid borderThickness=5 borderColor=#00FF00 mx:Repeater id=rpList dataProvider={list} mx:Label text={rpList.currentItem} / /mx:Repeater mx:Label text=Item Count: {list.length} / /mx:VBox /mx:VBox /mx:VBox /mx:Application _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/