MFC Grid manual

CTooltip Class Reference

Dedault implementation of ITooltip. More...

#include <Dapfor/GUI/Tooltip.h>

Inheritance diagram for CTooltip:

ITooltip IAutoDelete CHtmlTooltip

List of all members.


Public Member Functions

 CTooltip (bool autoDelete)
 Constructor.
bool CanShow (const CGrid &grid, const CGridCell &cell) const
 Indicates whether the tooltip can be shown at a given cell.
TString GetText (const CGrid &grid, const CGridCell &cell) const
 Gets text to display it in the tooltip.
virtual bool AutoDelete () const
 IAutoDelete implementation. Returns the value, passed in the constructor.

Detailed Description

Dedault implementation of ITooltip.

Returns formatted text of the data object returned by Common::CDataObject::GetFormattedString()

Version:
1.0.0.0 Initial version

Constructor & Destructor Documentation

CTooltip ( bool  autoDelete  ) 

Constructor.

Parameters:
[in] autoDelete Indicates that this object can be destroyed in the destructor of CGrid


Member Function Documentation

bool CanShow ( const CGrid grid,
const CGridCell cell 
) const [virtual]

Indicates whether the tooltip can be shown at a given cell.

Parameters:
[in] grid The grid where the tooptip is displayed
[in] cell The cell in the grid, the tooltip is displayed on
Returns:
True if the tooltip can be shown. Otherwise false.

Implements ITooltip.

TString GetText ( const CGrid grid,
const CGridCell cell 
) const [virtual]

Gets text to display it in the tooltip.

Parameters:
[in] grid The grid where the tooptip is displayed
[in] cell The cell in the grid, the tooltip is displayed on
Returns:
Text to be displayed in the tooltip.

Implements ITooltip.

Reimplemented in CHtmlTooltip.

bool AutoDelete (  )  const [virtual]

IAutoDelete implementation. Returns the value, passed in the constructor.

Returns:
The value, passed in the constructor.

Implements IAutoDelete.