![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXDirBox.h>
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) |
FXFileDict * | getAssociations () const |
virtual | ~FXDirBox () |
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:
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.
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.
![]() |