The mouse scroll wheel was not working when in an StepRTB

This commit is contained in:
John Jenko 2009-08-05 15:08:11 +00:00
parent 89cc2d429e
commit eeef43e48e

View File

@ -303,11 +303,11 @@ namespace Volian.Controls.Library
SetUp(); SetUp();
AddEventHandlers(); AddEventHandlers();
} }
//protected override void OnMouseWheel(MouseEventArgs e) protected override void OnMouseWheel(MouseEventArgs e)
//{ {
// _MyStepItem.MyStepPanel.MouseWheel(e); _MyStepItem.MyStepPanel.MouseWheel(e);
// //base.OnMouseWheel(e); //base.OnMouseWheel(e);
//} }
private void RemoveEventHandlers() private void RemoveEventHandlers()
{ {
ContentsResized -= new ContentsResizedEventHandler(StepRTB_ContentsResized); 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(@"{\f1\fnil\fcharset0 VESymbFix;}}{\colortbl ;\red255\green0\blue0;}");
_SelectedRtfSB.Append("\r\n"); _SelectedRtfSB.Append("\r\n");
// use styles to construct rtf commands to insert into next line (where \b, etc is) // 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() private bool FontIsFixed()