mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 17:02:51 +08:00
Document that XRC default_size for bitmaps is in DIPs
In particular, mention that it doesn't make sense to express it in dialog units and that this is not supported. See #24698, #24840.
This commit is contained in:
@@ -405,6 +405,10 @@ When using SVG file you must also specify @c default_size attribute
|
||||
@code
|
||||
<bitmap default_size="32,32">new.svg</bitmap>
|
||||
@endcode
|
||||
Note that, unlike most of the other sizes in XRC, this size is expressed in
|
||||
DPI-independent pixels and is not scaled by DPI scaling factor. Because of
|
||||
this, it can't be specified in dialog units, which are, by definition,
|
||||
DPI-dependent, but only in pixels as shown above.
|
||||
|
||||
Alternatively, it is possible to specify the bitmap using wxArtProvider IDs.
|
||||
In this case, the property element has no textual value (filename) and instead
|
||||
|
||||
Reference in New Issue
Block a user