MFC Grid manual

CInPlaceTooltipCtrl Class Reference

Implements the tooltip that is displayed over the cell with partially visible text. More...

#include <Dapfor/GUI/InPlaceTooltipCtrl.h>

Inheritance diagram for CInPlaceTooltipCtrl:

CTooltipCtrl ITooltipCtrl IAutoDelete

List of all members.


Public Member Functions

 CInPlaceTooltipCtrl (bool autoDelete)
 Constructor.
virtual bool Activate (const CGrid &grid, CGridCell &cell)
 Makes a tooltip window visible.
virtual CString GetCurrentText () const
 Gets the text returned by ITooltip interface.
virtual CSize GetSize (const CGrid &grid, const CGridCell &cell) const
 Gets the size requested by the tooltip to show a text without restriction.

Detailed Description

Implements the tooltip that is displayed over the cell with partially visible text.

It uses the same font and text alignement as in the cell.

Version:
1.0.0.0 Initial version

Constructor & Destructor Documentation

CInPlaceTooltipCtrl ( bool  autoDelete  ) 

Constructor.

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


Member Function Documentation

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

Makes a tooltip window visible.

Parameters:
[in] grid The grid
[in] cell Value indicates location and content of the tooltip

Reimplemented from CTooltipCtrl.

CString GetCurrentText (  )  const [virtual]

Gets the text returned by ITooltip interface.

Returns:
Text in the tooltip

Reimplemented from CTooltipCtrl.

CSize GetSize ( const CGrid grid,
const CGridCell cell 
) const [virtual]

Gets the size requested by the tooltip to show a text without restriction.

Returns:
Bounds, needed to show a text in the tooltip

Reimplemented from CTooltipCtrl.