From eeef43e48ef45e8b4bff9f3d23bf898c65344796 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 5 Aug 2009 15:08:11 +0000 Subject: [PATCH] The mouse scroll wheel was not working when in an StepRTB --- PROMS/Volian.Controls.Library/StepRTB.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 3af5f448..b7d047cc 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -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()