From 9200a9da7fd267f79a978de762295a4f781518a0 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Wed, 5 Dec 2007 14:17:10 +0000 Subject: [PATCH] wxBeginBusyCursor --- pcbnew/dialog_drc.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pcbnew/dialog_drc.cpp b/pcbnew/dialog_drc.cpp index 6f233b9528..d65ad5ae86 100644 --- a/pcbnew/dialog_drc.cpp +++ b/pcbnew/dialog_drc.cpp @@ -632,9 +632,7 @@ void DrcDialog::OnStartdrcClick( wxCommandEvent& event ) DelDRCMarkers(); - SetCursor( wxCursor( wxCURSOR_WAIT ) ); - - wxYield(); // attempt to process the cursor change + wxBeginBusyCursor(); // run all the tests, with no UI at this time. m_tester->RunTests(); @@ -662,7 +660,7 @@ void DrcDialog::OnStartdrcClick( wxCommandEvent& event ) popupWindow.ShowModal(); } - SetCursor( wxCursor( wxCURSOR_ARROW ) ); + wxEndBusyCursor(); RedrawDrawPanel(); } @@ -710,9 +708,7 @@ void DrcDialog::OnListUnconnectedClick( wxCommandEvent& event ) DelDRCMarkers(); - SetCursor( wxCursor( wxCURSOR_WAIT ) ); - - wxYield(); // attempt to process the cursor change + wxBeginBusyCursor(); m_tester->ListUnconnectedPads(); @@ -738,7 +734,7 @@ void DrcDialog::OnListUnconnectedClick( wxCommandEvent& event ) popupWindow.ShowModal(); } - SetCursor( wxCursor( wxCURSOR_ARROW ) ); + wxEndBusyCursor(); /* there is currently nothing visible on the DrawPanel for unconnected pads RedrawDrawPanel();