This commit is contained in:
2008-06-04 11:34:56 +00:00
parent 663e999037
commit 2963bb5f00
10 changed files with 1675 additions and 6196 deletions

View File

@@ -43,7 +43,7 @@ namespace VEPROMS
Color _CommentTitleBckColor;
StepRTB _MyRTB;
VETreeNode _PrevBookMark = null;
string _PathToROs = @"G:\PROMSDAT\VEHLP\RO\RO.FST";
string _PathToROs = @"G:\VEHLP\RO\RO.FST";
public frmVEPROMS()
{
@@ -91,11 +91,7 @@ namespace VEPROMS
private void ShutDownRibbons()
{
rtabEdit.Visible = false;
rtabHelp.Visible = false;
rtabHome.Visible = false;
rtabTools.Visible = false;
ribbonControl1.Height = 50;
//ribbonControl1.Height = 50;
}
private void frmVEPROMS_Load(object sender, EventArgs e)
@@ -557,34 +553,34 @@ namespace VEPROMS
#endregion
#region Table Insert Sample Code
private void btnInsTable_Click(object sender, EventArgs e)
{
Point loc = btnInsTable.DisplayRectangle.Location;
loc.X += 300;
int top = this.Top + (btnInsTable.Size.Height * 2);
TablePickerDlg(sender, e, loc, top);
}
//private void btnInsTable_Click(object sender, EventArgs e)
//{
// Point loc = btnInsTable.DisplayRectangle.Location;
// loc.X += 300;
// int top = this.Top + (btnInsTable.Size.Height * 2);
// TablePickerDlg(sender, e, loc, top);
//}
private void TablePickerDlg(object sender, EventArgs e, Point loc, int top)
{
Accentra.Controls.TablePicker tp = new Accentra.Controls.TablePicker();
tp.Location = loc;
tp.Top += top;
tp.Show();
while (tp.Visible)
{
Application.DoEvents();
System.Threading.Thread.Sleep(0);
}
// This was used to display a dialog containing a table grid
// using a product called Source Grid - was for demo purposes only
//
//if (!tp.Cancel)
//{
// frmTable newtable = new frmTable(tp.SelectedRows, tp.SelectedColumns);
// newtable.Show();
//}
}
//private void TablePickerDlg(object sender, EventArgs e, Point loc, int top)
//{
// Accentra.Controls.TablePicker tp = new Accentra.Controls.TablePicker();
// tp.Location = loc;
// tp.Top += top;
// tp.Show();
// while (tp.Visible)
// {
// Application.DoEvents();
// System.Threading.Thread.Sleep(0);
// }
// // This was used to display a dialog containing a table grid
// // using a product called Source Grid - was for demo purposes only
// //
// //if (!tp.Cancel)
// //{
// // frmTable newtable = new frmTable(tp.SelectedRows, tp.SelectedColumns);
// // newtable.Show();
// //}
//}
#endregion
#region Edit/View Modes
/// <summary>
@@ -924,38 +920,7 @@ namespace VEPROMS
// }
//}
#endregion
#region Font
/// <summary>
/// Bold button on the ribbon
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnBold_Click(object sender, EventArgs e)
{
btnBold.Checked = !btnBold.Checked;
}
/// <summary>
/// Italics button on the ribbon
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnItalics_Click(object sender, EventArgs e)
{
btnItalics.Checked = !btnItalics.Checked;
}
/// <summary>
/// Underline button on the ribbon
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnUline_Click(object sender, EventArgs e)
{
btnUline.Checked = !btnUline.Checked;
}
#endregion
#region Find/Replace and Search
/// <summary>