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

FX::FXDirBox Class Reference

A Directory Box widget allows the user to select parts of a file path. More...

#include <FXDirBox.h>

Inheritance diagram for FX::FXDirBox:

FX::FXTreeListBox FX::FXPacker FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

 FXDirBox (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
virtual void create ()
virtual void detach ()
virtual void destroy ()
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
void setDirectory (const FXString &pathname)
FXString getDirectory () const
void setAssociations (FXFileDict *assoc)
FXFileDictgetAssociations () const
virtual ~FXDirBox ()

Detailed Description

A Directory Box widget allows the user to select parts of a file path.

First, it is filled with a string comprising a file path, like "/a/b/c". Then, the user can select "/a/b/c", "/a/b", "/a", and "/" from the drop-down list. The entries in the drop-down list are automatically provided with icons by consulting the file-associations registry settings. The Directory Box sends SEL_CHANGED and SEL_COMMAND messages, with the string containing the full path to the selected item.

See also:


Constructor & Destructor Documentation

FX::FXDirBox::FXDirBox FXComposite p,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = DEFAULT_PAD,
FXint  pr = DEFAULT_PAD,
FXint  pt = DEFAULT_PAD,
FXint  pb = DEFAULT_PAD
 

Construct a Directory Box.

virtual FX::FXDirBox::~FXDirBox  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void FX::FXDirBox::create  )  [virtual]
 

Create server-side resources.

Reimplemented from FX::FXTreeListBox.

virtual void FX::FXDirBox::detach  )  [virtual]
 

Detach server-side resources.

Reimplemented from FX::FXTreeListBox.

virtual void FX::FXDirBox::destroy  )  [virtual]
 

Destroy server-side resources.

Reimplemented from FX::FXTreeListBox.

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

Save to stream.

Reimplemented from FX::FXTreeListBox.

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

Load from stream.

Reimplemented from FX::FXTreeListBox.

void FX::FXDirBox::setDirectory const FXString pathname  ) 
 

Set current directory.

FXString FX::FXDirBox::getDirectory  )  const
 

Return current directory.

void FX::FXDirBox::setAssociations FXFileDict assoc  ) 
 

Change file associations used to look up icons.

FXFileDict* FX::FXDirBox::getAssociations  )  const [inline]
 

Return file associations.

Copyright © 1997-2005 Jeroen van der Zijp