The mouse scroll wheel was not working when in an StepRTB
This commit is contained in:
parent
89cc2d429e
commit
eeef43e48e
@ -303,11 +303,11 @@ namespace Volian.Controls.Library
|
||||
SetUp();
|
||||
AddEventHandlers();
|
||||
}
|
||||
//protected override void OnMouseWheel(MouseEventArgs e)
|
||||
//{
|
||||
// _MyStepItem.MyStepPanel.MouseWheel(e);
|
||||
// //base.OnMouseWheel(e);
|
||||
//}
|
||||
protected override void OnMouseWheel(MouseEventArgs e)
|
||||
{
|
||||
_MyStepItem.MyStepPanel.MouseWheel(e);
|
||||
//base.OnMouseWheel(e);
|
||||
}
|
||||
private void RemoveEventHandlers()
|
||||
{
|
||||
ContentsResized -= new ContentsResizedEventHandler(StepRTB_ContentsResized);
|
||||
@ -566,7 +566,7 @@ namespace Volian.Controls.Library
|
||||
_SelectedRtfSB.Append(@"{\f1\fnil\fcharset0 VESymbFix;}}{\colortbl ;\red255\green0\blue0;}");
|
||||
_SelectedRtfSB.Append("\r\n");
|
||||
// use styles to construct rtf commands to insert into next line (where \b, etc is)
|
||||
_SelectedRtfSB.Append(@"\viewkind4\uc1\pard\sl-240\slmult0" + sbbeg.ToString() + @"\fs" + this.Font.SizeInPoints * 2 + @" "); // \f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}";
|
||||
_SelectedRtfSB.Append(@"\viewkind4\uc1\pard\sl-240\slmult0" + sbbeg.ToString() + @"\fs" + Convert.ToInt32(this.Font.SizeInPoints * 2).ToString() + @" "); // \f0\fs" + this.Font.SizeInPoints * 2 + @" " + myDisplayTextElement.Text + @"}";
|
||||
}
|
||||
|
||||
private bool FontIsFixed()
|
||||
|
Loading…
x
Reference in New Issue
Block a user