X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/142b3bc26a6e93f5857bc053c7748b2c845c4a8e..72db8894790c0fc32a8a57e9e2f750e8f95222b1:/docs/latex/wx/config.tex diff --git a/docs/latex/wx/config.tex b/docs/latex/wx/config.tex index 920d830406..0a44bd3fd2 100644 --- a/docs/latex/wx/config.tex +++ b/docs/latex/wx/config.tex @@ -187,7 +187,7 @@ config file. All functions here return FALSE when there are no more items. You must pass the same index to GetNext and GetFirst (don't modify it). Please note that it is {\bf not} the index of the current item (you will have -some great surprizes with wxRegConfig if you assume this) and you shouldn't +some great surprises with wxRegConfig if you assume this) and you shouldn't even look at it: it is just a "cookie" which stores the state of the enumeration. It can't be stored inside the class because it would prevent you from running several enumerations simultaneously, that's why you must pass it @@ -257,7 +257,7 @@ Currently, only two types of data are supported: string and long (but it might change in the near future). To work with other types: for {\it int} or {\it bool} you can work with function taking/returning {\it long} and just use the casts. Better yet, just use {\it long} for all variables which you're going to -save in the config file: chances are that \tt{sizeof(bool) == sizeof(int) == sizeof(long)} anyhow on your system. For {\it float}, {\it double} and, in +save in the config file: chances are that {\tt sizeof(bool) == sizeof(int) == sizeof(long)} anyhow on your system. For {\it float}, {\it double} and, in general, any other type you'd have to translate them to/from string representation and use string functions. @@ -309,8 +309,8 @@ config file: UserData = %windir%\\data.dat \end{verbatim} % $ % help EMACS syntax highlighting... -the call to \tt{config->Read("UserData")} will return something like -\tt{"/home/zeitlin/data"} if you're lucky enough to run a Linux system ;-) +the call to {\tt config->Read("UserData")} will return something like +{\tt "/home/zeitlin/data"} if you're lucky enough to run a Linux system ;-) Although this feature is very useful, it may be annoying if you read a value which containts '\$' or '\%' symbols (\% is used for environment variables