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

FX::FXToolBarGrip Class Reference

A toolbar grip is used to move its container, a dock bar. More...

#include <FXToolBarGrip.h>

Inheritance diagram for FX::FXToolBarGrip:

FX::FXDockHandler FX::FXFrame FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

 FXToolBarGrip (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=TOOLBARGRIP_SINGLE, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=0, FXint pr=0, FXint pt=0, FXint pb=0)
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual bool canFocus () const
void setDoubleBar (FXbool dbl=TRUE)
FXbool isDoubleBar () const
void setActiveColor (FXColor clr)
FXColor getActiveColor () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)

Detailed Description

A toolbar grip is used to move its container, a dock bar.

The grip draws either a single or double bar; it is customary to use the single bar grip for toolbar-rearrangements only, and use the double-bar when the toolbar needs to be floated or docked. The toolbar grip is automatically oriented properly by the the toolbar widget, similar to the FXSeparator widget. Holding the Control Key while dragging the grip will prevent the toolbar from docking when it is near a dock site.

See also:


Constructor & Destructor Documentation

FX::FXToolBarGrip::FXToolBarGrip FXComposite p,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = TOOLBARGRIP_SINGLE,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = 0,
FXint  pr = 0,
FXint  pt = 0,
FXint  pb = 0
 

Construct toolbar grip.


Member Function Documentation

virtual FXint FX::FXToolBarGrip::getDefaultWidth  )  [virtual]
 

Return default width.

Reimplemented from FX::FXFrame.

virtual FXint FX::FXToolBarGrip::getDefaultHeight  )  [virtual]
 

Return default height.

Reimplemented from FX::FXFrame.

virtual bool FX::FXToolBarGrip::canFocus  )  const [virtual]
 

The grip can not receive the focus.

Reimplemented from FX::FXDockHandler.

void FX::FXToolBarGrip::setDoubleBar FXbool  dbl = TRUE  ) 
 

Change toolbar grip to double.

FXbool FX::FXToolBarGrip::isDoubleBar  )  const
 

Return TRUE if toolbar grip is displayed as a double bar.

void FX::FXToolBarGrip::setActiveColor FXColor  clr  ) 
 

Set the active color.

FXColor FX::FXToolBarGrip::getActiveColor  )  const [inline]
 

Get the active color.

virtual void FX::FXToolBarGrip::save FXStream store  )  const [virtual]
 

Save to stream.

Reimplemented from FX::FXDockHandler.

virtual void FX::FXToolBarGrip::load FXStream store  )  [virtual]
 

Load from stream.

Reimplemented from FX::FXDockHandler.

Copyright © 1997-2005 Jeroen van der Zijp