--- C:/Documents and Settings/krzak/Pulpit/Nowy folder/Fireball.Windows.Forms/Windows/Forms/DiscoverControl.cs Fri Jan 20 11:33:38 2006 +++ C:/Documents and Settings/krzak/Pulpit/DiscoverControl.cs Tue Oct 24 00:11:46 2006 @@ -277,6 +277,18 @@ if (DiscoverPaneChanged != null) DiscoverPaneChanged(this, e); } + + //krzak + private DiscoverPane getPaneAtIndex(int _index) + { + foreach (DiscoverPane pane in base.Controls) + { + if (pane.TabIndex == _index) + return pane; + } + + return null; + } protected override void OnLayout(LayoutEventArgs levent) { @@ -294,8 +306,11 @@ int count = 0; - foreach (Control current in base.Controls) + //krzak +// foreach (Control current in base.Controls) + for (int j = 0; j < this.ListedCount(); j++) { + Control current = this.getPaneAtIndex(j); current.ClientSize = rect.Size; current.Location = rect.Location; @@ -701,4 +716,4 @@ } } -} \ No newline at end of file +}