This commit is contained in:
@@ -47,6 +47,18 @@ namespace Volian.Controls.Library
|
||||
|
||||
private DevComponents.DotNetBar.ButtonItem _DefaultContextMenu;
|
||||
|
||||
public void ClearContextMenu()
|
||||
{
|
||||
_ContextMenuBar.SetContextMenuEx(_MyStepRTB, null);
|
||||
}
|
||||
public void SetContextMenu()
|
||||
{
|
||||
_ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMRtfEdit);
|
||||
}
|
||||
public void OpenContextMenu(Point loc)
|
||||
{
|
||||
btnCMRtfEdit.Popup(loc);
|
||||
}
|
||||
private int _MyLastFormatID = -1;
|
||||
private StepRTB _MyStepRTB;
|
||||
public StepRTB MyStepRTB
|
||||
@@ -292,6 +304,7 @@ namespace Volian.Controls.Library
|
||||
btnCMSymbol.Enabled = btnSymbols.Enabled = setting;
|
||||
btnIndent.Enabled = setting;
|
||||
btnDelelete.Enabled = btnDelStep.Enabled = setting;
|
||||
btnSpell.Enabled = setting;
|
||||
}
|
||||
private void SetButtonAndMenuEnabling(bool docontextmenus)
|
||||
{
|
||||
@@ -875,6 +888,7 @@ namespace Volian.Controls.Library
|
||||
DialogResult result = MessageBox.Show(msg, "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
|
||||
if (!si.IsStepSection)
|
||||
{
|
||||
WordSectionEventArgs args = new WordSectionEventArgs(si);
|
||||
@@ -965,7 +979,9 @@ namespace Volian.Controls.Library
|
||||
|
||||
private void btnSpell_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("Functionality not available.", "Spell Check");
|
||||
//MessageBox.Show("Functionality not available.", "Spell Check");
|
||||
StepPanelTabDisplayEventArgs args = new StepPanelTabDisplayEventArgs("SpellChecker");
|
||||
MyStepItem.MyStepPanel.OnTabDisplay(sender, args);
|
||||
}
|
||||
//private FindReplace dlgFindReplace = null;
|
||||
private void btnFindRplDlg_Click(object sender, EventArgs e)
|
||||
@@ -1161,6 +1177,7 @@ namespace Volian.Controls.Library
|
||||
if (MyStepItem.MyItemInfo.ItemID != oldStepItem.MyItemInfo.ItemID) oldStepItem.Dispose();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public enum E_FieldToEdit { StepText, Text, Number };
|
||||
}
|
||||
|
Reference in New Issue
Block a user