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 @subsubsection xrc_wxstaticbitmap wxStaticBitmap
wxStaticBitmap requires @c bitmap or @c bitmaps tag.
@beginTable @beginTable
@hdr3col{property, type, description} @hdr3col{property, type, description}
@row3col{bitmap, @ref overview_xrcformat_type_bitmap, @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 @endTable
@subsubsection xrc_wxstaticbox wxStaticBox @subsubsection xrc_wxstaticbox wxStaticBox

View File

@@ -1556,7 +1556,10 @@ wxStaticBitmap =
attribute class { "wxStaticBitmap" } & attribute class { "wxStaticBitmap" } &
stdObjectNodeAttributes & stdObjectNodeAttributes &
stdWindowProperties & 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, bmp->Create(m_parentAsWindow,
GetID(), GetID(),
GetBitmap(wxT("bitmap"), wxART_OTHER, GetSize()), GetBitmapOrBitmaps(wxT("bitmap"), wxT("bitmaps"), wxART_OTHER, GetSize()),
GetPosition(), GetSize(), GetPosition(), GetSize(),
GetStyle(), GetStyle(),
GetName()); GetName());