It is particularly suitable for storing bitmaps from resources or included XPM files so that they can be used with wxHTML or wxWebView.
#ifndef __WXMSW__
#include "logo.xpm"
#endif
{
"<html><body>About: "
"<img src=\"memory:logo.png\"></body></html>");
#ifdef USE_WEBVIEW
browser->
LoadURL(
"memory:about.htm");
#else
#endif
dlg.SetAutoLayout(true);
dlg.Centre();
dlg.ShowModal();
}
The basic idea behind a box sizer is that windows will most often be laid out in rather simple basic ...
Definition sizer.h:1863
This event class contains information about command events, which originate from a variety of simple ...
Definition event.h:2013
A dialog box is a window with a title bar and sometimes a system menu, which can be moved around the ...
Definition dialog.h:155
static void AddHandler(wxFileSystemHandler *handler)
This static function adds new handler into the list of handlers (see wxFileSystemHandler) which provi...
int GetHeight() const
Returns height of the cell (m_Height member).
int GetWidth() const
Returns width of the cell (m_Width member).
wxHtmlWindow is probably the only class you will directly use unless you want to do something special...
Definition htmlwin.h:158
void SetBorders(int b)
This function sets the space between border of window and HTML contents.
wxHtmlContainerCell * GetInternalRepresentation() const
Returns pointer to the top-level container.
virtual bool LoadPage(const wxString &location)
Unlike SetPage() this function first loads the HTML page from location and then displays it.
This wxFileSystem handler can store arbitrary data in memory stream and make them accessible via an U...
Definition fs_mem.h:72
static void AddFile(const wxString &filename, wxImage &image, wxBitmapType type)
Adds a file to the list of the files stored in memory.
static void RemoveFile(const wxString &filename)
Removes a file from memory FS and frees the occupied memory.
A wxSize is a useful data structure for graphics operations.
Definition gdicmn.h:872
wxSize Fit(wxWindow *window)
Tell the sizer to resize the window so that its client area matches the sizer's minimal size (Compute...
wxSizerItem * Add(wxWindow *window, const wxSizerFlags &flags)
Appends a child to the sizer.
void SetSizer(wxSizer *sizer)
Set the sizer tracked by this item.
A static line is just a line which may be used in a dialog to separate the groups of controls.
Definition statline.h:32
String class for passing textual data to or receiving it from wxWidgets.
Definition string.h:314
A wxWebView file system handler to support standard wxFileSystem protocols of the form example:page....
Definition webviewfshandler.h:24
This control may be used to render web (HTML / CSS / javascript) documents.
Definition webview.h:305
virtual void LoadURL(const wxString &url)=0
Load a web page from a URL.
virtual void RegisterHandler(wxSharedPtr< wxWebViewHandler > handler)=0
Registers a custom scheme handler.
static wxWebView * New(const wxString &backend=wxWebViewBackendDefault)
Factory function to create a new wxWebView with two-step creation, wxWebView::Create should be called...
@ wxVERTICAL
Definition defs.h:28
@ wxEXPAND
Definition defs.h:115
@ wxALIGN_RIGHT
Definition defs.h:83
@ wxALL
Definition defs.h:57
@ wxRIGHT
Definition defs.h:45
@ wxLEFT
Definition defs.h:44
@ wxID_ANY
Any id: means that we don't care about the id, whether when installing an event handler or when creat...
Definition defs.h:596
@ wxID_OK
Standard button and menu IDs.
Definition defs.h:658
#define wxBITMAP(bitmapName)
This macro loads a bitmap from either application resources (on the platforms for which they exist,...
Definition gdicmn.h:1049
@ wxBITMAP_TYPE_PNG
Definition gdicmn.h:32
const wxPoint wxDefaultPosition
Global instance of a wxPoint initialized with values (-1,-1).
Definition gdicmn.h:714
#define wxHW_SCROLLBAR_NEVER
Definition htmlwin.h:9
const wxString & _(const wxString &string)
Macro to be used around all literal strings that should be translated.