From: <ah...@us...> - 2007-06-24 13:05:44
|
Revision: 11386 http://svn.sourceforge.net/jvcl/?rev=11386&view=rev Author: ahuser Date: 2007-06-24 06:05:39 -0700 (Sun, 24 Jun 2007) Log Message: ----------- Fixed problem with released controls Modified Paths: -------------- trunk/jvcl/run/JvExButtons.pas trunk/jvcl/run/JvExCheckLst.pas trunk/jvcl/run/JvExComCtrls.pas trunk/jvcl/run/JvExControls.pas trunk/jvcl/run/JvExDBGrids.pas trunk/jvcl/run/JvExExtCtrls.pas trunk/jvcl/run/JvExForms.pas trunk/jvcl/run/JvExGrids.pas trunk/jvcl/run/JvExMask.pas trunk/jvcl/run/JvExStdCtrls.pas Modified: trunk/jvcl/run/JvExButtons.pas =================================================================== --- trunk/jvcl/run/JvExButtons.pas 2007-06-24 13:04:06 UTC (rev 11385) +++ trunk/jvcl/run/JvExButtons.pas 2007-06-24 13:05:39 UTC (rev 11386) @@ -723,8 +723,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; Modified: trunk/jvcl/run/JvExCheckLst.pas =================================================================== --- trunk/jvcl/run/JvExCheckLst.pas 2007-06-24 13:04:06 UTC (rev 11385) +++ trunk/jvcl/run/JvExCheckLst.pas 2007-06-24 13:05:39 UTC (rev 11386) @@ -468,8 +468,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; Modified: trunk/jvcl/run/JvExComCtrls.pas =================================================================== --- trunk/jvcl/run/JvExComCtrls.pas 2007-06-24 13:04:06 UTC (rev 11385) +++ trunk/jvcl/run/JvExComCtrls.pas 2007-06-24 13:05:39 UTC (rev 11386) @@ -2504,8 +2504,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -2841,8 +2844,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -3178,8 +3184,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -3515,8 +3524,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -3854,8 +3866,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -4191,8 +4206,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -4528,8 +4546,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -4865,8 +4886,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -5202,8 +5226,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -5539,8 +5566,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -5876,8 +5906,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -6213,8 +6246,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -6550,8 +6586,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -6887,8 +6926,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -7224,8 +7266,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -7561,8 +7606,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -7898,8 +7946,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -8235,8 +8286,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -8572,8 +8626,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -8909,8 +8966,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -9246,8 +9306,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -9583,8 +9646,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -9920,8 +9986,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -10257,8 +10326,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -10594,8 +10666,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -10931,8 +11006,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -11268,8 +11346,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; Modified: trunk/jvcl/run/JvExControls.pas =================================================================== --- trunk/jvcl/run/JvExControls.pas 2007-06-24 13:04:06 UTC (rev 11385) +++ trunk/jvcl/run/JvExControls.pas 2007-06-24 13:05:39 UTC (rev 11386) @@ -838,7 +838,7 @@ {$ENDIF COMPILER5} -//=== { TJvHotTrackOptions } ================================================= +//=== { TJvHotTrackOptions } ====================================== constructor TJvHotTrackOptions.Create; begin @@ -915,7 +915,7 @@ end; end; -//=== { TJvExControl } ======================================================= +//============================================================================ constructor TJvExControl.Create(AOwner: TComponent); begin @@ -1118,7 +1118,7 @@ end; end; -//=== { TJvExWinControl } ==================================================== +//============================================================================ constructor TJvExWinControl.Create(AOwner: TComponent); begin @@ -1450,12 +1450,15 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; -//=== { TJvExGraphicControl } ================================================ +//============================================================================ constructor TJvExGraphicControl.Create(AOwner: TComponent); begin @@ -1658,7 +1661,7 @@ end; end; -//=== { TJvExCustomControl } ================================================= +//============================================================================ constructor TJvExCustomControl.Create(AOwner: TComponent); begin @@ -1990,12 +1993,15 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; -//=== { TJvExHintWindow } ==================================================== +//============================================================================ constructor TJvExHintWindow.Create(AOwner: TComponent); begin @@ -2327,11 +2333,16 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; +//============================================================================ + initialization {$IFDEF UNITVERSIONING} RegisterUnitVersion(HInstance, UnitVersioning); Modified: trunk/jvcl/run/JvExDBGrids.pas =================================================================== --- trunk/jvcl/run/JvExDBGrids.pas 2007-06-24 13:04:06 UTC (rev 11385) +++ trunk/jvcl/run/JvExDBGrids.pas 2007-06-24 13:05:39 UTC (rev 11386) @@ -544,8 +544,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -881,8 +884,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; Modified: trunk/jvcl/run/JvExExtCtrls.pas =================================================================== --- trunk/jvcl/run/JvExExtCtrls.pas 2007-06-24 13:04:06 UTC (rev 11385) +++ trunk/jvcl/run/JvExExtCtrls.pas 2007-06-24 13:05:39 UTC (rev 11386) @@ -2526,8 +2526,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -2863,8 +2866,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -3200,8 +3206,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -3537,8 +3546,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -3874,8 +3886,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -4211,8 +4226,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -4548,8 +4566,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -4885,8 +4906,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -5222,8 +5246,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -5764,8 +5791,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -6101,8 +6131,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -6438,8 +6471,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -6775,8 +6811,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; Modified: trunk/jvcl/run/JvExForms.pas =================================================================== --- trunk/jvcl/run/JvExForms.pas 2007-06-24 13:04:06 UTC (rev 11385) +++ trunk/jvcl/run/JvExForms.pas 2007-06-24 13:05:39 UTC (rev 11386) @@ -1025,8 +1025,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -1362,8 +1365,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -1699,8 +1705,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -2036,8 +2045,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -2373,8 +2385,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -2710,8 +2725,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -3071,8 +3089,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -3433,8 +3454,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; Modified: trunk/jvcl/run/JvExGrids.pas =================================================================== --- trunk/jvcl/run/JvExGrids.pas 2007-06-24 13:04:06 UTC (rev 11385) +++ trunk/jvcl/run/JvExGrids.pas 2007-06-24 13:05:39 UTC (rev 11386) @@ -875,8 +875,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -1212,8 +1215,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -1551,8 +1557,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -1888,8 +1897,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -2227,8 +2239,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -2571,8 +2586,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; Modified: trunk/jvcl/run/JvExMask.pas =================================================================== --- trunk/jvcl/run/JvExMask.pas 2007-06-24 13:04:06 UTC (rev 11385) +++ trunk/jvcl/run/JvExMask.pas 2007-06-24 13:05:39 UTC (rev 11386) @@ -598,8 +598,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -976,8 +979,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; Modified: trunk/jvcl/run/JvExStdCtrls.pas =================================================================== --- trunk/jvcl/run/JvExStdCtrls.pas 2007-06-24 13:04:06 UTC (rev 11385) +++ trunk/jvcl/run/JvExStdCtrls.pas 2007-06-24 13:05:39 UTC (rev 11386) @@ -1652,8 +1652,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -2430,8 +2433,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -2798,8 +2804,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -3136,8 +3145,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -3474,8 +3486,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -3811,8 +3826,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -4148,8 +4166,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -4485,8 +4506,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -4822,8 +4846,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -5159,8 +5186,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -5496,8 +5526,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -5833,8 +5866,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -6170,8 +6206,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -6507,8 +6546,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; @@ -6844,8 +6886,11 @@ else inherited WndProc(Msg); end; - if DotNetHighlighting then - HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + case Msg.Msg of // precheck message to prevent access violations on released controls + CM_MOUSEENTER, CM_MOUSELEAVE, WM_KILLFOCUS, WM_SETFOCUS, WM_NCPAINT: + if DotNetHighlighting then + HandleDotNetHighlighting(Self, Msg, MouseOver, Color); + end; end; end; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |