]> git.saurik.com Git - wxWidgets.git/blob - src/common/dseldlg.cpp
Fix for #15520: wxRichTextCtrl: Drawing the selection doesn't respect its container...
[wxWidgets.git] / src / common / dseldlg.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/dseldlg.cpp
3 // Purpose: implementation of ::wxDirSelector()
4 // Author: Paul Thiessen
5 // Modified by:
6 // Created: 20.02.01
7 // Copyright: (c) 2001 wxWidgets team
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 // ============================================================================
12 // declarations
13 // ============================================================================
14
15 // ----------------------------------------------------------------------------
16 // headers
17 // ----------------------------------------------------------------------------
18
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
21
22 #ifdef __BORLANDC__
23 #pragma hdrstop
24 #endif
25
26 #if wxUSE_DIRDLG
27
28 #include "wx/dirdlg.h"
29
30 #ifndef WX_PRECOMP
31 #endif //WX_PRECOMP
32
33 // ============================================================================
34 // implementation
35 // ============================================================================
36
37 wxString wxDirSelector(const wxString& message,
38 const wxString& defaultPath,
39 long style,
40 const wxPoint& pos,
41 wxWindow *parent)
42 {
43 wxString path;
44
45 wxDirDialog dirDialog(parent, message, defaultPath, style, pos);
46 if ( dirDialog.ShowModal() == wxID_OK )
47 {
48 path = dirDialog.GetPath();
49 }
50
51 return path;
52 }
53
54 #endif // wxUSE_DIRDLG