Thanks Dimitry. I implemented Boris recommendation and it works pretty fine.

_______________________
Mario Diethelm Guallar

On 24-03-2013 08:52, Dmitriy Igrishin wrote:
Hey Mario,


2013/3/24 Mario Diethelm Guallar <mari...@terra.cl <mailto:mari...@terra.cl>>

    Hi there,

    I am building an application that set a series of fields in screen
    from a C++ vector<> (between the data fields stored in the vector
    I have the field label and type for the actual screen field).

    I put every field in screen (most of them as WText) and for each
    field (let say Field_n) I set a unique function to connect mouse
    click or Enter key pressed over those fields
    (Field-N->clicked().connect(this,
    &BaseClass::UniqueFieldTreatmentFunction))

    Is there a way to identify, inside this unique function
    UniqueFieldTreatmentFunction the actual field (widget) that was
    clicked or enter pressed over?

    Thanks a lot.

Its possible to pass pointer to the widget upon connecting it to the slot
by using function template std::bind (or boost::bind for C++-03).

--
// Dmitriy.



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar


_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to