Fixed display of button sub-items when in KeyTips mode
This commit is contained in:
@@ -73,9 +73,9 @@ namespace Volian.Controls.Library
|
||||
break;
|
||||
}
|
||||
//_MyStepRTB.KeyDown += new KeyEventHandler(MyStepRTB_SelectionChanged);
|
||||
_MyStepRTB.KeyUp += new KeyEventHandler(MyStepRTB_SelectionChanged);
|
||||
_MyStepRTB.KeyUp += new KeyEventHandler(_MyStepRTB_KeyUp); //+= new KeyEventHandler(MyStepRTB_SelectionChanged);
|
||||
_MyStepRTB.ModeChange += new StepRTBModeChangeEvent(_MyStepRTB_ModeChange);
|
||||
_MyStepRTB.MouseUp += new MouseEventHandler(MyStepRTB_SelectionChanged);
|
||||
_MyStepRTB.MouseUp += new MouseEventHandler(_MyStepRTB_MouseUp); //+= new MouseEventHandler(MyStepRTB_SelectionChanged);
|
||||
_MyStepRTB.Leave += new EventHandler(MyStepRTB_Leave);
|
||||
_MyStepRTB.LinkChanged += new StepRTBLinkEvent(_MyStepRTB_LinkChanged);
|
||||
// Add symbols into the tab ribbon based on format selection. For now, only add symbols once
|
||||
@@ -98,12 +98,23 @@ namespace Volian.Controls.Library
|
||||
BuildSymbolGallery(sl, galleryContainerSymbolsCM3);
|
||||
}
|
||||
SetButtonAndMenuEnabling(true);
|
||||
SetStepButtonAndMenuEnabling(true);
|
||||
|
||||
_MyLastFormatID = MyItemInfo.ActiveFormat.FormatID;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void _MyStepRTB_MouseUp(object sender, MouseEventArgs e)
|
||||
{
|
||||
SetButtonAndMenuEnabling(false);
|
||||
}
|
||||
|
||||
void _MyStepRTB_KeyUp(object sender, KeyEventArgs e)
|
||||
{
|
||||
SetButtonAndMenuEnabling(false);
|
||||
}
|
||||
|
||||
private void BuildSymbolGallery(SymbolList sl, DevComponents.DotNetBar.GalleryContainer gc)
|
||||
{
|
||||
foreach (Symbol sym in sl)
|
||||
@@ -174,15 +185,16 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
void MyStepRTB_Leave(object sender, EventArgs e)
|
||||
{
|
||||
_MyStepRTB.MouseUp -= new MouseEventHandler(MyStepRTB_SelectionChanged);
|
||||
_MyStepRTB.KeyUp -=new KeyEventHandler(_MyStepRTB_KeyUp);
|
||||
_MyStepRTB.MouseUp -= new MouseEventHandler(_MyStepRTB_MouseUp); //-= new MouseEventHandler(MyStepRTB_SelectionChanged);
|
||||
_MyStepRTB.Leave -= new EventHandler(MyStepRTB_Leave);
|
||||
_MyStepRTB.LinkChanged -= new StepRTBLinkEvent(_MyStepRTB_LinkChanged);
|
||||
}
|
||||
void MyStepRTB_SelectionChanged(object sender, EventArgs e)
|
||||
{
|
||||
//Console.WriteLine(string.Format("StepTabRibbon: In MyStepRTB_SelectionChanged, Selected Text = {0}", MyStepRTB.SelectedText));
|
||||
SetButtonAndMenuEnabling(false);
|
||||
}
|
||||
//void MyStepRTB_SelectionChanged(object sender, EventArgs e)
|
||||
//{
|
||||
// //Console.WriteLine(string.Format("StepTabRibbon: In MyStepRTB_SelectionChanged, Selected Text = {0}", MyStepRTB.SelectedText));
|
||||
// SetButtonAndMenuEnabling(false);
|
||||
//}
|
||||
void btnInsStep_Click(object sender, EventArgs e)
|
||||
{
|
||||
DevComponents.DotNetBar.ButtonItem b = (DevComponents.DotNetBar.ButtonItem)sender;
|
||||
@@ -318,7 +330,7 @@ namespace Volian.Controls.Library
|
||||
btnCMEditTran.Enabled = false;
|
||||
btnCMEditRO.Enabled = false;
|
||||
}
|
||||
SetStepButtonAndMenuEnabling(docontextmenus);
|
||||
//SetStepButtonAndMenuEnabling(docontextmenus);
|
||||
}
|
||||
private void SetStepButtonAndMenuEnabling(bool docontextmenus)
|
||||
{
|
||||
@@ -883,6 +895,7 @@ namespace Volian.Controls.Library
|
||||
MessageBox.Show("Functionality not available.", "Find/Replace");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public enum E_FieldToEdit { StepText, Text, Number };
|
||||
}
|
||||
|
Reference in New Issue
Block a user