GToolTip Class Reference

Puts a tool tip on screen when the mouse wanders over a region. More...

#include <LgiClasses.h>

Inheritance diagram for GToolTip:

GView

List of all members.

Public Member Functions

int NewTip (char *Name, GRect &Pos)
 Create a tip.
void DeleteTip (int Id)
 Delete the tip.
bool Attach (GViewI *p)
 Attaches the view to a parent view.


Detailed Description

Puts a tool tip on screen when the mouse wanders over a region.

Member Function Documentation

bool GToolTip::Attach ( GViewI *  p  )  [virtual]

Attaches the view to a parent view.

Each GView starts in an un-attached state. When you attach it to a Parent GView the view gains a OS-specific handle and becomes visible on the screen (if the Visible() property is TRUE). However if a view is inserted into the Children list of a GView and it's parent pointer is set correctly it will still paint on the screen without the OS knowing about it. This is known in Lgi as a "virtual window" and is primarily used to cut down on windowing resources. Mouse clicks are handled by the parent window and passed down to the virtual children. Virtual children are somewhat limited. They can't receive focus, or participate in drag and drop operations. If you want to see an example have a look at the GToolBar code.

Reimplemented from GView.

References GView::SetParent().

Referenced by Html2::GHtml2::OnMouseMove(), and GHtml::OnMouseMove().

int GToolTip::NewTip ( char *  Name,
GRect Pos 
)

Create a tip.

Parameters:
Name  The text to display
Pos  The region the mouse has to be in to trigger the tip

References GView::GetParent().

Referenced by Html2::GHtml2::OnMouseMove(), and GHtml::OnMouseMove().


The documentation for this class was generated from the following files:

Generated on Wed Dec 1 15:41:05 2010 for Lgi by  doxygen 1.5.7.1