X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e72403492b3e78f8114d89baae6f81ea24c74647..b98bd6af23c1c73eb2cddf14da18455e5668de6d:/docs/latex/wx/fs_mem.tex diff --git a/docs/latex/wx/fs_mem.tex b/docs/latex/wx/fs_mem.tex index 1b9f8d61bc..3db09a4832 100644 --- a/docs/latex/wx/fs_mem.tex +++ b/docs/latex/wx/fs_mem.tex @@ -22,7 +22,7 @@ Example: void MyFrame::OnAbout(wxCommandEvent&) { wxBusyCursor bcur; - + wxFileSystem::AddHandler(new wxMemoryFSHandler); wxMemoryFSHandler::AddFile("logo.pcx", wxBITMAP(logo), wxBITMAP_TYPE_PCX); wxMemoryFSHandler::AddFile("about.htm", "About: " @@ -85,10 +85,12 @@ Constructor. Add file to list of files stored in memory. Stored data (bitmap, text or raw data) will be copied into private memory stream and available under -name "memory:" + filename. +name "memory:" + \arg{filename}. -Note that when storing image/bitmap, you must use image format that wxWindows -can write (e.g. JPG, PNG, see \helpref{wxImage documentation}{wximage})! +The \arg{type} argument is one of {\tt wxBITMAP\_TYPE\_XXX} constants. +Note that you must use a \arg{type} value (aka image format) +that wxWidgets can save (e.g. JPG, PNG, see \helpref{wxImage +documentation}{wximage})! \membersection{wxMemoryFSHandler::RemoveFile}\label{wxmemoryfshandlerremovefile}