Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: himaja on July 25, 2006, 08:48:02 pm
-
Hi,
I'm trying to draw a graph on a page of a NoteBook, and it's just not working for me. I modified the "Widgets" sample given with wxWidgets as follows:
void GraphPage::OnMotion(wxMouseEvent& event)
{
if(event.Dragging())
{
wxClientDC dc(this);
wxPen pen(*wxRED, 1);
dc.SetPen(pen);
dc.DrawPoint(event.GetPosition());
dc.SetPen(wxNullPen);
wxLogMessage("mouse event");
}
}
The Log message appears, but nothing else does. I've tried other samples from the book "Cross Platform GUI Programming with wXWidgets" on this page, but nothing seems to appear. Could someone explain to me what I am doing wrong?
Thanks,
Himaja.
-
Please use http://wxforum.shadonet.com/ to post your questions about wxWidgets.