wxsystemoptions
wxsystemoptions stores option/value pairs that wxwidgets itself or
applications can use to alter behaviour at run-time. it can be
used to optimize behaviour that doesn't deserve a distinct api,
but is still important to be able to configure.
these options are currently recognised by wxwidgets.
windows
option
|
value
|
no-maskblt
|
1 to never use win32's maskblt function, 0 to allow it to be used where possible. default: 0.
in some circumstances the maskblt function can be slower than using the fallback code, especially if using
dc cacheing. by default, maskblt will be used where it is implemented by the operating system and driver.
|
msw.remap
|
if 1 (the default), wxtoolbar bitmap colours will be remapped
to the current theme's values. set this to 0 to disable this functionality, for example if you're using
more than 16 colours in your tool bitmaps.
|
msw.window.no-clip-children
|
if 1, windows will not automatically get the ws_clipchildren
style. this restores the way windows are refreshed back to the method used in versions of wxwidgets
earlier than 2.5.4, and for some complex window hierarchies it can reduce apparent refresh delays. you may
still specify wxclip_children for individual windows.
|
msw.notebook.themed-background
|
if set to 0, globally disables themed backgrounds on notebook
pages. note that this won't disable the theme on the actual notebook background (noticeable only if there are no
pages).
|
msw.staticbox.optimized-paint
|
if set to 0, switches off optimized wxstaticbox painting.
setting this to 0 causes more flicker, but allows applications to paint graphics on the parent of a static box
(the optimized refresh causes any such drawing to disappear).
|
msw.display.directdraw
|
if set to 1, use directdraw-based implementation of
wxdisplay. by default the standard win32 functions are
used.
|
msw.font.no-proof-quality
|
if set to 1, use default fonts quality
instead of proof quality when creating fonts. with proof quality the fonts
have slightly better appearance but not all fonts are available in this
quality, e.g. the terminal font in small sizes is not and this option may be
used if wider fonts selection is more important than higher quality.
|
mac
option
|
value
|
mac.window-plain-transition
|
if 1, uses a plainer transition when showing
a window. you can also use the symbol wxmac_window_plain_transition.
|
window-default-variant
|
the default variant used by windows (cast to integer from the wxwindowvariant enum).
also known as wxwindow_default_variant.
|
mac.listctrl.always_use_generic
|
tells wxlistctrl to use the generic
control even when it is capable of using the native control instead.
also knwon as wxmac_always_use_generic_listctrl.
|
mgl
option
|
value
|
mgl.aa-threshold
|
set this integer option to point
size below which fonts are not antialiased. default: 10.
|
mgl.screen-refresh
|
screen refresh rate in hz.
a reasonable default is used if not specified.
|
motif
option
|
value
|
motif.largebuttons
|
if 1, uses a bigger default size for wxbuttons.
|
the compile-time option to include or exclude this functionality
is wxuse_system_options.
derived from
wxobject
include files
<wx/sysopt.h>
members
wxsystemoptions::wxsystemoptions
wxsystemoptions::getoption
wxsystemoptions::getoptionint
wxsystemoptions::hasoption
wxsystemoptions::isfalse
wxsystemoptions::setoption
wxsystemoptions::wxsystemoptions
wxsystemoptions()
default constructor. you don't need to create an instance of wxsystemoptions
since all of its functions are static.
wxsystemoptions::getoption
wxstring getoption(const wxstring& name) const
gets an option. the function is case-insensitive to name.
returns empty string if the option hasn't been set.
see also
wxsystemoptions::setoption,
wxsystemoptions::getoptionint,
wxsystemoptions::hasoption
wxsystemoptions::getoptionint
int getoptionint(const wxstring& name) const
gets an option as an integer. the function is case-insensitive to name.
if the option hasn't been set, this function returns 0.
see also
wxsystemoptions::setoption,
wxsystemoptions::getoption,
wxsystemoptions::hasoption
wxsystemoptions::hasoption
bool hasoption(const wxstring& name) const
returns true if the given option is present. the function is case-insensitive to name.
see also
wxsystemoptions::setoption,
wxsystemoptions::getoption,
wxsystemoptions::getoptionint
wxsystemoptions::isfalse
bool isfalse(const wxstring& name) const
returns true if the option with the given name had been set to 0
value. this is mostly useful for boolean options for which you can't use
getoptionint(name) == 0 as this would also be true if the option
hadn't been set at all.
wxsystemoptions::setoption
void setoption(const wxstring& name, const wxstring& value)
void setoption(const wxstring& name, int value)
sets an option. the function is case-insensitive to name.
see also
wxsystemoptions::getoption,
wxsystemoptions::getoptionint,
wxsystemoptions::hasoption
|