Skip to content

Commit

Permalink
add SearchText support for wxw >= 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mcorino committed Nov 1, 2024
1 parent 11a1412 commit 73eee1a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rakelib/lib/director/textctrl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ def setup
spec.ignore 'wxTextCtrl::GTKGetTextBuffer',
'wxTextCtrl::GTKGetEditable'
end
if Config.instance.wx_version >= '3.3.0' && Config.instance.wx_port == :wxmsw
spec.items << 'wxTextSearch' << 'wxTextSearchResult'
spec.regard 'wxTextSearchResult::m_start', 'wxTextSearchResult::m_end'
spec.make_readonly 'wxTextSearchResult::m_start', 'wxTextSearchResult::m_end'
spec.rename_for_ruby 'start' => 'wxTextSearchResult::m_start',
'end' => 'wxTextSearchResult::m_end'
end
if Config.instance.wx_port == :wxqt
# not implemented
spec.ignore 'wxTextCtrl::OnDropFiles'
Expand Down

0 comments on commit 73eee1a

Please sign in to comment.