Recognize wxStyledTextCtrl in XRC in the schema

This should have been part of e2aca9cbd5 (Add wxStyledTextCtrl XRC
handler, 2021-09-22).

(cherry picked from commit e12f00247730a03d30c548b939322b50e22d625b)
This commit is contained in:
Vadim Zeitlin 2022-08-18 21:56:11 +02:00
parent 0ea43a2592
commit 81e1f78b7f
2 changed files with 12 additions and 0 deletions

View File

@ -241,6 +241,7 @@ All (GUI):
- Fix grid window scrollbars when freezing part of the grid (#22602). - Fix grid window scrollbars when freezing part of the grid (#22602).
- Avoid warnings with wxStaticText flags in C++20 (David Connet, #22656). - Avoid warnings with wxStaticText flags in C++20 (David Connet, #22656).
- Fix AUI floating pane position when dragging (Konstantin S. Matveyev, #22533). - Fix AUI floating pane position when dragging (Konstantin S. Matveyev, #22533).
- Add wxStyledTextCtrl support to XRC schema file.
wxGTK: wxGTK:

View File

@ -227,6 +227,7 @@ builtinWindowClasses =
| wxStaticBox | wxStaticBox
| wxStaticLine | wxStaticLine
| wxStaticText | wxStaticText
| wxStyledTextCtrl
| wxTextCtrl | wxTextCtrl
| wxTimePickerCtrl | wxTimePickerCtrl
| wxToggleButton | wxToggleButton
@ -329,6 +330,7 @@ builtinClassesNames =
| "wxStaticBox" | "wxStaticBox"
| "wxStaticLine" | "wxStaticLine"
| "wxStaticText" | "wxStaticText"
| "wxStyledTextCtrl"
| "wxTextCtrl" | "wxTextCtrl"
| "wxTimePickerCtrl" | "wxTimePickerCtrl"
| "wxToggleButton" | "wxToggleButton"
@ -1597,6 +1599,15 @@ wxStaticText =
} }
wxStyledTextCtrl =
element object {
attribute class { "wxStyledTextCtrl" } &
stdObjectNodeAttributes &
stdWindowProperties &
[xrc:p="o"] element wrapmode {_, ("wxSTC_WRAP_NONE" | "wxSTC_WRAP_WORD" | "wxSTC_WRAP_CHAR" | "wxSTC_WRAP_WHITESPACE" ) }*
}
wxTextCtrl = wxTextCtrl =
element object { element object {
attribute class { "wxTextCtrl" } & attribute class { "wxTextCtrl" } &