GPopup Class Reference

A popup window: closes when the user clicks off-window. More...

#include <GPopup.h>

Inheritance diagram for GPopup:

GView GItemEdit GTimeDrop

List of all members.

Public Member Functions

char * GetClass ()
bool Attach (GViewI *p)
 Attaches the view to a parent view.
void Visible (bool i)
 Hides/Shows the view.
bool Visible ()
 true if the view is visible

Friends

class GWindow
class GDropDown
class GMouseHook


Detailed Description

A popup window: closes when the user clicks off-window.

Member Function Documentation

bool GPopup::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::AddView(), GView::Attach(), GView::AttachChildren(), GView::DelView(), GView::GetParent(), GView::GetWindow(), GView::Handle(), and GView::SetParent().

Referenced by Visible().

char* GPopup::GetClass (  )  [inline]

The class' name. Should be overriden in child classes to return the right class name. Mostly used for debugging, but in the win32 port it is also the default WIN32 class name passed to RegisterClass() in GView::CreateClass().

Returns:
the Class' name for debugging

Reimplemented from GView.


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

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