|
|
|
@ -35,11 +35,13 @@ public partial class MainForm : Form |
|
|
|
|
this.mSplitter.Panel2.BackColor = Color.White ; |
|
|
|
|
this.mSplitter.BackColor = SystemColors.Control ; |
|
|
|
|
this.mSplitter.SplitterWidth = 2 ; |
|
|
|
|
this.mSplitter.IsSplitterFixed = true ; |
|
|
|
|
this.Controls.Add( mSplitter ) ; |
|
|
|
|
|
|
|
|
|
// initialize the top pane (search) |
|
|
|
|
int margin = 2 ; |
|
|
|
|
this.mSearchUserControl.Size = new Size( 100, mSplitter.Panel1.Size.Height ) ; |
|
|
|
|
this.mSearchUserControl.BackColor = Color.FromArgb( 255, 0xF8, 0xF8, 0xFF ) ; |
|
|
|
|
this.mSearchLabel.Location = new Point( margin, margin ) ; |
|
|
|
|
this.mSearchLabel.Size = new Size( mSearchUserControl.Width - 2*margin, 15 ) ; |
|
|
|
|
this.mSearchLabel.Font = new Font( mSearchLabel.Font, FontStyle.Bold ) ; |
|
|
|
@ -59,11 +61,12 @@ public partial class MainForm : Form |
|
|
|
|
this.mSearchResults.View = Manina.Windows.Forms.View.Gallery ; |
|
|
|
|
this.mSearchResults.SetRenderer( new AppImageListView.AppImageListViewRenderer() ) ; |
|
|
|
|
this.mSearchResults.CacheMode = CacheMode.Continuous ; |
|
|
|
|
this.mSearchResults.Location = new Point( mSearchUserControl.Location.X + mSearchUserControl.Width, margin ) ; |
|
|
|
|
this.mSearchResults.Location = new Point( mSearchUserControl.Location.X + mSearchUserControl.Width, 0 ) ; |
|
|
|
|
Size searchResultsSize = new Size( mSplitter.Width - (mSearchQuery.Location.X + mSearchQuery.Width) - margin - 7, mSplitter.Panel1MinSize ) ; |
|
|
|
|
this.mSearchResults.Size = searchResultsSize ; |
|
|
|
|
this.mSearchResults.BorderStyle = BorderStyle.None ; |
|
|
|
|
this.mSearchResults.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom ; |
|
|
|
|
this.mSearchResults.BackColor = mSearchUserControl.BackColor ; |
|
|
|
|
this.mSplitter.Panel1.Controls.Add( mSearchResults ) ; |
|
|
|
|
this.mSearchResults.Size = searchResultsSize ; // FUDGE! need to do this again :shrug: |
|
|
|
|
|
|
|
|
|