Browse CVS Repository
Contents of /malonnote/mnHtmlWindow.cpp
Parent Directory
| Revision Log
| Revision Graph
Revision 1.3 -
( show annotations)
( download)
( as text)
Thu Dec 22 10:48:29 2005 UTC
(18 years, 3 months ago)
by maloninc
Branch: MAIN
CVS Tags: dev_1_6-0001
Changes since 1.2: +6 -0 lines
File MIME type: text/x-c++src
for webkit, only for mac
| 1 |
#include <wx/wx.h> |
| 2 |
#include "mnHtmlWindow.h" |
| 3 |
|
| 4 |
DEFINE_EVENT_TYPE(mnEVT_LINK_CLICK) |
| 5 |
|
| 6 |
IMPLEMENT_DYNAMIC_CLASS(mnHtmlWindow, wxHtmlWindow) |
| 7 |
|
| 8 |
void mnHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link) |
| 9 |
{ |
| 10 |
wxCommandEvent event(mnEVT_LINK_CLICK, GetId()); |
| 11 |
event.SetEventObject(this); |
| 12 |
event.SetString(link.GetHref()); |
| 13 |
GetEventHandler()->ProcessEvent(event); |
| 14 |
} |
| 15 |
|
| 16 |
bool mnHtmlWindow::SetPage(const wxString& source) |
| 17 |
{ |
| 18 |
SetPageSource((wxString&)source); |
| 19 |
} |
|