]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/sysopt.tex
a8b885da0aa21195a19645157ae2fd04255bdb77
[wxWidgets.git] / docs / latex / wx / sysopt.tex
1 \section{\class{wxSystemOptions}}\label{wxsystemoptions}
2
3 wxSystemOptions stores option/value pairs that wxWidgets itself or
4 applications can use to alter behaviour at run-time. It can be
5 used to optimize behaviour that doesn't deserve a distinct API,
6 but is still important to be able to configure.
7
8 These options are currently recognised by wxWidgets.
9
10 \wxheading{Windows}
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.
16 In some circumstances the MaskBlt function can be slower than using the fallback code, especially if using
17 DC 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
19 to the current theme's values. Set this to 0 to disable this functionality, for example if you're using
20 more than 16 colours in your tool bitmaps.}
21 \twocolitem{msw.window.no-clip-children}{If 1, windows will not automatically get the WS\_CLIPCHILDREN
22 style. This restores the way windows are refreshed back to the method used in versions of wxWidgets
23 earlier than 2.5.4, and for some complex window hierarchies it can reduce apparent refresh delays. You may
24 still specify wxCLIP\_CHILDREN for individual windows.}
25 \twocolitem{msw.notebook.themed-background}{If set to 0, globally disables themed backgrounds on notebook
26 pages. Note that this won't disable the theme on the actual notebook background (noticeable only if there are no
27 pages).}
28 \twocolitem{msw.staticbox.optimized-paint}{If set to 0, switches off optimized wxStaticBox painting.
29 Setting 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).}
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
33 used.}
34 \twocolitem{msw.font.no-proof-quality}{If set to 1, use default fonts quality
35 instead of proof quality when creating fonts. With proof quality the fonts
36 have slightly better appearance but not all fonts are available in this
37 quality, e.g. the Terminal font in small sizes is not and this option may be
38 used if wider fonts selection is more important than higher quality.}
39 \end{twocollist}
40
41 \wxheading{GTK+}
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}
47 method normally tries to detect automatically whether transparency for top
48 level windows is currently supported, however this may sometimes fail and this
49 option allows to override the automatic detection. Setting it to $1$ makes the
50 transparency be always available (setting it can still fail, of course) and
51 setting it to $0$ makes it always unavailable.}
52 \twocolitem{gtk.desktop}{This option can be set to override the default desktop
53 environment determination. Supported values are \texttt{GNOME} and \texttt{KDE}.}
54 \twocolitem{gtk.window.force-background-colour}{If 1, the backgrounds of windows with the wxBG\_STYLE\_COLOUR background style are cleared forcibly instead
55 of 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).}
56 \end{twocollist}
57
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
64 a 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).
66 Also known as wxWINDOW\_DEFAULT\_VARIANT.}
67 \twocolitem{mac.listctrl.always\_use\_generic}{Tells wxListCtrl to use the generic
68 control even when it is capable of using the native control instead.
69 Also knwon as wxMAC\_ALWAYS\_USE\_GENERIC\_LISTCTRL.}
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
78 size below which fonts are not antialiased. Default: 10.}
79 \twocolitem{mgl.screen-refresh}{Screen refresh rate in Hz.
80 A 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.}
89 \end{twocollist}
90
91 \wxheading{All}
92
93 \twocolwidtha{7cm}
94 \begin{twocollist}\itemsep=0pt
95 \twocolitem{{\bf Option}}{{\bf Value}}
96 \twocolitem{sizer.desktopmargin.x}{The horizontal margin to subtract from the desktop size when computing the maximum top-level window size in wxSizer::Fit.}
97 \twocolitem{sizer.desktopmargin.y}{The vertical margin to subtract from the desktop size when computing the maximum top-level window size in wxSizer::Fit.}
98 \end{twocollist}
99
100 The compile-time option to include or exclude this functionality
101 is wxUSE\_SYSTEM\_OPTIONS.
102
103 \wxheading{Derived from}
104
105 \helpref{wxObject}{wxobject}
106
107 \wxheading{Include files}
108
109 <wx/sysopt.h>
110
111 \latexignore{\rtfignore{\wxheading{Members}}}
112
113
114 \membersection{wxSystemOptions::wxSystemOptions}\label{wxsystemoptionsctor}
115
116 \func{}{wxSystemOptions}{\void}
117
118 Default constructor. You don't need to create an instance of wxSystemOptions
119 since all of its functions are static.
120
121
122 \membersection{wxSystemOptions::GetOption}\label{wxsystemoptionsgetoption}
123
124 \constfunc{wxString}{GetOption}{\param{const wxString\&}{ name}}
125
126 Gets an option. The function is case-insensitive to {\it name}.
127
128 Returns empty string if the option hasn't been set.
129
130 \wxheading{See also}
131
132 \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
133 \helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint},\rtfsp
134 \helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption}
135
136
137 \membersection{wxSystemOptions::GetOptionInt}\label{wxsystemoptionsgetoptionint}
138
139 \constfunc{int}{GetOptionInt}{\param{const wxString\&}{ name}}
140
141 Gets an option as an integer. The function is case-insensitive to {\it name}.
142
143 If the option hasn't been set, this function returns $0$.
144
145 \wxheading{See also}
146
147 \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
148 \helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp
149 \helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption}
150
151
152 \membersection{wxSystemOptions::HasOption}\label{wxsystemoptionshasoption}
153
154 \constfunc{bool}{HasOption}{\param{const wxString\&}{ name}}
155
156 Returns \true if the given option is present. The function is case-insensitive to {\it name}.
157
158 \wxheading{See also}
159
160 \helpref{wxSystemOptions::SetOption}{wxsystemoptionssetoption},\rtfsp
161 \helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp
162 \helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint}
163
164
165 \membersection{wxSystemOptions::IsFalse}\label{wxsystemoptionsisfalse}
166
167 \constfunc{bool}{IsFalse}{\param{const wxString\&}{ name}}
168
169 Returns \true if the option with the given \arg{name} had been set to $0$
170 value. This is mostly useful for boolean options for which you can't use
171 \texttt{GetOptionInt(name) == 0} as this would also be true if the option
172 hadn't been set at all.
173
174
175 \membersection{wxSystemOptions::SetOption}\label{wxsystemoptionssetoption}
176
177 \func{void}{SetOption}{\param{const wxString\&}{ name}, \param{const wxString\&}{ value}}
178
179 \func{void}{SetOption}{\param{const wxString\&}{ name}, \param{int}{ value}}
180
181 Sets an option. The function is case-insensitive to {\it name}.
182
183 \wxheading{See also}
184
185 \helpref{wxSystemOptions::GetOption}{wxsystemoptionsgetoption},\rtfsp
186 \helpref{wxSystemOptions::GetOptionInt}{wxsystemoptionsgetoptionint},\rtfsp
187 \helpref{wxSystemOptions::HasOption}{wxsystemoptionshasoption}
188