Ensure that the wxSTC gets the focus when clicked.
#if'd out my wxPopupWindow meanderings and just use a simple wxListBox for the AutoComplete window. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -637,7 +637,7 @@ void Window::SetCursor(Cursor curs) {
|
|||||||
#else
|
#else
|
||||||
wxCursor wc = wxCursor(cursorId) ;
|
wxCursor wc = wxCursor(cursorId) ;
|
||||||
#endif
|
#endif
|
||||||
GETWIN(id)->SetCursor(wc);
|
GETWIN(id)->SetCursor(wc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -650,7 +650,7 @@ void Window::SetTitle(const char *s) {
|
|||||||
// Helper classes for ListBox
|
// Helper classes for ListBox
|
||||||
|
|
||||||
|
|
||||||
#if defined(__WXMAC__)
|
#if 1 // defined(__WXMAC__)
|
||||||
class wxSTCListBoxWin : public wxListBox {
|
class wxSTCListBoxWin : public wxListBox {
|
||||||
public:
|
public:
|
||||||
wxSTCListBoxWin(wxWindow* parent, wxWindowID id)
|
wxSTCListBoxWin(wxWindow* parent, wxWindowID id)
|
||||||
|
@@ -1877,6 +1877,7 @@ void wxStyledTextCtrl::OnSize(wxSizeEvent& evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
||||||
|
SetFocus();
|
||||||
wxPoint pt = evt.GetPosition();
|
wxPoint pt = evt.GetPosition();
|
||||||
m_swx->DoButtonDown(Point(pt.x, pt.y), m_stopWatch.Time(),
|
m_swx->DoButtonDown(Point(pt.x, pt.y), m_stopWatch.Time(),
|
||||||
evt.ShiftDown(), evt.ControlDown(), evt.AltDown());
|
evt.ShiftDown(), evt.ControlDown(), evt.AltDown());
|
||||||
|
@@ -330,6 +330,7 @@ void wxStyledTextCtrl::OnSize(wxSizeEvent& evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
||||||
|
SetFocus();
|
||||||
wxPoint pt = evt.GetPosition();
|
wxPoint pt = evt.GetPosition();
|
||||||
m_swx->DoButtonDown(Point(pt.x, pt.y), m_stopWatch.Time(),
|
m_swx->DoButtonDown(Point(pt.x, pt.y), m_stopWatch.Time(),
|
||||||
evt.ShiftDown(), evt.ControlDown(), evt.AltDown());
|
evt.ShiftDown(), evt.ControlDown(), evt.AltDown());
|
||||||
|
@@ -637,7 +637,7 @@ void Window::SetCursor(Cursor curs) {
|
|||||||
#else
|
#else
|
||||||
wxCursor wc = wxCursor(cursorId) ;
|
wxCursor wc = wxCursor(cursorId) ;
|
||||||
#endif
|
#endif
|
||||||
GETWIN(id)->SetCursor(wc);
|
GETWIN(id)->SetCursor(wc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -650,7 +650,7 @@ void Window::SetTitle(const char *s) {
|
|||||||
// Helper classes for ListBox
|
// Helper classes for ListBox
|
||||||
|
|
||||||
|
|
||||||
#if defined(__WXMAC__)
|
#if 1 // defined(__WXMAC__)
|
||||||
class wxSTCListBoxWin : public wxListBox {
|
class wxSTCListBoxWin : public wxListBox {
|
||||||
public:
|
public:
|
||||||
wxSTCListBoxWin(wxWindow* parent, wxWindowID id)
|
wxSTCListBoxWin(wxWindow* parent, wxWindowID id)
|
||||||
|
@@ -1877,6 +1877,7 @@ void wxStyledTextCtrl::OnSize(wxSizeEvent& evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
||||||
|
SetFocus();
|
||||||
wxPoint pt = evt.GetPosition();
|
wxPoint pt = evt.GetPosition();
|
||||||
m_swx->DoButtonDown(Point(pt.x, pt.y), m_stopWatch.Time(),
|
m_swx->DoButtonDown(Point(pt.x, pt.y), m_stopWatch.Time(),
|
||||||
evt.ShiftDown(), evt.ControlDown(), evt.AltDown());
|
evt.ShiftDown(), evt.ControlDown(), evt.AltDown());
|
||||||
|
@@ -330,6 +330,7 @@ void wxStyledTextCtrl::OnSize(wxSizeEvent& evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) {
|
||||||
|
SetFocus();
|
||||||
wxPoint pt = evt.GetPosition();
|
wxPoint pt = evt.GetPosition();
|
||||||
m_swx->DoButtonDown(Point(pt.x, pt.y), m_stopWatch.Time(),
|
m_swx->DoButtonDown(Point(pt.x, pt.y), m_stopWatch.Time(),
|
||||||
evt.ShiftDown(), evt.ControlDown(), evt.AltDown());
|
evt.ShiftDown(), evt.ControlDown(), evt.AltDown());
|
||||||
|
Reference in New Issue
Block a user