X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a660d684eda27638bca0384b2058911a31c8e845..60ce696e26a9351bb600e71a45d01d37cdf61628:/docs/latex/wx/tcommdlg.tex diff --git a/docs/latex/wx/tcommdlg.tex b/docs/latex/wx/tcommdlg.tex index 6f6fc688da..ccea6686b5 100644 --- a/docs/latex/wx/tcommdlg.tex +++ b/docs/latex/wx/tcommdlg.tex @@ -55,7 +55,7 @@ the wxColourDialog class. Here is an excerpt, which sets various parameters of a wxColourData object, including a grey scale for the custom colours. If the user did not cancel the dialog, the application retrieves the selected colour and -uses it to set the background of a canvas. +uses it to set the background of a window. \begin{verbatim} wxColourData data; @@ -72,9 +72,9 @@ uses it to set the background of a canvas. wxColourData retData = dialog.GetColourData(); wxColour col = retData.GetColour(); wxBrush brush(col, wxSOLID); - myCanvas->SetBackground(brush); - myCanvas->Clear(); - myCanvas->Refresh(); + myWindow->SetBackground(brush); + myWindow->Clear(); + myWindow->Refresh(); } \end{verbatim} @@ -128,7 +128,7 @@ and colour for drawing text on a canvas. Here is an excerpt: wxFontData retData = dialog.GetFontData(); canvasFont = retData.GetChosenFont(); canvasTextColour = retData.GetColour(); - myCanvas->Refresh(); + myWindow->Refresh(); } \end{verbatim} @@ -154,8 +154,7 @@ If path is ``", the current directory will be used. If filename is ``", no default filename will be supplied. The wildcard determines what files are displayed in the file selector, and file extension supplies a type extension for the required filename. Flags may be a combination of wxOPEN, -wxSAVE, wxOVERWRITE\_PROMPT, wxHIDE\_READONLY, or 0. They are only significant -at present in Windows. +wxSAVE, wxOVERWRITE\_PROMPT, wxHIDE\_READONLY, wxFILE\_MUST\_EXIST or 0. Both the X and Windows versions implement a wildcard filter. Typing a filename containing wildcards (*, ?) in the filename text item, and @@ -164,7 +163,7 @@ displayed. In the X version, supplying no default name will result in the wildcard filter being inserted in the filename text item; the filter is ignored if a default name is supplied. -Under Windows (only), the wildcard may be a specification for multiple +The wildcard may be a specification for multiple types of file with a description for each, such as: \begin{verbatim} @@ -208,5 +207,6 @@ a string or client data. Classes: \helpref{wxMultipleChoiceDialog}{wxmultiplechoicedialog} This dialog shows a list of choices, plus OK and (optionally) Cancel. The user can -select one or more of them. TODO. +select one or more of them. +