m_FindPos.y = event.GetY();
m_FoundObject = NULL;
-#ifdef WXDEBUG
+#ifdef WXLAYOUT_DEBUG
cerr << "OnMouse: " << m_FindPos.x << ',' << m_FindPos.y << endl;
#endif
Refresh();
{
wxCommandEvent commandEvent(wxEVENT_TYPE_MENU_COMMAND, m_EventId);
commandEvent.SetEventObject( this );
+ commandEvent.SetClientData((char *)m_FoundObject);
+ m_ClickPosition = wxPoint(event.GetX(), event.GetY());
GetEventHandler()->ProcessEvent(commandEvent);
}
}
case WXK_RETURN:
m_llist.LineBreak();
break;
-#ifdef WXDEBUG
+#ifdef WXLAYOUT_DEBUG
case WXK_F1:
m_llist.Debug();
break;
default:
if(keyCode < 256 && keyCode >= 32)
{
- wxString tmp;
+ String tmp;
tmp += keyCode;
m_llist.Insert(tmp);
}
void
wxLayoutWindow::Print(void)
{
+ VAR(wxThePrintSetupData);
+
wxPostScriptDC dc("layout.ps",true,this);
if (dc.Ok() && dc.StartDoc((char *)_("Printing message...")))
{