xml-copy-editor-code/src/myhtmlpane.cpp

37 lines
718 B
C++
Raw Normal View History

2007-09-07 23:17:30 +02:00
#include "myhtmlpane.h"
#include "xmlcopyeditor.h"
2007-09-08 00:25:30 +02:00
BEGIN_EVENT_TABLE ( MyHtmlPane, wxHtmlWindow )
EVT_LEFT_DCLICK ( MyHtmlPane::OnLeftDoubleClick )
2007-09-07 23:17:30 +02:00
END_EVENT_TABLE()
2007-09-08 00:25:30 +02:00
MyHtmlPane::MyHtmlPane (
wxWindow *parent,
wxWindowID id,
const wxPoint& position,
const wxSize& size ) : wxHtmlWindow ( parent, id, position, size )
{}
2007-09-07 23:17:30 +02:00
/*
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);
}
}
*/
2007-09-08 00:25:30 +02:00
void MyHtmlPane::OnLeftDoubleClick ( wxMouseEvent& WXUNUSED ( event ) )
{ }