XRC: ability to create wxStaticBitmap with wxBitmapBundle

This commit is contained in:
Alexander Koshelev
2021-12-31 14:01:26 +03:00
parent 612c37f706
commit 96f5258df5
3 changed files with 10 additions and 3 deletions

View File

@@ -2145,10 +2145,14 @@ child and the second one for right/bottom child window.
@subsubsection xrc_wxstaticbitmap wxStaticBitmap
wxStaticBitmap requires @c bitmap or @c bitmaps tag.
@beginTable
@hdr3col{property, type, description}
@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
Bitmap to display (required).}
Bitmap to display. Mutually exclusive with @c bitmaps.}
@row3col{bitmaps, @ref overview_xrcformat_type_bitmaps,
BitmapBundle to display. Mutually exclusive with @c bitmap.}
@endTable
@subsubsection xrc_wxstaticbox wxStaticBox

View File

@@ -1556,7 +1556,10 @@ wxStaticBitmap =
attribute class { "wxStaticBitmap" } &
stdObjectNodeAttributes &
stdWindowProperties &
element bitmap {_, t_bitmap }
(
element bitmap {_, t_bitmap } |
element bitmaps {_, t_bitmaps }
)
}

View File

@@ -33,7 +33,7 @@ wxObject *wxStaticBitmapXmlHandler::DoCreateResource()
bmp->Create(m_parentAsWindow,
GetID(),
GetBitmap(wxT("bitmap"), wxART_OTHER, GetSize()),
GetBitmapOrBitmaps(wxT("bitmap"), wxT("bitmaps"), wxART_OTHER, GetSize()),
GetPosition(), GetSize(),
GetStyle(),
GetName());