Softelvdm.Controls Class Library for Windows Controls 1.0

StrategyRoutine Method, GenericPartClass Class

Softel vdm, Inc.

Used to perform various actions the part supports, like rendering the part, hit-testing, determining its position and responding to mouse button clicks.

Syntax      GenericPartClass Class (Softelvdm.Controls)

VB   

Protected Friend Overridable MustOverride Function StrategyRoutine( _
     ByVal strat As StrategyClass, _
     ByVal pr As PartsRenderingClass, _
     ByVal rPartArea As Rectangle _
  ) As Boolean

C#   

protected internal abstract bool StrategyRoutine(
     StrategyClass strat,
     PartsRenderingClass pr,
     Rectangle rPartArea );

C++   

protected friend: virtual bool StrategyRoutine(
     StrategyClass^ strat,
     PartsRenderingClass^ pr,
     Rectangle rPartArea ) abstract;

pr

Defines the PartsRenderingClass object, that is used to render a part.

rPartArea

Defines the area where the part is to be rendered.

strat

Defines the StrategyClass object, that contains additional information about the action to perform.

Return Value

True if the call was handled by the part, otherwise False. The return value depends on the type of call to this function (see StrategyClass.reason)

Comments

The StrategyRoutine method used to perform various actions the part supports, like rendering the part, hit-testing, determining its position and responding to mouse button clicks.

This is implemented by every class derived from GenericPartClass and provides the core functionality to implement a new part.

The StrategyClass object strat contains additional information about the action to perform. The StrategyRoutine implementation should perform the action requested by the reason field.

Version Information

Supported in version 1.0.
Products Table


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com