Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GTabView Class Reference

A tab control that displays multiple pages of information in a small area. More...

#include <GTabView.h>

Inheritance diagram for GTabView:

GView GTarget GEvent GFlags List of all members.

Public Member Functions

int Value ()
 Gets the integer representation of the view's contents.
void Value (int i)
 Sets the integer representation of the view's contents.
bool Attach (GView *parent)
 Attaches the view to a parent view.
int OnEvent (GMessage *Msg)
 Called to process every message received by this window.
GViewFindControl (int Id)
 Returns the view by it's ID.
int OnNotify (GView *Ctrl, int Flags)
 Called when a child view or view with it's SetNotify() set to this window changes.
void OnChildrenChanged (GView *Wnd, bool Attaching)
 Called when the contents of the Children list have changed.
void OnPosChange ()
 Called when the view position changes.
void OnPaint (GSurface *pDC)
 Called to paint the onscreen representation of the view.
void OnMouseClick (GMouse &m)
 The mouse was clicked over this view.
bool OnKey (GKey &k)
 A key was pressed while this view has focus.
void OnFocus (bool f)
 The view gains or loses the keyboard focus.

Detailed Description

A tab control that displays multiple pages of information in a small area.


Member Function Documentation

bool GTabView::Attach GView parent  )  [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.

int GTabView::OnNotify GView Ctrl,
int  Flags
[virtual]
 

Called when a child view or view with it's SetNotify() set to this window changes.

The event by default will bubble up to the GWindow at the top of the window heirarchy visiting each GView on the way. If it reaches a GView that processes it then the event stops propergating up the heirarchy.

Reimplemented from GView.


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:47:03 2005 for Lgi by  doxygen 1.4.1