good day,
I'm having trouble getting mouse events to work with a
WpaintedWidget. I have a simple
paintedwidget that is a filled in rectangle with some text drawn on
it. The image displays fine
but I don't recieve any mouse events. I can get the tool tip to work
. I've tried different combinations
of commenting/uncommenting mouse & mouse1. Any suggestions? I'm
using wt 2.99.1/boost 1_38
on a mac.
chuckles
const WString* st1 = new WString("hello");
const WColor* cl1 = new WColor(green);
myText = new vtext(myWidget,*st1, *cl1);
keyDown = false;
WRectArea* mouse = new
WRectArea(0,0,myText->getwidth(),myText->getheight());
WRectArea* mouse1 = new WRectArea();
//mouse->setToolTip("Time for Lunch");
mouse->mouseMoved().connect(SLOT(this,vApp::mouseMove));
mouse1->mouseMoved().connect(SLOT(this,vApp::mouseMove1));
myText->insertArea(0,mouse);
myText->insertArea(1,mouse1);
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest