]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/sysopt.tex
better documentation for wxWindow::SetSizerAndFit()
[wxWidgets.git] / docs / latex / wx / sysopt.tex
CommitLineData
0cbff120
JS
1\section{\class{wxSystemOptions}}\label{wxsystemoptions}
2
fc2171bd 3wxSystemOptions stores option/value pairs that wxWidgets itself or
0cbff120
JS
4applications can use to alter behaviour at run-time. It can be
5used to optimize behaviour that doesn't deserve a distinct API,
6but is still important to be able to configure.
7
b0dd9c00
JS
8These options are currently recognised by wxWidgets.
9
10\wxheading{Windows}
0cbff120
JS
11
12\twocolwidtha{7cm}
13\begin{twocollist}\itemsep=0pt
14\twocolitem{{\bf Option}}{{\bf Value}}
15\twocolitem{no-maskblt}{1 to never use WIN32's MaskBlt function, 0 to allow it to be used where possible. Default: 0.
0cbff120 16In some circumstances the MaskBlt function can be slower than using the fallback code, especially if using
b0dd9c00
JS
17DC cacheing. By default, MaskBlt will be used where it is implemented by the operating system and driver.}
18\twocolitem{msw.remap}{If 1 (the default), wxToolBar bitmap colours will be remapped
6fdd4565
JS
19to the current theme's values. Set this to 0 to disable this functionality, for example if you're using
20more than 16 colours in your tool bitmaps.}
b0dd9c00
JS
21\twocolitem{msw.window.no-clip-children}{If 1, windows will not automatically get the WS\_CLIPCHILDREN
22style. This restores the way windows are refreshed back to the method used in versions of wxWidgets
23earlier than 2.5.4, and for some complex window hierarchies it can reduce apparent refresh delays. You may
24still specify wxCLIP\_CHILDREN for individual windows.}
25\twocolitem{msw.notebook.themed-background}{If set to 0, globally disables themed backgrounds on notebook
26pages. Note that this won't disable the theme on the actual notebook background (noticeable only if there are no
27pages).}
8e44f3ca
JS
28\twocolitem{msw.staticbox.optimized-paint}{If set to 0, switches off optimized wxStaticBox painting.
29Setting this to 0 causes more flicker, but allows applications to paint graphics on the parent of a static box
30(the optimized refresh causes any such drawing to disappear).}
afcc11bb
VZ
31\twocolitem{msw.display.directdraw}{If set to 1, use DirectDraw-based implementation of
32\helpref{wxDisplay}{wxdisplay}. By default the standard Win32 functions are
33used.}
66160760
VZ
34\twocolitem{msw.font.no-proof-quality}{If set to 1, use default fonts quality
35instead of proof quality when creating fonts. With proof quality the fonts
36have slightly better appearance but not all fonts are available in this
37quality, e.g. the Terminal font in small sizes is not and this option may be
38used if wider fonts selection is more important than higher quality.}
b0dd9c00
JS
39\end{twocollist}
40
05692417 41\wxheading{GTK+}
a95a6eb4
VZ
42
43\twocolwidtha{7cm}
44\begin{twocollist}\itemsep=0pt
45\twocolitem{{\bf Option}}{{\bf Value}}
46\twocolitem{gtk.tlw.can-set-transparent}{\helpref{wxTopLevelWindow::CanSetTransparent()}{wxtoplevelwindowcansettransparent}
47method normally tries to detect automatically whether transparency for top
48level windows is currently supported, however this may sometimes fail and this
49option allows to override the automatic detection. Setting it to $1$ makes the
50transparency be always available (setting it can still fail, of course) and
51setting it to $0$ makes it always unavailable.}
9d0e0377
VZ
52\twocolitem{gtk.desktop}{This option can be set to override the default desktop
53environment determination. Supported values are \texttt{GNOME} and \texttt{KDE}.}
05692417
JS
54\twocolitem{gtk.window.force-background-colour}{If 1, the backgrounds of windows with the wxBG\_STYLE\_COLOUR background style are cleared forcibly instead
55of relying on the underlying GTK+ window colour. This works around a display problem when running applications under KDE with the gtk-qt theme installed (0.6 and below).}
a95a6eb4
VZ
56\end{twocollist}
57
b0dd9c00
JS
58\wxheading{Mac}
59
60\twocolwidtha{7cm}
61\begin{twocollist}\itemsep=0pt
62\twocolitem{{\bf Option}}{{\bf Value}}
63\twocolitem{mac.window-plain-transition}{If 1, uses a plainer transition when showing
64a window. You can also use the symbol wxMAC\_WINDOW\_PLAIN\_TRANSITION.}
65\twocolitem{window-default-variant}{The default variant used by windows (cast to integer from the wxWindowVariant enum).
66Also known as wxWINDOW\_DEFAULT\_VARIANT.}
152e99d7 67\twocolitem{mac.listctrl.always\_use\_generic}{Tells wxListCtrl to use the generic
da97b260
KO
68control even when it is capable of using the native control instead.
69Also knwon as wxMAC\_ALWAYS\_USE\_GENERIC\_LISTCTRL.}
b0dd9c00
JS
70\end{twocollist}
71
72\wxheading{MGL}
73
74\twocolwidtha{7cm}
75\begin{twocollist}\itemsep=0pt
76\twocolitem{{\bf Option}}{{\bf Value}}
77\twocolitem{mgl.aa-threshold}{Set this integer option to point
78size below which fonts are not antialiased. Default: 10.}
79\twocolitem{mgl.screen-refresh}{Screen refresh rate in Hz.
80A reasonable default is used if not specified.}
81\end{twocollist}
82
83\wxheading{Motif}
84
85\twocolwidtha{7cm}
86\begin{twocollist}\itemsep=0pt
87\twocolitem{{\bf Option}}{{\bf Value}}
88\twocolitem{motif.largebuttons}{If 1, uses a bigger default size for wxButtons.}
0cbff120
JS
89\end{twocollist}
90
91The compile-time option to include or exclude this functionality
92is wxUSE\_SYSTEM\_OPTIONS.
93
94\wxheading{Derived from}
95
96\helpref{wxObject}{wxobject}
97
98\wxheading{Include files}
99
100<wx/sysopt.h>
101
102\latexignore{\rtfignore{\wxheading{Members}}}
103
82a16d7e 104
08f1d438 105\membersection{wxSystemOptions::wxSystemOptions}\label{wxsystemoptionsctor}
0cbff120
JS
106
107\func{}{wxSystemOptions}{\void}
108
109Default constructor. You don't need to create an instance of wxSystemOptions
110since all of its functions are static.
111
82a16d7e 112
0cbff120
JS
113\membersection{wxSystemOptions::GetOption}\label{wxsystemoptionsgetoption}
114
115\constfunc{wxString}{GetOption}{\param{const wxString\&}{ name}}
116
117Gets an option. The function is case-insensitive to {\it name}.
118
82a16d7e
VZ
119Returns empty string if the option hasn't been set.
120
0cbff120
JS
121\wxheading{See also}
122
123\helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
124\helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint},\rtfsp
125\helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption}
126
82a16d7e 127
0cbff120
JS
128\membersection{wxSystemOptions::GetOptionInt}\label{wxsystemoptionsgetoptionint}
129
130\constfunc{int}{GetOptionInt}{\param{const wxString\&}{ name}}
131
132Gets an option as an integer. The function is case-insensitive to {\it name}.
133
82a16d7e
VZ
134If the option hasn't been set, this function returns $0$.
135
0cbff120
JS
136\wxheading{See also}
137
138\helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
139\helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp
140\helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption}
141
82a16d7e 142
0cbff120
JS
143\membersection{wxSystemOptions::HasOption}\label{wxsystemoptionshasoption}
144
145\constfunc{bool}{HasOption}{\param{const wxString\&}{ name}}
146
82a16d7e 147Returns \true if the given option is present. The function is case-insensitive to {\it name}.
0cbff120
JS
148
149\wxheading{See also}
150
151\helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
152\helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp
153\helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint}
154
82a16d7e 155
8de6b9bb
VZ
156\membersection{wxSystemOptions::IsFalse}\label{wxsystemoptionsisfalse}
157
158\constfunc{bool}{IsFalse}{\param{const wxString\&}{ name}}
159
160Returns \true if the option with the given \arg{name} had been set to $0$
161value. This is mostly useful for boolean options for which you can't use
162\texttt{GetOptionInt(name) == 0} as this would also be true if the option
163hadn't been set at all.
164
165
0cbff120
JS
166\membersection{wxSystemOptions::SetOption}\label{wxsystemoptionssetoption}
167
168\func{void}{SetOption}{\param{const wxString\&}{ name}, \param{const wxString\&}{ value}}
169
170\func{void}{SetOption}{\param{const wxString\&}{ name}, \param{int}{ value}}
171
172Sets an option. The function is case-insensitive to {\it name}.
173
174\wxheading{See also}
175
176\helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp
177\helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint},\rtfsp
178\helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption}
179