public:
//@{
/**
- Constructor. The parameters are the same as for the wxScrolledWindow
+ Constructor. The parameters are the same as wxScrolled::wxScrolled()
constructor.
@param style
@param source
HTML code fragment
- @returns @false if an error occurred, @true otherwise.
+ @return @false if an error occurred, @true otherwise.
*/
bool AppendToPage(const wxString& source);
/**
Loads HTML page from file and displays it.
- @returns @false if an error occurred, @true otherwise
+ @return @false if an error occurred, @true otherwise
@see LoadPage()
*/
The address of document. See wxFileSystem for details on address format and
behaviour of "opener".
- @returns @false if an error occurred, @true otherwise
+ @return @false if an error occurred, @true otherwise
@see LoadFile()
*/
@param event
The mouse event containing other information about the click
- @returns @true if a link was clicked, @false otherwise.
+ @return @true if a link was clicked, @false otherwise.
*/
virtual bool OnCellClicked(wxHtmlCell cell, wxCoord x, wxCoord y,
const wxMouseEvent& event);
/**
Selects the line of text that @a pos points at. Note that @e pos
is relative to the top of displayed page, not to window's origin, use
- wxScrolledWindow::CalcUnscrolledPosition
+ wxScrolled::CalcUnscrolledPosition()
to convert physical coordinate.
@see SelectAll(), SelectWord()
/**
Selects the word at position @e pos. Note that @e pos
is relative to the top of displayed page, not to window's origin, use
- wxScrolledWindow::CalcUnscrolledPosition
+ wxScrolled::CalcUnscrolledPosition()
to convert physical coordinate.
@see SelectAll(), SelectLine()
@param source
The HTML document source to be displayed.
- @returns @false if an error occurred, @true otherwise.
+ @return @false if an error occurred, @true otherwise.
*/
bool SetPage(const wxString& source);
@b After calling SetRelatedFrame(),
this sets statusbar slot where messages will be displayed.
(Default is -1 = no messages.)
-
- @param bar
- statusbar slot number (0..n)
+
+ @param index
+ Statusbar slot number (0..n)
+ */
+ void SetRelatedStatusBar(int index);
+
+ /**
+ @b Sets the associated statusbar where messages will be displayed.
+ Call this instead of SetRelatedFrame() if you want statusbar updates only,
+ no changing of the frame title.
+
+ @param statusbar
+ Statusbar pointer
+ @param index
+ Statusbar slot number (0..n)
+
+ @since 2.9.0
*/
- void SetRelatedStatusBar(int bar);
+ void SetRelatedStatusBar(wxStatusBar* statusbar, int index = 0);
/**
Returns content of currently displayed page as plain text.