Save WindowState - Maximize, Minimize, Normal by user.
Load all at once code to support print. Open Command from the Start (PROMS2010) Menu. Enter key on treeview executes Open. The Treeview was retaining focus after opening procedures or accessory documents. This was fixed. Tab Bar initialized to the full width. Items were not always being displayed after the tree was clicked. The RO and Transition Info tabs are made invisible for accessory documents. The Tags, RO and Transition tabs are made invisible when no doucment is selected. Enter the DSO Framer window when it is created. Enter the Accessory page editor or step editor when a tab is selected. Remember the last selection in a step editor page when you return. Activate one of the remaining tabs when a tab is closed. Embed the pushpin images.
This commit is contained in:
@@ -69,12 +69,46 @@ namespace Volian.Controls.Library
|
||||
container.Add(this);
|
||||
InitializeComponent();
|
||||
this.Click += new EventHandler(DisplayTabItem_Click);
|
||||
//this.GotFocus += new EventHandler(DisplayTabItem_GotFocus);
|
||||
//this.LostFocus += new EventHandler(DisplayTabItem_LostFocus);
|
||||
//this.MouseDown += new System.Windows.Forms.MouseEventHandler(DisplayTabItem_MouseDown);
|
||||
//this.MouseUp += new System.Windows.Forms.MouseEventHandler(DisplayTabItem_MouseUp);
|
||||
if (myItemInfo.MyContent.MyEntry == null)
|
||||
SetupStepTabPanel();
|
||||
else
|
||||
SetupDSOTabPanel();
|
||||
Name = string.Format("DisplayTabItem {0}", myItemInfo.ItemID);
|
||||
}
|
||||
protected override void OnDisplayedChanged()
|
||||
{
|
||||
//Console.WriteLine("=>=>=>=> OnDisplayedChanged");
|
||||
if(_MyStepTabPanel != null)
|
||||
_MyStepTabPanel.MyStepPanel.DisplayItemChanging = true;
|
||||
base.OnDisplayedChanged();
|
||||
if(_MyStepTabPanel != null)
|
||||
_MyStepTabPanel.MyStepPanel.DisplayItemChanging = false;
|
||||
//Console.WriteLine("<=<=<=<= OnDisplayedChanged");
|
||||
}
|
||||
|
||||
//void DisplayTabItem_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
|
||||
//{
|
||||
// Console.WriteLine("DisplayTabItem_MouseUp");
|
||||
//}
|
||||
|
||||
//void DisplayTabItem_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
|
||||
//{
|
||||
// Console.WriteLine("DisplayTabItem_MouseDown");
|
||||
//}
|
||||
|
||||
//void DisplayTabItem_LostFocus(object sender, EventArgs e)
|
||||
//{
|
||||
// Console.WriteLine("DisplayTabItem_LostFocus");
|
||||
//}
|
||||
|
||||
//void DisplayTabItem_GotFocus(object sender, EventArgs e)
|
||||
//{
|
||||
// Console.WriteLine("DisplayTabItem_GotFocus");
|
||||
//}
|
||||
#endregion
|
||||
#region Event Handlers
|
||||
/// <summary>
|
||||
@@ -89,6 +123,7 @@ namespace Volian.Controls.Library
|
||||
if(myTabItem == null)return;
|
||||
StepTabPanel myTabPanel = myTabItem.MyStepTabPanel as StepTabPanel;
|
||||
if(myTabPanel == null) return;
|
||||
if (MyStepTabPanel.SelectedStepItem == null) return;
|
||||
_MyDisplayTabControl.OnItemSelectedChanged(this,new ItemSelectedChangedEventArgs(MyStepTabPanel.SelectedStepItem));
|
||||
}
|
||||
#endregion
|
||||
@@ -111,6 +146,7 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
_MyDisplayTabControl.Controls.Add(_MyStepTabPanel);
|
||||
_MyDisplayTabControl.MyBar.Items.Add(this);
|
||||
_MyDisplayTabControl.MyBar.Width = 300; // This triggers the bar to resize itself
|
||||
//
|
||||
// tabPanel
|
||||
//
|
||||
@@ -148,12 +184,12 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
//Console.WriteLine("Enabled = true {0}", Name);
|
||||
//_MyDisplayTabControl.MyBar.Enabled = true;
|
||||
Console.WriteLine("SelectedDisplayTabItem {0}", Name);
|
||||
//Console.WriteLine("SelectedDisplayTabItem {0}", Name);
|
||||
_MyDisplayTabControl.SelectedDisplayTabItem = this;
|
||||
Console.WriteLine("MyDisplayTabItem {0}", Name);
|
||||
//Console.WriteLine("MyDisplayTabItem {0}", Name);
|
||||
_MyDSOTabPanel.MyDisplayTabItem = this;
|
||||
DSOTabPanel.IgnoreEnter = false;
|
||||
_MyDisplayTabControl.OnItemSelectedChanged(this, new ItemSelectedChangedEventArgs(MyItemInfo));
|
||||
//_MyDisplayTabControl.OnItemSelectedChanged(this, new ItemSelectedChangedEventArgs(MyItemInfo));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
Reference in New Issue
Block a user