]> git.saurik.com Git - wxWidgets.git/blame - src/common/dseldlg.cpp
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / src / common / dseldlg.cpp
CommitLineData
10eb1f1e
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: src/common/dseldlg.cpp
3// Purpose: implementation of ::wxDirSelector()
4// Author: Paul Thiessen
5// Modified by:
6// Created: 20.02.01
77ffb593 7// Copyright: (c) 2001 wxWidgets team
526954c5 8// Licence: wxWindows licence
10eb1f1e
VZ
9///////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
10eb1f1e
VZ
19// For compilers that support precompilation, includes "wx.h".
20#include "wx/wxprec.h"
21
22#ifdef __BORLANDC__
23 #pragma hdrstop
24#endif
25
1ab440bc 26#if wxUSE_DIRDLG
10eb1f1e
VZ
27
28#include "wx/dirdlg.h"
29
1ab440bc
WS
30#ifndef WX_PRECOMP
31#endif //WX_PRECOMP
10eb1f1e
VZ
32
33// ============================================================================
34// implementation
35// ============================================================================
36
10eb1f1e
VZ
37wxString 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