Component layout and appearance configuration

Property settings for use with the dtrt.NavBarWin - showing two configurations: a very wide layout which has two user buttons in aquamarine and a somewhat more compressed version, also with two user buttons.
Code version March 2, 2004, Nbw006 layout

Screenshot Nbw006
Instructions for use:
1. Read the terms of use at bottom of page. If you do not agree, do not use this code!
2. Make a backup copy of the project or solution you want to change if you want to configure an existing dtrt.NavBarWin.
3. Prepare a windows form and drag a dtrt.NavBarWin onto it.
4. Replace 'NavBarWin1' in the code below with the name you gave the dtrt.NavBarWin component when you dragged it on your windows form.
5. VB: copy the VB code below to the InitializeComponent sub,
   C#: copy the C# code below to the InitializeComponent method,
paste the code over the existing corresponding entries, do not delete existing entries.
6. Return to the designer and view the results, adjust more properties to your liking, then save the settings.
VB Code upper NavBarWin:
   '------------- START code declaration for a Dtrt.NavBarWin object -------------
   '
   Me.NavBarWin1.NavBarButtons = New Dtrt.NavBar.NavBarButtons("(U1,1,1),(s1,1,2),(Fi,1,3),(Pi,1,4),(Pr,1,5),(Tx,1,6),(Ne,1,8),(Ni,1,9),(La,1,10)" & _
   ",(s2,1,11),(U2,1,12);Horizontal")
   Me.NavBarWin1.ButtonFirst.Location = New System.Drawing.Point(71, 3)
   Me.NavBarWin1.ButtonFirst.TabIndex = 2
   Me.NavBarWin1.ButtonFirst.Text = "|<<"
   Me.NavBarWin1.ButtonFirst.Visible = True
   Me.NavBarWin1.ButtonLast.Location = New System.Drawing.Point(279, 3)
   Me.NavBarWin1.ButtonLast.TabIndex = 8
   Me.NavBarWin1.ButtonLast.Text = ">>|"
   Me.NavBarWin1.ButtonLast.Visible = True
   Me.NavBarWin1.ButtonNext.Location = New System.Drawing.Point(225, 3)
   Me.NavBarWin1.ButtonNext.Size = New System.Drawing.Size(24, 20)
   Me.NavBarWin1.ButtonNext.TabIndex = 6
   Me.NavBarWin1.ButtonNext.Text = ">"
   Me.NavBarWin1.ButtonNext.Visible = True
   Me.NavBarWin1.ButtonNextIncr.Location = New System.Drawing.Point(250, 3)
   Me.NavBarWin1.ButtonNextIncr.TabIndex = 7
   Me.NavBarWin1.ButtonNextIncr.Text = ">>"
   Me.NavBarWin1.ButtonNextIncr.Visible = True
   Me.NavBarWin1.ButtonPrevious.CausesValidation = False
   Me.NavBarWin1.ButtonPrevious.Location = New System.Drawing.Point(129, 3)
   Me.NavBarWin1.ButtonPrevious.Size = New System.Drawing.Size(24, 20)
   Me.NavBarWin1.ButtonPrevious.TabIndex = 4
   Me.NavBarWin1.ButtonPrevious.Text = "<"
   Me.NavBarWin1.ButtonPrevious.Visible = True
   Me.NavBarWin1.ButtonPreviousIncr.Location = New System.Drawing.Point(100, 3)
   Me.NavBarWin1.ButtonPreviousIncr.TabIndex = 3
   Me.NavBarWin1.ButtonPreviousIncr.Text = "<<"
   Me.NavBarWin1.ButtonPreviousIncr.Visible = True
   Me.NavBarWin1.ButtonUser1.BackColor = System.Drawing.Color.Aquamarine
   Me.NavBarWin1.ButtonUser1.Location = New System.Drawing.Point(3, 3)
   Me.NavBarWin1.ButtonUser1.Size = New System.Drawing.Size(50, 20)
   Me.NavBarWin1.ButtonUser1.Text = "Special"
   Me.NavBarWin1.ButtonUser1.Visible = True
   Me.NavBarWin1.ButtonUser2.BackColor = System.Drawing.Color.Aquamarine
   Me.NavBarWin1.ButtonUser2.Location = New System.Drawing.Point(325, 3)
   Me.NavBarWin1.ButtonUser2.Size = New System.Drawing.Size(50, 20)
   Me.NavBarWin1.ButtonUser2.TabIndex = 10
   Me.NavBarWin1.ButtonUser2.Text = "Special"
   Me.NavBarWin1.ButtonUser2.Visible = True
   Me.NavBarWin1.Separator1.Visible = True
   Me.NavBarWin1.Separator1.Location = New System.Drawing.Point(54, 3)
   Me.NavBarWin1.Separator1.TabIndex = 1
   Me.NavBarWin1.Separator1.TabStop = False
   Me.NavBarWin1.Separator1.Text = ""
   Me.NavBarWin1.Separator2.Visible = True
   Me.NavBarWin1.Separator2.Location = New System.Drawing.Point(308, 3)
   Me.NavBarWin1.Separator2.TabIndex = 9
   Me.NavBarWin1.Separator2.TabStop = False
   Me.NavBarWin1.Separator2.Text = ""
   Me.NavBarWin1.Size = New System.Drawing.Size(386, 32)
   Me.NavBarWin1.TextDisplay.AllowDrop = True
   Me.NavBarWin1.TextDisplay.BackColor = System.Drawing.SystemColors.Window
   Me.NavBarWin1.TextDisplay.ForeColor = System.Drawing.SystemColors.WindowText
   Me.NavBarWin1.TextDisplay.Location = New System.Drawing.Point(156, 3)
   Me.NavBarWin1.TextDisplay.TabIndex = 5
   Me.NavBarWin1.TextDisplay.Text = "0 of 0"
   Me.NavBarWin1.TextDisplay.ToolTip.ShowText = Dtrt.NavBar.ShowText.NavBarText
   Me.NavBarWin1.TextDisplay.Visible = True
   '
   '------------- END code declaration for a Dtrt.NavBarWin object -------------
C# Code upper NavBarWin:
   // ------------- START code declaration for a Dtrt.NavBarWin object -------------
   //
   this.navBarWin1.NavBarButtons = new Dtrt.NavBar.NavBarButtons("(U1,1,1),(s1,1,2),(Fi,1,3),(Pi,1,4),(Pr,1,5),(Tx,1,6),(Ne,1,8),(Ni,1,9),(La,1,10)" +
      ",(s2,1,11),(U2,1,12);Horizontal");
   this.navBarWin1.ButtonFirst.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin1.ButtonFirst.Location = new System.Drawing.Point(71, 3);
   this.navBarWin1.ButtonFirst.TabIndex = 2;
   this.navBarWin1.ButtonFirst.Text = "|<<";
   this.navBarWin1.ButtonFirst.Visible = true;
   this.navBarWin1.ButtonLast.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin1.ButtonLast.Location = new System.Drawing.Point(279, 3);
   this.navBarWin1.ButtonLast.TabIndex = 8;
   this.navBarWin1.ButtonLast.Text = ">>|";
   this.navBarWin1.ButtonLast.Visible = true;
   this.navBarWin1.ButtonNext.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin1.ButtonNext.Location = new System.Drawing.Point(225, 3);
   this.navBarWin1.ButtonNext.Size = new System.Drawing.Size(24, 20);
   this.navBarWin1.ButtonNext.TabIndex = 6;
   this.navBarWin1.ButtonNext.Text = ">";
   this.navBarWin1.ButtonNext.Visible = true;
   this.navBarWin1.ButtonNextIncr.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin1.ButtonNextIncr.Location = new System.Drawing.Point(250, 3);
   this.navBarWin1.ButtonNextIncr.TabIndex = 7;
   this.navBarWin1.ButtonNextIncr.Text = ">>";
   this.navBarWin1.ButtonNextIncr.Visible = true;
   this.navBarWin1.ButtonPrevious.CausesValidation = false;
   this.navBarWin1.ButtonPrevious.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin1.ButtonPrevious.Location = new System.Drawing.Point(129, 3);
   this.navBarWin1.ButtonPrevious.Size = new System.Drawing.Size(24, 20);
   this.navBarWin1.ButtonPrevious.TabIndex = 4;
   this.navBarWin1.ButtonPrevious.Text = "<";
   this.navBarWin1.ButtonPrevious.Visible = true;
   this.navBarWin1.ButtonPreviousIncr.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin1.ButtonPreviousIncr.Location = new System.Drawing.Point(100, 3);
   this.navBarWin1.ButtonPreviousIncr.TabIndex = 3;
   this.navBarWin1.ButtonPreviousIncr.Text = "<<";
   this.navBarWin1.ButtonPreviousIncr.Visible = true;
   this.navBarWin1.ButtonUser1.BackColor = System.Drawing.Color.Aquamarine;
   this.navBarWin1.ButtonUser1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin1.ButtonUser1.Location = new System.Drawing.Point(3, 3);
   this.navBarWin1.ButtonUser1.Size = new System.Drawing.Size(50, 20);
   this.navBarWin1.ButtonUser1.Text = "Special";
   this.navBarWin1.ButtonUser1.Visible = true;
   this.navBarWin1.ButtonUser2.BackColor = System.Drawing.Color.Aquamarine;
   this.navBarWin1.ButtonUser2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin1.ButtonUser2.Location = new System.Drawing.Point(325, 3);
   this.navBarWin1.ButtonUser2.Size = new System.Drawing.Size(50, 20);
   this.navBarWin1.ButtonUser2.TabIndex = 10;
   this.navBarWin1.ButtonUser2.Text = "Special";
   this.navBarWin1.ButtonUser2.Visible = true;
   this.navBarWin1.Separator1.Visible = true;
   this.navBarWin1.Separator1.Location = new System.Drawing.Point(54, 3);
   this.navBarWin1.Separator1.TabIndex = 1;
   this.navBarWin1.Separator1.TabStop = false;
   this.navBarWin1.Separator1.Text = "";
   this.navBarWin1.Separator2.Visible = true;
   this.navBarWin1.Separator2.Location = new System.Drawing.Point(308, 3);
   this.navBarWin1.Separator2.TabIndex = 9;
   this.navBarWin1.Separator2.TabStop = false;
   this.navBarWin1.Separator2.Text = "";
   this.navBarWin1.Size = new System.Drawing.Size(386, 32);
   this.navBarWin1.TextDisplay.AllowDrop = true;
   this.navBarWin1.TextDisplay.BackColor = System.Drawing.SystemColors.Window;
   this.navBarWin1.TextDisplay.ForeColor = System.Drawing.SystemColors.WindowText;
   this.navBarWin1.TextDisplay.Location = new System.Drawing.Point(156, 3);
   this.navBarWin1.TextDisplay.TabIndex = 5;
   this.navBarWin1.TextDisplay.Text = "0 of 0";
   this.navBarWin1.TextDisplay.ToolTip.ShowText = Dtrt.Common.ShowText.NavBarText;
   this.navBarWin1.TextDisplay.Visible = true;
   //
   // ------------- END code declaration for a Dtrt.NavBarWin object -------------
VB Code lower (second) NavBarWin:
   '------------- START code declaration for a Dtrt.NavBarWin object -------------
   '
   Me.NavBarWin2.NavBarButtons = New Dtrt.NavBar.NavBarButtons("(Fi,1,1),(Pr,1,2),(Tx,1,3),(Ne,1,5),(La,1,6),(U1,2,1),(Pi,2,2),(s1,2,3),(s2,2,4)," & _
   "(Ni,2,5),(U2,2,6);Customized")
   Me.NavBarWin2.ButtonFirst.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.NavBarWin2.ButtonFirst.Location = New System.Drawing.Point(3, 3)
   Me.NavBarWin2.ButtonFirst.Text = "|<<"
   Me.NavBarWin2.ButtonFirst.Visible = True
   Me.NavBarWin2.ButtonLast.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.NavBarWin2.ButtonLast.Location = New System.Drawing.Point(153, 3)
   Me.NavBarWin2.ButtonLast.TabIndex = 4
   Me.NavBarWin2.ButtonLast.Text = ">>|"
   Me.NavBarWin2.ButtonLast.Visible = True
   Me.NavBarWin2.ButtonNext.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.NavBarWin2.ButtonNext.Location = New System.Drawing.Point(128, 3)
   Me.NavBarWin2.ButtonNext.Size = New System.Drawing.Size(24, 20)
   Me.NavBarWin2.ButtonNext.TabIndex = 3
   Me.NavBarWin2.ButtonNext.Text = ">"
   Me.NavBarWin2.ButtonNext.Visible = True
   Me.NavBarWin2.ButtonNextIncr.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.NavBarWin2.ButtonNextIncr.Location = New System.Drawing.Point(124, 25)
   Me.NavBarWin2.ButtonNextIncr.TabIndex = 9
   Me.NavBarWin2.ButtonNextIncr.Text = ">>"
   Me.NavBarWin2.ButtonNextIncr.Visible = True
   Me.NavBarWin2.ButtonPrevious.CausesValidation = False
   Me.NavBarWin2.ButtonPrevious.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.NavBarWin2.ButtonPrevious.Location = New System.Drawing.Point(32, 3)
   Me.NavBarWin2.ButtonPrevious.Size = New System.Drawing.Size(24, 20)
   Me.NavBarWin2.ButtonPrevious.TabIndex = 1
   Me.NavBarWin2.ButtonPrevious.Text = "<"
   Me.NavBarWin2.ButtonPrevious.Visible = True
   Me.NavBarWin2.ButtonPreviousIncr.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.NavBarWin2.ButtonPreviousIncr.Location = New System.Drawing.Point(33, 25)
   Me.NavBarWin2.ButtonPreviousIncr.TabIndex = 6
   Me.NavBarWin2.ButtonPreviousIncr.Text = "<<"
   Me.NavBarWin2.ButtonPreviousIncr.Visible = True
   Me.NavBarWin2.ButtonUser1.BackColor = System.Drawing.Color.WhiteSmoke
   Me.NavBarWin2.ButtonUser1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.NavBarWin2.ButtonUser1.Location = New System.Drawing.Point(4, 25)
   Me.NavBarWin2.ButtonUser1.TabIndex = 5
   Me.NavBarWin2.ButtonUser1.Text = "U1"
   Me.NavBarWin2.ButtonUser1.Visible = True
   Me.NavBarWin2.ButtonUser2.BackColor = System.Drawing.Color.WhiteSmoke
   Me.NavBarWin2.ButtonUser2.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.NavBarWin2.ButtonUser2.Location = New System.Drawing.Point(153, 25)
   Me.NavBarWin2.ButtonUser2.TabIndex = 10
   Me.NavBarWin2.ButtonUser2.Text = "U2"
   Me.NavBarWin2.ButtonUser2.Visible = True
   Me.NavBarWin2.LayoutMode = Dtrt.NavBar.LayoutMode.Manual
   Me.NavBarWin2.Separator1.Visible = True
   Me.NavBarWin2.Separator1.Location = New System.Drawing.Point(62, 25)
   Me.NavBarWin2.Separator1.Size = New System.Drawing.Size(42, 20)
   Me.NavBarWin2.Separator1.TabIndex = 7
   Me.NavBarWin2.Separator1.TabStop = False
   Me.NavBarWin2.Separator1.Text = ""
   Me.NavBarWin2.Separator2.Visible = True
   Me.NavBarWin2.Separator2.Location = New System.Drawing.Point(105, 25)
   Me.NavBarWin2.Separator2.TabIndex = 8
   Me.NavBarWin2.Separator2.TabStop = False
   Me.NavBarWin2.Separator2.Text = ""
   Me.NavBarWin2.Size = New System.Drawing.Size(192, 54)
   Me.NavBarWin2.TextDisplay.AllowDrop = True
   Me.NavBarWin2.TextDisplay.BackColor = System.Drawing.SystemColors.Window
   Me.NavBarWin2.TextDisplay.ForeColor = System.Drawing.SystemColors.WindowText
   Me.NavBarWin2.TextDisplay.Location = New System.Drawing.Point(59, 3)
   Me.NavBarWin2.TextDisplay.TabIndex = 2
   Me.NavBarWin2.TextDisplay.Text = "0 of 0"
   Me.NavBarWin2.TextDisplay.ToolTip.ShowText = Dtrt.NavBar.ShowText.NavBarText
   Me.NavBarWin2.TextDisplay.Visible = True
   '
   '------------- END code declaration for a Dtrt.NavBarWin object -------------
 
C# Code lower (second) NavBarWin:
   // ------------- START code declaration for a Dtrt.NavBarWin object -------------
   //
   this.navBarWin2.NavBarButtons = new Dtrt.NavBar.NavBarButtons("(Fi,1,1),(Pr,1,2),(Tx,1,3),(Ne,1,5),(La,1,6),(U1,2,1),(Pi,2,2),(s1,2,3),(s2,2,4)," +
      "(Ni,2,5),(U2,2,6);Customized");
   this.navBarWin2.ButtonFirst.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin2.ButtonFirst.Location = new System.Drawing.Point(3, 3);
   this.navBarWin2.ButtonFirst.Text = "|<<";
   this.navBarWin2.ButtonFirst.Visible = true;
   this.navBarWin2.ButtonLast.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin2.ButtonLast.Location = new System.Drawing.Point(153, 3);
   this.navBarWin2.ButtonLast.TabIndex = 4;
   this.navBarWin2.ButtonLast.Text = ">>|";
   this.navBarWin2.ButtonLast.Visible = true;
   this.navBarWin2.ButtonNext.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin2.ButtonNext.Location = new System.Drawing.Point(128, 3);
   this.navBarWin2.ButtonNext.Size = new System.Drawing.Size(24, 20);
   this.navBarWin2.ButtonNext.TabIndex = 3;
   this.navBarWin2.ButtonNext.Text = ">";
   this.navBarWin2.ButtonNext.Visible = true;
   this.navBarWin2.ButtonNextIncr.EnableLock = true;
   this.navBarWin2.ButtonNextIncr.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin2.ButtonNextIncr.Location = new System.Drawing.Point(111, 25);
   this.navBarWin2.ButtonNextIncr.TabIndex = 9;
   this.navBarWin2.ButtonNextIncr.Text = ">>";
   this.navBarWin2.ButtonNextIncr.Visible = true;
   this.navBarWin2.ButtonPrevious.CausesValidation = false;
   this.navBarWin2.ButtonPrevious.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin2.ButtonPrevious.Location = new System.Drawing.Point(32, 3);
   this.navBarWin2.ButtonPrevious.Size = new System.Drawing.Size(24, 20);
   this.navBarWin2.ButtonPrevious.TabIndex = 1;
   this.navBarWin2.ButtonPrevious.Text = "<";
   this.navBarWin2.ButtonPrevious.Visible = true;
   this.navBarWin2.ButtonPreviousIncr.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin2.ButtonPreviousIncr.Location = new System.Drawing.Point(48, 25);
   this.navBarWin2.ButtonPreviousIncr.TabIndex = 6;
   this.navBarWin2.ButtonPreviousIncr.Text = "<<";
   this.navBarWin2.ButtonPreviousIncr.Visible = true;
   this.navBarWin2.ButtonUser1.BackColor = System.Drawing.Color.WhiteSmoke;
   this.navBarWin2.ButtonUser1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin2.ButtonUser1.Location = new System.Drawing.Point(19, 25);
   this.navBarWin2.ButtonUser1.TabIndex = 5;
   this.navBarWin2.ButtonUser1.Text = "U1";
   this.navBarWin2.ButtonUser1.Visible = true;
   this.navBarWin2.ButtonUser2.BackColor = System.Drawing.Color.WhiteSmoke;
   this.navBarWin2.ButtonUser2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
   this.navBarWin2.ButtonUser2.Location = new System.Drawing.Point(140, 25);
   this.navBarWin2.ButtonUser2.TabIndex = 10;
   this.navBarWin2.ButtonUser2.Text = "U2";
   this.navBarWin2.ButtonUser2.Visible = true;
   this.navBarWin2.LayoutMode = Dtrt.NavBar.LayoutMode.Manual;
   this.navBarWin2.Separator1.Visible = true;
   this.navBarWin2.Separator1.Location = new System.Drawing.Point(77, 25);
   this.navBarWin2.Separator1.TabIndex = 7;
   this.navBarWin2.Separator1.TabStop = false;
   this.navBarWin2.Separator1.Text = "";
   this.navBarWin2.Separator2.Visible = true;
   this.navBarWin2.Separator2.Location = new System.Drawing.Point(94, 25);
   this.navBarWin2.Separator2.TabIndex = 8;
   this.navBarWin2.Separator2.TabStop = false;
   this.navBarWin2.Separator2.Text = "";
   this.navBarWin2.Size = new System.Drawing.Size(192, 54);
   this.navBarWin2.TabIndex = 0;
   this.navBarWin2.TextDisplay.AllowDrop = true;
   this.navBarWin2.TextDisplay.BackColor = System.Drawing.SystemColors.Window;
   this.navBarWin2.TextDisplay.ForeColor = System.Drawing.SystemColors.WindowText;
   this.navBarWin2.TextDisplay.Location = new System.Drawing.Point(59, 3);
   this.navBarWin2.TextDisplay.TabIndex = 2;
   this.navBarWin2.TextDisplay.Text = "0 of 0";
   this.navBarWin2.TextDisplay.ToolTip.ShowText = Dtrt.NavBar.ShowText.NavBarText;
   this.navBarWin2.TextDisplay.Visible = true;
   //
   // ------------- END code declaration for a Dtrt.NavBarWin object -------------
Terms of use:

· The code above and the instructions for use are supplied free of charge to any licensed dtrt.NavBarWin user
. The code can only be found and downloaded on the dtrt website, it is not distributed with the control.
· You may adapt the code to your liking, integrate it into your application and deploy it with your dtrt.NavBarWin.
· You may not sell or distribute the code. You must ask for copyrights before you publish the code.
· The author(s) and the dtrt company take no liability whatsoever for the code. You use it entirely at your own risk.
· Dtrt recommends setting up a small application with which you can develop and test the navigation bar’s configuration settings. When you are satisfied with the results, copy the configuration code from the test application to your real application.

www.dtrt.com