From 063b752ebcc09932ecff4066c5b3ed6c7e9cfa10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Thu, 25 Nov 2004 17:00:31 +0000 Subject: [PATCH] wxProgressDialog needs progress bar. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/chkconf.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index 613c97068a..3d05c7c85c 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -1460,6 +1460,17 @@ # endif #endif /* wxUSE_FILEDLG */ +#if !wxUSE_GAUGE +# if wxUSE_PROGRESSDLG +# ifdef wxABORT_ON_CONFIG_ERROR +# error "Progress dialog require wxUSE_GAUGE" +# else +# undef wxUSE_GAUGE +# define wxUSE_GAUGE 1 +# endif +# endif +#endif /* !wxUSE_GAUGE */ + #if !wxUSE_BUTTON # if wxUSE_PROGRESSDLG || \ wxUSE_FONTDLG || \ @@ -1477,7 +1488,7 @@ # define wxUSE_BUTTON 1 # endif # endif -#endif /* wxUSE_PROGRESSDLG */ +#endif /* !wxUSE_BUTTON */ #if !wxUSE_TOOLBAR # if wxUSE_TOOLBAR_NATIVE