If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
- In need of some credit
- Posts: 1
- Joined: Fri Feb 23, 2007 9:37 am
I'm trying to implement find&replace operations in wxStyledTextCtrl but the wxFindReplaceDialog doesn't show. See this code:
Code: Select all
void Editor::OnEditFind(wxCommandEvent& WXUNUSED(_event))
wxFindReplaceDialog findDialog( GetAppFrame(), &findData, _("Find") );
When I call ShowModal() instead of Show() the dialog is shown but when I close it, the main window doesn't respond and the focus is given to window which doesn't belong to my program. I use wxWidgets 2.8.0 and VC++ 2005.
What's wrong with this code ? I would appreciate if anyone can provide some help.
- Super wx Problem Solver
- Posts: 350
- Joined: Wed May 03, 2006 2:36 pm
- Location: India
Does GetAppFrame() really returns the parent windows address?
- I live to help wx-kind
- Posts: 186
- Joined: Tue Nov 01, 2005 9:22 am
I'd ask the same. If you're interested in incremental find/replace panes for wxStyledTextCtrl (supporting regular expressions), I could post a cheap and cheerful wxPanel-derived solution that works with wxAUI.
It's very new and might be buggy (only released it yesterday), but seems to work ok so far.