Extend wxBitmap XRC handler to support all button attributes
Add support for the missing wxBU_NOTEXT style, bitmaps for the other than default states (pressed, focus, disabled and current) and margins to wxBitmapXmlHandler. Note that the images for the other states were previously already supported by wxBitmapButton XRC handler, but not by the wxBitmap one, even though both bitmap classes support them. Closes #22451.
This commit is contained in:
parent
4f8b49ca43
commit
76d1b3c9a9
3 changed files with 34 additions and 0 deletions
|
|
@ -736,6 +736,11 @@ wxButton =
|
|||
stdWindowProperties &
|
||||
[xrc:p="o"] element label {_, t_text }* &
|
||||
[xrc:p="o"] element bitmap {_, t_bitmap }* &
|
||||
[xrc:p="o"] element pressed {_, t_bitmap }* &
|
||||
[xrc:p="o"] element focus {_, t_bitmap }* &
|
||||
[xrc:p="o"] element disabled {_, t_bitmap }* &
|
||||
[xrc:p="o"] element current {_, t_bitmap }* &
|
||||
[xrc:p="o"] element margins {_, t_size }* &
|
||||
[xrc:p="o"] element bitmapposition {_, t_direction }* &
|
||||
[xrc:p="o"] element default {_, t_bool }*
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue