« Return to Thread: Why my onTableReplaced is not called?

Re: Why my onTableReplaced is not called?

by Feng Feng :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello Jeroen,

>When acceptInput(true) is invoked via FXTable receiving ID_ACCEPT_INPUT from
>the edit-control, it sends a SEL_REPLACED to its target.
>It does NOT send a SEL_REPLACED to itself....

If I change the acceptInput as follows:

// Done with editing cell
FXbool PlanPointTable::acceptInput(FXbool notify){
    if(editor){
        FXTableRange tablerange=input;
        setItemFromControl(input.fm.row,input.fm.col,editor);
        cancelInput();
        if(notify && target){
            //target->tryHandle(this,FXSEL(SEL_REPLACED,message),(void*)&tablerange);
            tryHandle(this,FXSEL(SEL_REPLACED,0),(void*)&current);  <========== modified!!!
        }
        return true;
    }
    return false;
}

Does this modification cause me problems in other places?

Thank you



------------------------------------------------------------------------------

_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users

 « Return to Thread: Why my onTableReplaced is not called?