2006 Oct 26 7:15 AM
Hello,
i've 2 cl_gui_textedit-controls on my dynpro. When you make a doubleclick on those a texteditor is opened. My problem is that i cannot decide which of these two has raised the event...
I thought maybe there is a hint in the "sender" object but i couldn't find something fitting.
Would be nice if you could help me
Kind regards
Tobias
2006 Oct 26 10:03 AM
Hello Tobias
When you define the event handler method you can always add the optional IMPORTING parameter SENDER which contains the reference to the control that raised the event. The you simply code:
CASE sender.
WHEN go_textedit_1. " your 1st textedit control
WHEN go_textedit_2. " your 2nd textedit control
WHEN others.
...
ENDCASE.Regards
Uwe
2006 Oct 26 10:03 AM
Hello Tobias
When you define the event handler method you can always add the optional IMPORTING parameter SENDER which contains the reference to the control that raised the event. The you simply code:
CASE sender.
WHEN go_textedit_1. " your 1st textedit control
WHEN go_textedit_2. " your 2nd textedit control
WHEN others.
...
ENDCASE.Regards
Uwe
2006 Oct 26 11:24 AM