Hey Daniel,

To pass the WMouseEvent details to your slot, you need to do the following:

2008/11/16 Daniel Derr <[EMAIL PROTECTED]>:
>
> I am having trouble retrieving the WMouseEvent in a slot. The following
> works for me:
>
>
> this->mouseWentDown.connect(    SLOT(this,
> DDGroupSelector::slotMouseWentDown)  );

You should leave this statement unchanged.

> ...
>
> void DDGroupSelector::slotMouseWentDown()
> {
>         // SET THE BUTTONS STATE
>         update();
> }
>
>
> However, what I really want is this
>
>
> void DDGroupSelector::slotMouseWentDown(const Wt::WMouseEvent & e)

If you are using Wt >= 2.2.1, then this should work.
If you are using Wt < 2.2.1, then you need the following slot signature:

void DDGroupSelector::slotMouseWentDown(Wt::WMouseEvent e)

Regards,
koen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to