XRC: ability to create wxStaticBitmap with wxBitmapBundle
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 }
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user