[Classes] [Prev] [Next] [Methods]

CTableMouseHandler

Methods Index

Heritage
Description
Usage
Public Enum
Protected Data Members
Public Methods
Contructor Methods
Utility Methods
Operator Methods

CTableMouseHandler


Heritage

Superclass: CMouseHandler

Subclasses: None


Description

CTableMouseHandler is a utility class for handling mouse events within a CTable.


Usage

CTableMouseHandler CMouseHandler is a concrete implementation of CMouseHandler. Derived class instances should be registered with a mouse manager which delegates mouse events for the handler to process.

CMouseHandler-derived classes have a many-to-many association: a manager can manage zero or more handlers, and a handler can be registered with zero or more managers.

DoDown, DoUp, DoMove, and DoDouble are called on mouse down, up, move, and double-click events, respectively. These functions return TRUE if they have consumed the event (it no longer needs processing by the object which owns the mouse manager), FALSE if the event has not been consumed (it needs further processing by the object that owns the mouse manager). Note that the default CMouseManager behavior allows all registered mouse handlers an opportunity to consume events (i.e., events can be consumed by more than one handler). When a CMouseHandler is deleted, it automatically removes itself from any CMouseManagers is it registered with.

enum TablePart

None
ColumnLabels
ColumnLabelsBorder
RowLabels
RowLabelsBorder
Table
FocusCell

Protected Data Members

CTable* itsTable;
TablePart itsPart;
TablePart itsLastPart;
CURSOR itsSplitCursor;
CURSOR itsCurrentCursor;
CRect itsDragBounds;
CRect itsUndoBounds;
CRegion itsSelectedRegion;
BOOLEAN isSelecting;
CPoint itsOriginalPoint;
CCell itsOriginalCell;
CCell itsLastCell;
CPoint itsLastPoint;


Public Methods

Contructor Methods

CTableMouseHandler( CTable* theTable, CURSOR theSplitCursor = CURSOR_CROSS );
CTableMouseHandler(const CTableMouseHandler& theMouseHandler);

Mouse Event Methods

virtual BOOLEAN DoDown(
CPoint& theLocation,
short& theButton,
BOOLEAN& isShiftKey,
BOOLEAN& isControlKey) = 0;
virtual BOOLEAN DoUp(
CPoint& theLocation,
short& theButton,
BOOLEAN& isShiftKey,
BOOLEAN& isControlKey) = 0;
virtual BOOLEAN DoDouble(
CPoint& theLocation,
short& theButton,
BOOLEAN& isShiftKey,
BOOLEAN& isControlKey) = 0;
virtual BOOLEAN DoMove(
CPoint& theLocation,
short& theButton,
BOOLEAN& isShiftKey,
BOOLEAN& isControlKey) = 0;
virtual BOOLEAN UsesGlobalCoords(void) = 0;


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.