Component layout and appearance configuration

Property settings for use with the dtrt.NavBarWin - button text replaced with other arrows.
Code version Feb 23, 2004, Nbw007 layout

Screenshot Nbw007
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.

Note that this form's code page must be saved as a unicode file:
select File menu - select Save Form as... submenu - click on the arrow on the Save button to activate the drop down list - select Save with Encoding - click Yes on next popup window - select Unicode (UTF-8 with signature).

VB Code:
   '------------- START code declaration for a Dtrt.NavBarWin object -------------
   '
   Me.NavBarWin1.NavBarButtons = New Dtrt.NavBar.NavBarButtons("(Fi,1,1),(Pi,1,2),(Pr,1,3),(Tx,1,4),(Ne,1,6),(Ni,1,7),(La,1,8);Horizontal")
   Me.NavBarWin1.ButtonFirst.Font = New System.Drawing.Font("Webdings", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(2, Byte))
   Me.NavBarWin1.ButtonFirst.Location = New System.Drawing.Point(3, 3)
   Me.NavBarWin1.ButtonFirst.Text = "9"
   Me.NavBarWin1.ButtonFirst.Visible = True
   Me.NavBarWin1.ButtonLast.Font = New System.Drawing.Font("Wingdings", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(2, Byte))
   Me.NavBarWin1.ButtonLast.Location = New System.Drawing.Point(211, 3)
   Me.NavBarWin1.ButtonLast.TabIndex = 6
   Me.NavBarWin1.ButtonLast.Text = "è"
   Me.NavBarWin1.ButtonLast.Visible = True
   Me.NavBarWin1.ButtonNext.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
   Me.NavBarWin1.ButtonNext.Location = New System.Drawing.Point(157, 3)
   Me.NavBarWin1.ButtonNext.Size = New System.Drawing.Size(24, 20)
   Me.NavBarWin1.ButtonNext.TabIndex = 4
   Me.NavBarWin1.ButtonNext.Text = "►"
   Me.NavBarWin1.ButtonNext.Visible = True
   Me.NavBarWin1.ButtonNextIncr.Font = New System.Drawing.Font("MS Mincho", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
   Me.NavBarWin1.ButtonNextIncr.Location = New System.Drawing.Point(182, 3)
   Me.NavBarWin1.ButtonNextIncr.TabIndex = 5
   Me.NavBarWin1.ButtonNextIncr.Text = ""
   Me.NavBarWin1.ButtonNextIncr.Visible = True
   Me.NavBarWin1.ButtonPrevious.CausesValidation = False
   Me.NavBarWin1.ButtonPrevious.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
   Me.NavBarWin1.ButtonPrevious.Location = New System.Drawing.Point(61, 3)
   Me.NavBarWin1.ButtonPrevious.Size = New System.Drawing.Size(24, 20)
   Me.NavBarWin1.ButtonPrevious.TabIndex = 2
   Me.NavBarWin1.ButtonPrevious.Text = "◄"
   Me.NavBarWin1.ButtonPrevious.Visible = True
   Me.NavBarWin1.ButtonPreviousIncr.Font = New System.Drawing.Font("Wingdings", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(2, Byte))
   Me.NavBarWin1.ButtonPreviousIncr.Location = New System.Drawing.Point(32, 3)
   Me.NavBarWin1.ButtonPreviousIncr.TabIndex = 1
   Me.NavBarWin1.ButtonPreviousIncr.Text = "ï"
   Me.NavBarWin1.ButtonPreviousIncr.Visible = True
   '
   '------------- END code declaration for a Dtrt.NavBarWin object -------------
C# Code:
   // ------------- START code declaration for a Dtrt.NavBarWin object -------------
   //
   this.navBarWin1.NavBarButtons = new Dtrt.NavBar.NavBarButtons("(Fi,1,1),(Pi,1,2),(Pr,1,3),(Tx,1,4),(Ne,1,6),(Ni,1,7),(La,1,8);Horizontal");
   this.navBarWin1.ButtonFirst.Font = new System.Drawing.Font("Webdings", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(2)));
   this.navBarWin1.ButtonFirst.Location = new System.Drawing.Point(3, 3);
   this.navBarWin1.ButtonFirst.Text = "9";
   this.navBarWin1.ButtonFirst.Visible = true;
   this.navBarWin1.ButtonLast.Font = new System.Drawing.Font("Wingdings", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(2)));
   this.navBarWin1.ButtonLast.Location = new System.Drawing.Point(211, 3);
   this.navBarWin1.ButtonLast.TabIndex = 6;
   this.navBarWin1.ButtonLast.Text = "è";
   this.navBarWin1.ButtonLast.Visible = true;
   this.navBarWin1.ButtonNext.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
   this.navBarWin1.ButtonNext.Location = new System.Drawing.Point(157, 3);
   this.navBarWin1.ButtonNext.Size = new System.Drawing.Size(24, 20);
   this.navBarWin1.ButtonNext.TabIndex = 4;
   this.navBarWin1.ButtonNext.Text = "►";
   this.navBarWin1.ButtonNext.Visible = true;
   this.navBarWin1.ButtonNextIncr.Font = new System.Drawing.Font("MS Mincho", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
   this.navBarWin1.ButtonNextIncr.Location = new System.Drawing.Point(182, 3);
   this.navBarWin1.ButtonNextIncr.TabIndex = 5;
   this.navBarWin1.ButtonNextIncr.Text = "";
   this.navBarWin1.ButtonNextIncr.Visible = true;
   this.navBarWin1.ButtonPrevious.CausesValidation = false;
   this.navBarWin1.ButtonPrevious.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
   this.navBarWin1.ButtonPrevious.Location = new System.Drawing.Point(61, 3);
   this.navBarWin1.ButtonPrevious.Size = new System.Drawing.Size(24, 20);
   this.navBarWin1.ButtonPrevious.TabIndex = 2;
   this.navBarWin1.ButtonPrevious.Text = "◄";
   this.navBarWin1.ButtonPrevious.Visible = true;
   this.navBarWin1.ButtonPreviousIncr.Font = new System.Drawing.Font("Wingdings", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(2)));
   this.navBarWin1.ButtonPreviousIncr.Location = new System.Drawing.Point(32, 3);
   this.navBarWin1.ButtonPreviousIncr.TabIndex = 1;
   this.navBarWin1.ButtonPreviousIncr.Text = "ï";
   this.navBarWin1.ButtonPreviousIncr.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