wxFileCtrlEvent Class Reference
[Events]

#include <wx/filectrl.h>

Inheritance diagram for wxFileCtrlEvent:
Inheritance graph
[legend]

Detailed Description

A file control event holds information about events associated with wxFileCtrl objects.

Events using this class

The following event handler macros redirect the events to member function handlers 'func' with prototypes like:

void handlerFuncName(wxFileCtrlEvent& event)

Event macros:

Library:  wxBase
Category:  Events

Public Member Functions

 wxFileCtrlEvent (wxEventType type, wxObject *evtObject, int id)
 Constructor.
wxString GetDirectory () const
 Returns the current directory.
wxString GetFile () const
 Returns the file selected (assuming it is only one file).
wxArrayString GetFiles () const
 Returns the files selected.
void SetFiles (const wxArrayString &files)
 Sets the files changed by this event.
void SetDirectory (const wxString &directory)
 Sets the directory of this event.

List of all members.


Constructor & Destructor Documentation

wxFileCtrlEvent::wxFileCtrlEvent ( wxEventType  type,
wxObject evtObject,
int  id 
)

Constructor.


Member Function Documentation

wxString wxFileCtrlEvent::GetDirectory (  )  const

Returns the current directory.

In case of a EVT_FILECTRL_FOLDERCHANGED, this method returns the new directory.

wxString wxFileCtrlEvent::GetFile (  )  const

Returns the file selected (assuming it is only one file).

wxArrayString wxFileCtrlEvent::GetFiles (  )  const

Returns the files selected.

In case of a EVT_FILECTRL_SELECTIONCHANGED, this method returns the files selected after the event.

void wxFileCtrlEvent::SetDirectory ( const wxString directory  ) 

Sets the directory of this event.

void wxFileCtrlEvent::SetFiles ( const wxArrayString files  ) 

Sets the files changed by this event.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



wxWidgets logo

[ top ]