Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXPopup Class Reference

Popup window is used as a container for transitional controls such as menu panes and other ephemeral windows. More...

#include <FXPopup.h>

Inheritance diagram for FX::FXPopup:

FX::FXShell FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject FX::FXMenuPane FX::FXMDIMenu FX::FXScrollPane

List of all members.

Public Member Functions

 FXPopup (FXWindow *owner, FXuint opts=POPUP_VERTICAL|FRAME_RAISED|FRAME_THICK, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual void layout ()
FXPopupgetPrevActive () const
FXPopupgetNextActive () const
virtual void setFocus ()
virtual void killFocus ()
virtual void show ()
virtual void hide ()
void setFrameStyle (FXuint style)
FXuint getFrameStyle () const
FXint getBorderWidth () const
void setHiliteColor (FXColor clr)
FXColor getHiliteColor () const
void setShadowColor (FXColor clr)
FXColor getShadowColor () const
void setBorderColor (FXColor clr)
FXColor getBorderColor () const
void setBaseColor (FXColor clr)
FXColor getBaseColor () const
virtual void popup (FXWindow *grabto, FXint x, FXint y, FXint w=0, FXint h=0)
virtual void popdown ()
FXWindowgetGrabOwner () const
void setOrientation (FXuint orient)
FXuint getOrientation () const
void setShrinkWrap (FXbool flag)
FXbool getShrinkWrap () const
virtual FXbool doesSaveUnder () const
virtual ~FXPopup ()


Detailed Description

Popup window is used as a container for transitional controls such as menu panes and other ephemeral windows.

One of its principal characteristics is that no other controls, except the ones inside the popup are capable of interaction. Any click outside of a popup will cause the popup to be closed. Contents of popups may be arranged vertically (POPUP_VERTICAL) or horizontally (POPUP_HORIZONTAL). The special POPUP_SHRINKWRAP option causes the application to recompute the size of the popup window based on its contents at the time it is shown, thus permitting dynamically changing content.

See also:


Constructor & Destructor Documentation

FX::FXPopup::FXPopup ( FXWindow owner,
FXuint  opts = POPUP_VERTICAL|FRAME_RAISED|FRAME_THICK,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0 
)

Construct popup pane.

virtual FX::FXPopup::~FXPopup (  )  [virtual]

Destructor.


Member Function Documentation

virtual FXint FX::FXPopup::getDefaultWidth (  )  [virtual]

Return the default width of this window.

Reimplemented from FX::FXComposite.

Reimplemented in FX::FXScrollPane.

virtual FXint FX::FXPopup::getDefaultHeight (  )  [virtual]

Return the default height of this window.

Reimplemented from FX::FXComposite.

Reimplemented in FX::FXScrollPane.

virtual void FX::FXPopup::layout (  )  [virtual]

Perform layout.

Reimplemented from FX::FXComposite.

Reimplemented in FX::FXScrollPane.

FXPopup* FX::FXPopup::getPrevActive (  )  const [inline]

Return a pointer to the prior active popup.

FXPopup* FX::FXPopup::getNextActive (  )  const [inline]

Return a pointer to the next active popup.

virtual void FX::FXPopup::setFocus (  )  [virtual]

Move the focus to this window.

Reimplemented from FX::FXShell.

virtual void FX::FXPopup::killFocus (  )  [virtual]

Remove the focus from this window.

Reimplemented from FX::FXShell.

virtual void FX::FXPopup::show (  )  [virtual]

Show this window.

Reimplemented from FX::FXWindow.

Reimplemented in FX::FXScrollPane.

virtual void FX::FXPopup::hide (  )  [virtual]

Hide this window.

Reimplemented from FX::FXWindow.

void FX::FXPopup::setFrameStyle ( FXuint  style  ) 

Change frame style.

FXuint FX::FXPopup::getFrameStyle (  )  const

Return frame style.

FXint FX::FXPopup::getBorderWidth (  )  const [inline]

Return border width.

void FX::FXPopup::setHiliteColor ( FXColor  clr  ) 

Change highlight color.

FXColor FX::FXPopup::getHiliteColor (  )  const [inline]

Return highlight color.

void FX::FXPopup::setShadowColor ( FXColor  clr  ) 

Change shadow color.

FXColor FX::FXPopup::getShadowColor (  )  const [inline]

Return shadow color.

void FX::FXPopup::setBorderColor ( FXColor  clr  ) 

Change border color.

FXColor FX::FXPopup::getBorderColor (  )  const [inline]

Return border color.

void FX::FXPopup::setBaseColor ( FXColor  clr  ) 

Change base color.

FXColor FX::FXPopup::getBaseColor (  )  const [inline]

Return base color.

virtual void FX::FXPopup::popup ( FXWindow grabto,
FXint  x,
FXint  y,
FXint  w = 0,
FXint  h = 0 
) [virtual]

Popup the menu and grab to the given owner.

virtual void FX::FXPopup::popdown (  )  [virtual]

Pop down the menu.

FXWindow* FX::FXPopup::getGrabOwner (  )  const

Return current grab owner.

void FX::FXPopup::setOrientation ( FXuint  orient  ) 

Change popup orientation.

FXuint FX::FXPopup::getOrientation (  )  const

Return popup orientation.

void FX::FXPopup::setShrinkWrap ( FXbool  flag  ) 

Change shrinkwrap mode.

FXbool FX::FXPopup::getShrinkWrap (  )  const

Return shrinkwrap mode.

virtual FXbool FX::FXPopup::doesSaveUnder (  )  const [virtual]

Does save-unders.

Reimplemented from FX::FXWindow.

Copyright © 1997-2009 Jeroen van der Zijp