Added logic and events to allow keystrokes to toggle change bars, continuous action summary, and placekeeper check boxes. Also allow the update of the pagebreak checkbox.
This commit is contained in:
parent
32fb2ae1a7
commit
c06e3901ba
@ -653,7 +653,32 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
OpenAnnotations();
|
||||
}
|
||||
void _MyStepRTB_InsertPgBrk(object sender, System.EventArgs args)
|
||||
void _MyStepRTB_ToggleChangeBar(object sender, System.EventArgs args) // used with shortcut key <Alt><F2>
|
||||
{
|
||||
ToggleChangeBar();
|
||||
}
|
||||
void _MyStepRTB_ToggleContinuousActionSummary(object sender, System.EventArgs args) // used with shortcut key <Shift><F7>
|
||||
{
|
||||
ToggleContinuousActionSummary();
|
||||
}
|
||||
void _MyStepRTB_TogglePlaceKeeper(object sender, System.EventArgs args) // used with shortcut key <Ctrl><F7>
|
||||
{
|
||||
TogglePlaceKeeper();
|
||||
}
|
||||
void _MyStepRTB_TogglePlaceKeeperContAct(object sender, System.EventArgs args) // used with shortcut key <Shift><Ctrl><F7>
|
||||
{
|
||||
TogglePlaceKeeperContAct();
|
||||
}
|
||||
void _MyStepRTB_ToggleSuperScript(object sender, System.EventArgs args) // used with shortcut key <Shift><Ctrl><=>
|
||||
{
|
||||
ToggleSuperScript();
|
||||
}
|
||||
void _MyStepRTB_ToggleSubScript(object sender, System.EventArgs args) // used with shortcut key <Ctrl><=>
|
||||
{
|
||||
ToggleSubScript();
|
||||
}
|
||||
|
||||
void _MyStepRTB_InsertPgBrk(object sender, System.EventArgs args) // used with shortcut key <Ctrl><Enter>
|
||||
{
|
||||
InsertPgBrk();
|
||||
}
|
||||
@ -698,17 +723,22 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public override void SaveContents()
|
||||
{
|
||||
MyStepRTB.Visible = false;
|
||||
while (MyStepRTB.Text.Contains("\\"))
|
||||
if (MyStepRTB.Text.Contains("\\"))
|
||||
{
|
||||
int loc = MyStepRTB.Text.IndexOf("\\");
|
||||
MyStepRTB.SelectionStart = loc;
|
||||
MyStepRTB.SelectionLength = 1;
|
||||
MyStepRTB.SelectedText = "<BackSlash>";
|
||||
}
|
||||
SaveText();
|
||||
MyStepRTB.Visible = false;
|
||||
while (MyStepRTB.Text.Contains("\\"))
|
||||
{
|
||||
int loc = MyStepRTB.Text.IndexOf("\\");
|
||||
MyStepRTB.SelectionStart = loc;
|
||||
MyStepRTB.SelectionLength = 1;
|
||||
MyStepRTB.SelectedText = "<BackSlash>";
|
||||
}
|
||||
SaveText();
|
||||
|
||||
MyStepRTB.Visible = true;
|
||||
MyStepRTB.Visible = true;
|
||||
}
|
||||
else
|
||||
SaveText();
|
||||
SaveConfig(); // This may be redundant
|
||||
}
|
||||
public void SaveText()
|
||||
|
BIN
PROMS/Volian.Controls.Library/RTBItem.designer.cs
generated
BIN
PROMS/Volian.Controls.Library/RTBItem.designer.cs
generated
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user