Re: wxStyledTextCtrl and predictive text problem on Mac (wx 3.2.6, MacOS 15.3).
Tony Kennedy <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
I've managed to recreate the problem using the sample by creating a small dialog, adding the wxStyledTextCtrl and then hitting the # key to display the autocomplete list. The list appears under the dialog. I'm not sure what the correct procedure is to submit this as a bug. All the best, Tony. PS. I've attached an image and the diff file. On Wednesday, 26 February 2025 at 13:26:24 UTC Tony Kennedy wrote: > I should add, the sample works fine. > > I've tried all sorts of things (Raise, CallAfter etc) to get this to work. > Driving me nuts! > > Tony. > > > On Wednesday, 26 February 2025 at 11:25:48 UTC Tony Kennedy wrote: > >> Hi all, >> >> I've got a problem on the Mac with a wxStyledTextCtrl. The control is >> placed in a wxPanel which is in a wxAuiNotebook and is part of a modal >> dialog. >> >> It works perfectly on Windows and Linux. But on the Mac, the popup >> showing the predictive text shows up behind the dialog. But if I switch to >> a different application and back to mine, the popup shows correctly on top >> of the wxStyledTextCtrl. >> >> I haven't got a clue where to even start looking to try and fix this. Has >> anyone else experienced this? >> >> Thanks in advance, >> >> Tony. >> > -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/wx-users/453fac9e-77a1-442f-a57d-ff046478ca80n%40googlegroups.com.
wxStyledTextCtrl_MacBug_AutoCompFloatUnderDialog.diff
(text/plain, 581 B)
diff --git a/samples/stc/stctest.cpp b/samples/stc/stctest.cpp
index de078dba04..67559289df 100644
--- a/samples/stc/stctest.cpp
+++ b/samples/stc/stctest.cpp
@@ -294,9 +294,15 @@ AppFrame::AppFrame (const wxString &title)
CreateMenu ();
// open first page
- m_edit = new Edit (this, wxID_ANY);
+ wxDialog *d = new wxDialog(this, wxID_ANY, "");
+ wxSizer* sizer = new wxBoxSizer(wxVERTICAL);
+
+ m_edit = new Edit (d, wxID_ANY);
m_edit->SetFocus();
+ sizer->Add(m_edit, wxSizerFlags(1).Expand());
+ d->ShowModal();
+
FileOpen ("stctest.cpp");
}
wxStyledTextCtrl_MacBug_AutoCompFloatUnderDialog.jpg
(image/jpeg, 12.1 KB) - not displayed