added event for Enter Key
This commit is contained in:
parent
94a8eef558
commit
273113fbca
@ -158,9 +158,7 @@ namespace Volian.Controls.Library
|
|||||||
void MyStepRTB_DoSaveContents(object sender, EventArgs args)
|
void MyStepRTB_DoSaveContents(object sender, EventArgs args)
|
||||||
{
|
{
|
||||||
SaveCurrentAndContents();
|
SaveCurrentAndContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MyStepRTB_VisibleChanged(object sender, EventArgs e)
|
void MyStepRTB_VisibleChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
MyStepRTB.EditMode = MyStepRTB.Visible;
|
MyStepRTB.EditMode = MyStepRTB.Visible;
|
||||||
@ -275,11 +273,25 @@ namespace Volian.Controls.Library
|
|||||||
this.MyFlexGrid.AdjustPastedText += new VlnFlexGridPasteEvent(MyFlexGrid_AdjustPastedText);
|
this.MyFlexGrid.AdjustPastedText += new VlnFlexGridPasteEvent(MyFlexGrid_AdjustPastedText);
|
||||||
this.MyStepRTB.SetMenu += new StepRTBMenuEvent(MyStepRTB_SetMenu);
|
this.MyStepRTB.SetMenu += new StepRTBMenuEvent(MyStepRTB_SetMenu);
|
||||||
this.MyStepRTB.OpenContextMenu += new StepRTBLocationEvent(MyStepRTB_OpenContextMenu);
|
this.MyStepRTB.OpenContextMenu += new StepRTBLocationEvent(MyStepRTB_OpenContextMenu);
|
||||||
|
this.MyFlexGrid.EnterKeyPressed += new VlnFlexGridkeyEvent(MyFlexGrid_EnterKeyPressed);
|
||||||
|
//this.MyStepRTB.EnterKeyPressed += new StepRTBCursorKeysEvent(MyStepRTB_EnterKeyPressed);
|
||||||
// This Resize event has been useful for debugging purposes numerous times
|
// This Resize event has been useful for debugging purposes numerous times
|
||||||
//
|
//
|
||||||
//this.MyStepRTB.Resize += new EventHandler(MyStepRTB_Resize);
|
//this.MyStepRTB.Resize += new EventHandler(MyStepRTB_Resize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//void MyStepRTB_EnterKeyPressed(object sender, KeyEventArgs args)
|
||||||
|
//{
|
||||||
|
// args.Handled = true;
|
||||||
|
// MyStepPanel.MyStepTabPanel.MyStepTabRibbon.ProcessEnterKey();
|
||||||
|
//}
|
||||||
|
|
||||||
|
void MyFlexGrid_EnterKeyPressed(object sender, KeyEventArgs args)
|
||||||
|
{
|
||||||
|
args.Handled = true;
|
||||||
|
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.ProcessEnterKey();
|
||||||
|
}
|
||||||
|
|
||||||
void MyStepRTB_OpenContextMenu(object sender, StepRTBLocationEventArgs args)
|
void MyStepRTB_OpenContextMenu(object sender, StepRTBLocationEventArgs args)
|
||||||
{
|
{
|
||||||
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.OpenContextMenu(args.Location);
|
MyStepPanel.MyStepTabPanel.MyStepTabRibbon.OpenContextMenu(args.Location);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user