Contents Up Previous Next

wxFileDirPickerEvent

This event class is used for the events generated by wxFilePickerCtrl and by wxDirPickerCtrl.

Derived from

wxCommandEvent
wxEvent
wxObject

Include files

<wx/filepicker.h>

Event handling

To process input from a wxFilePickerCtrl or from a wxDirPickerCtrl, use one of these event handler macros to direct input to member function that take a wxFileDirPickerEvent argument:

EVT_FILEPICKER_CHANGED(id, func) Generated whenever the selected file changes.
EVT_DIRPICKER_CHANGED(id, func) Generated whenever the selected directory changes.
See also

wxfilepickerctrl

Members

wxFileDirPickerEvent::wxFileDirPickerEvent
wxFileDirPickerEvent::GetPath
wxFileDirPickerEvent::SetPath


wxFileDirPickerEvent::wxFileDirPickerEvent

wxFileDirPickerEvent(wxEventType type, wxObject * generator, int id, const wxString path)

The constructor is not normally used by the user code.


wxFileDirPickerEvent::GetPath

wxString GetPath() const

Retrieve the absolute path of the file/directory the user has just selected.


wxFileDirPickerEvent::SetPath

void SetPath(const wxString &path)

Set the absolute path of the file/directory associated with the event.