Menu

[r8]: / src / myhtmlpane.cpp  Maximize  Restore  History

Download this file

37 lines (31 with data), 696 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "myhtmlpane.h"
#include "xmlcopyeditor.h"
BEGIN_EVENT_TABLE(MyHtmlPane, wxHtmlWindow)
EVT_LEFT_DCLICK(MyHtmlPane::OnLeftDoubleClick)
END_EVENT_TABLE()
MyHtmlPane::MyHtmlPane(
wxWindow *parent,
wxWindowID id,
const wxPoint& position,
const wxSize& size) : wxHtmlWindow(parent, id, position, size)
{
}
/*
void MyHtmlPane::OnCellClicked(
wxHtmlCell *cell,
wxCoord x,
wxCoord y,
const wxMouseEvent& event)
{
int width = GetSize().GetWidth();
if (x < (width*9/10))
return;
MyFrame *frame = (MyFrame *)GetParent();
if (frame)
{
wxCommandEvent e;
frame->OnClosePane(e);
}
}
*/
void MyHtmlPane::OnLeftDoubleClick(wxMouseEvent& WXUNUSED(event)) { }
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.