|
#include <Dapfor/GUI/ITooltipCtrl.h>

Public Member Functions | |
| virtual | ~ITooltipCtrl () |
| Virtual destructor. | |
| virtual bool | Attach (CGrid &grid)=0 |
| Attaches a tooltip window to the grid. | |
| virtual void | Detach ()=0 |
| Detaches a tooltip window from the grid. | |
| virtual bool | Activate (const CGrid &grid, CGridCell &cell)=0 |
| Makes a tooltip window visible. | |
| virtual void | Desactivate ()=0 |
| Makes a tooltip window invisible. | |
| virtual const ITooltip & | GetDefaultToolip () const =0 |
| Gets default ITooltip implementation to display a grid's content. | |
It is intended for handling the tooltip window, its location and also its visibility. The grid supports two types of tooltips. The first is usual window, appearing above a grid cell if the cursor does not move for a certain time interval and disappearing in a certain time interval, set in the grid parameters. The second type is so-called building-in window, appearing above a cell in the case when the cell is so small that not capable to display all text information. In this case the grid shows an emerging window precisely above the cell and displays in it the complete text contained in the cell, applying the same font, size, and also the way of aligning the text, as in the cell. GUI library gives some realizations of ITooltipCtrl interface. CTooltipCtrl and CTooltip classes give text information in a window. CHtmlTooltipCtrl and CHtmlTooltip realizations display a cell content in the Internet browser in the form of a html text. CInPlaceTooltipCtrl realization displays a partially visible text above a cell. Besides it's possible to realize arbitrary tooltips, representing information by means of MFC coltrols, or by means of the same grid.
| bool Attach | ( | CGrid & | grid | ) | [pure virtual] |
Attaches a tooltip window to the grid.
| [in] | grid | The grid |
Implemented in CHtmlTooltipCtrl, and CTooltipCtrl.
Makes a tooltip window visible.
| [in] | grid | The grid |
| [in] | cell | Value indicates location and content of the tooltip |
Implemented in CHtmlTooltipCtrl, CInPlaceTooltipCtrl, and CTooltipCtrl.
| const ITooltip & GetDefaultToolip | ( | ) | const [pure virtual] |
Gets default ITooltip implementation to display a grid's content.
Implemented in CHtmlTooltipCtrl, and CTooltipCtrl.
| Copyright Dapfor 2007-2009 | Generated on Sat Jan 30 15:01:28 2010 for MFCGrid by 1.5.5 |