Remove unnecessary wxBeginBusyCursor() from generic dialogs
For some reason lost in the mist of time (this seems to have started in
92afa2b150 (Did somework on the generic dialogs, Renamed wxBox ->
wxBoxSizer Removed old dialog layout code,, 1999-08-11)) we were setting
busy cursor while creating several generic dialogs.
This is completely useless, so just stop doing it.
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/settings.h"
|
||||
#include "wx/utils.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/listbox.h"
|
||||
@@ -316,8 +315,6 @@ void wxGenericColourDialog::CalculateMeasurements()
|
||||
|
||||
void wxGenericColourDialog::CreateWidgets()
|
||||
{
|
||||
wxBeginBusyCursor();
|
||||
|
||||
#if wxCLRDLGG_USE_PREVIEW_WITH_ALPHA
|
||||
CreateCustomBitmaps();
|
||||
#endif
|
||||
@@ -402,8 +399,6 @@ void wxGenericColourDialog::CreateWidgets()
|
||||
topSizer->Fit( this );
|
||||
|
||||
Centre( wxBOTH );
|
||||
|
||||
wxEndBusyCursor();
|
||||
}
|
||||
|
||||
void wxGenericColourDialog::InitializeColours(void)
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#ifndef WX_PRECOMP
|
||||
#include <stdio.h>
|
||||
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/stattext.h"
|
||||
@@ -86,8 +85,6 @@ bool wxNumberEntryDialog::Create(wxWindow *parent,
|
||||
m_max = max;
|
||||
m_min = min;
|
||||
|
||||
wxBeginBusyCursor();
|
||||
|
||||
wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );
|
||||
#if wxUSE_STATTEXT
|
||||
// 1) text message
|
||||
@@ -133,8 +130,6 @@ bool wxNumberEntryDialog::Create(wxWindow *parent,
|
||||
m_spinctrl->SetSelection(-1, -1);
|
||||
m_spinctrl->SetFocus();
|
||||
|
||||
wxEndBusyCursor();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include "wx/generic/textdlgg.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/button.h"
|
||||
#include "wx/stattext.h"
|
||||
@@ -85,8 +84,6 @@ bool wxTextEntryDialog::Create(wxWindow *parent,
|
||||
m_dialogStyle = style;
|
||||
m_value = value;
|
||||
|
||||
wxBeginBusyCursor();
|
||||
|
||||
wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
wxSizerFlags flagsBorder2;
|
||||
@@ -127,8 +124,6 @@ bool wxTextEntryDialog::Create(wxWindow *parent,
|
||||
if ( style & wxCENTRE )
|
||||
Centre( wxBOTH );
|
||||
|
||||
wxEndBusyCursor();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user