We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Disable multiple rows/columns in a FlowLayout

Thread ID:

Created:

Updated:

Platform:

Replies:

7997 Oct 16,2003 07:57 AM Apr 14,2006 05:28 PM Windows Forms 6
loading
Tags: Tools
Brian Bacon
Asked On October 16, 2003 07:57 AM

Is there any way to force a FlowLayout to only use 1 row/column? I have half a dozen panels all of a different sizes that I'd like to layout in a strictly verticle fashion. I also need to be able to hide any of the panels at any time allowing the other panels to be rearranged to hide the gap. I am currently using a large right side margin so that when my app is maximized the flow layout doesnt start using two columns. Is there a better way? If not might I suggest a property for this?

Arun Srinivasan [Syncfusion]
Replied On October 16, 2003 05:23 PM

Hi Brian, Have you taken a look at the FlowLayOut sample located in the Essential Suite\Tools\samples\Layout Manager Package\Advanced\FlowLayout directory? This is again a work around to what you are trying to do, as currently there is no way of specifying something like a column layout. Regards Arun

Rob Oesch
Replied On July 20, 2005 02:34 PM

This works as long as the AutoLayout Property is set to False. Setting it to True allows the controls to adjust when others are made visible and invisible. With AutoLayout set to True, two columns are formed even when the Panel is only wide enough for one column. Any ideas? Thanks! Rob >Hi Brian, > >Have you taken a look at the FlowLayOut sample located in the Essential Suite\Tools\samples\Layout Manager Package\Advanced\FlowLayout directory? > >This is again a work around to what you are trying to do, as currently there is no way of specifying something like a column layout. > >Regards >Arun >

Administrator [Syncfusion]
Replied On July 22, 2005 11:59 AM

Hi Rob, I attempted to reproduce this by changing the setting of AutoLayout in the AdvancedFlowLayout sample. I was unable to do so. Would it be possible for you to provide me a sample, or a list of additional things you''re doing differently? Regards, Gregory Austin Syncfusion Inc.

Rob Oesch
Replied On April 12, 2006 07:46 PM

First, I need to apologize for the long delay! Okay, so I''ve attached a modified version of the AdvancedFlowLayout Solution (vs 2003). This accurately represents our problem. There is also a Word Document that contains screenshots of DesignMode, and the Form during run time. The goal is to have all controls lined up in one column. Everything looks fine in DesignMode for Form1.cs. I have set flowLayout1.AutoLayout = False. Start the application, and the form now has multiple columns. Are there additional settings that need to be changed? >Hi Rob, > > I attempted to reproduce this by changing the setting of AutoLayout in the AdvancedFlowLayout sample. I was unable to do so. Would it be possible for you to provide me a sample, or a list of additional things you''re doing differently? > >Regards, >Gregory Austin >Syncfusion Inc.

ModifiedAdvancedFlowLayout.zip

Administrator [Syncfusion]
Replied On April 13, 2006 10:06 AM

Hi Brian, Thanks for attaching the sample and a screenshot. As per my understanding from your previous update, your need is to set all the controls in a single column when FlowLayout.AutoLayout is set to false. In the AdvancedLayout sample, the mutiple column is set according to the panel''s width. You could try setting the possibleColumns to zero in the DetermineLayoutHeight method. I here with attach a sample for your reference: private int DetermineLayoutHeight() { ... int possibleColumns = 0; ... } Layout.zip Please take a look and let me know if this meets your requirements. Best Regards, Seetha

Rob Oesch
Replied On April 14, 2006 05:28 PM

Seetha, That worked! We are using FlowLayout inside of a custom control inheriting XPTaskBarBox. So I had one final step to maintain the appropriate height as we make child controls visible and not visible. Thanks again for your help! Rob >Hi Brian, > >Thanks for attaching the sample and a screenshot. As per my understanding from your previous update, your need is to set all the controls in a single column when FlowLayout.AutoLayout is set to false. > >In the AdvancedLayout sample, the mutiple column is set according to the panel''s width. > >You could try setting the possibleColumns to zero in the DetermineLayoutHeight method. I here with attach a sample for your reference: > > >private int DetermineLayoutHeight() >{ > ... > int possibleColumns = 0; > ... >} > > >Layout.zip > >Please take a look and let me know if this meets your requirements. > >Best Regards, >Seetha > >

sampleFlowLayoutCode.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;