From e12f00247730a03d30c548b939322b50e22d625b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 18 Aug 2022 20:19:26 +0100 Subject: [PATCH] Recognize wxStyledTextCtrl in XRC in the schema This should have been part of e2aca9cbd5 (Add wxStyledTextCtrl XRC handler, 2021-09-22). --- misc/schema/xrc_schema.rnc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/misc/schema/xrc_schema.rnc b/misc/schema/xrc_schema.rnc index 04e9523154..88c3e69d3f 100644 --- a/misc/schema/xrc_schema.rnc +++ b/misc/schema/xrc_schema.rnc @@ -227,6 +227,7 @@ builtinWindowClasses = | wxStaticBox | wxStaticLine | wxStaticText + | wxStyledTextCtrl | wxTextCtrl | wxTimePickerCtrl | wxToggleButton @@ -329,6 +330,7 @@ builtinClassesNames = | "wxStaticBox" | "wxStaticLine" | "wxStaticText" + | "wxStyledTextCtrl" | "wxTextCtrl" | "wxTimePickerCtrl" | "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 = element object { attribute class { "wxTextCtrl" } &