Use "pair of ints" type for wxGridBagSizer size and position in XRC
Introduce a new type for XRC values imaginatively called just "pair of integers" which can be used for values not expressed in pixels and hence for which it doesn't make sense to use dialog units nor to scale them by the DPI. Use this new type for wxGridBagSizer position and span elements to prevent them from being changed when using higher than normal DPI. Closes #17592.
This commit is contained in:
parent
c4d2ba1335
commit
f68c67aa85
6 changed files with 54 additions and 12 deletions
|
|
@ -442,6 +442,7 @@ t_colour = xsd:string { pattern = "#[0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][0-9a-z
|
|||
xsd:string { pattern = "[^#].*" }
|
||||
t_position = t_size
|
||||
t_size = xsd:string { pattern = "(-?\d+),(-?\d+)d?" }
|
||||
t_pair_ints = xsd:string { pattern = "(-?\d+),(-?\d+)" }
|
||||
t_dimension = xsd:string { pattern = "(-?\d+)d?" }
|
||||
|
||||
t_bitmap = t_url?,
|
||||
|
|
@ -1756,7 +1757,7 @@ wxBoxSizer_horz_item =
|
|||
[xrc:p="o"] element option {_, t_integer }* &
|
||||
[xrc:p="o"] element border {_, t_dimension }* &
|
||||
[xrc:p="o"] element minsize {_, t_size }* &
|
||||
[xrc:p="o"] element ratio {_, t_size }* &
|
||||
[xrc:p="o"] element ratio {_, t_pair_ints }* &
|
||||
[xrc:p="o"] element flag {_, t_horz_sizer_flags}*
|
||||
}
|
||||
|
||||
|
|
@ -1777,7 +1778,7 @@ wxBoxSizer_vert_item =
|
|||
[xrc:p="o"] element option {_, t_integer }* &
|
||||
[xrc:p="o"] element border {_, t_dimension }* &
|
||||
[xrc:p="o"] element minsize {_, t_size }* &
|
||||
[xrc:p="o"] element ratio {_, t_size }* &
|
||||
[xrc:p="o"] element ratio {_, t_pair_ints }* &
|
||||
[xrc:p="o"] element flag {_, t_vert_sizer_flags }*
|
||||
}
|
||||
|
||||
|
|
@ -1797,7 +1798,7 @@ wxGridSizer_item =
|
|||
stdObjectNodeAttributes &
|
||||
[xrc:p="o"] element border {_, t_dimension }* &
|
||||
[xrc:p="o"] element minsize {_, t_size }* &
|
||||
[xrc:p="o"] element ratio {_, t_size }* &
|
||||
[xrc:p="o"] element ratio {_, t_pair_ints }* &
|
||||
[xrc:p="o"] element flag {_, t_grid_sizer_flags }*
|
||||
}
|
||||
|
||||
|
|
@ -1817,9 +1818,9 @@ wxSizerGB_item =
|
|||
stdObjectNodeAttributes &
|
||||
[xrc:p="o"] element border {_, t_dimension }* &
|
||||
[xrc:p="o"] element minsize {_, t_size }* &
|
||||
[xrc:p="o"] element ratio {_, t_size }* &
|
||||
[xrc:p="o"] element cellpos {_, t_position }* &
|
||||
[xrc:p="o"] element cellspan {_, t_size }* &
|
||||
[xrc:p="o"] element ratio {_, t_pair_ints }* &
|
||||
[xrc:p="o"] element cellpos {_, t_pair_ints }* &
|
||||
[xrc:p="o"] element cellspan {_, t_pair_ints }* &
|
||||
[xrc:p="o"] element flag {_,
|
||||
xsd:string {
|
||||
pattern = "(wxLEFT|wxRIGHT|wxTOP|wxBOTTOM|wxNORTH|wxSOUTH|wxEAST|wxWEST|wxALL|wxGROW|wxEXPAND|wxSHAPED|wxSTRETCH_NOT|wxALIGN_CENTER|wxALIGN_CENTRE|wxALIGN_LEFT|wxALIGN_RIGHT|wxALIGN_TOP|wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTRE_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTRE_VERTICAL|wxRESERVE_SPACE_EVEN_IF_HIDDEN)( *\| *(wxLEFT|wxRIGHT|wxTOP|wxBOTTOM|wxNORTH|wxSOUTH|wxEAST|wxWEST|wxALL|wxGROW|wxEXPAND|wxSHAPED|wxSTRETCH_NOT|wxALIGN_CENTER|wxALIGN_CENTRE|wxALIGN_LEFT|wxALIGN_RIGHT|wxALIGN_TOP|wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTRE_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTRE_VERTICAL|wxRESERVE_SPACE_EVEN_IF_HIDDEN))*"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue