2011 Apr 05 10:23 PM
Hi guys,
I've created a text editor using CL_GUI_TEXTEDIT on a custom container (CL_GUI_CUSTOM_CONTAINER) and I need to set the active cursor on it.
I've tried with the method SET_FOCUS but it doesn't work.
CALL METHOD o_textedit->set_focus
EXPORTING
control = o_textedit.
Also I've tried with method GO_TO_LINE by passing the first line but it
doesn't work either. It only selects the first line but the cursor isn't
positioned on it, I mean, I need to click on the text editor to start to write.
CALL METHOD o_textedit->go_to_line
EXPORTING
line = 1.
Anyone knows how to do this?
Thanks in advance.
Hi guys,
I've created a text editor using CL_GUI_TEXTEDIT on a custom container (CL_GUI_CUSTOM_CONTAINER) and I need to set the active cursor on it.
I've tried with the method SET_FOCUS but it doesn't work.
CALL METHOD o_textedit->set_focus
EXPORTING
control = o_textedit.
Also I've tried with method GO_TO_LINE by passing the first line but it
doesn't work either. It only selects the first line but the cursor isn't
positioned on it, I mean, I need to click on the text editor to start to write.
CALL METHOD o_textedit->go_to_line
EXPORTING
line = 1.
Anyone knows how to do this?
Thanks in advance.
2012 Feb 01 10:14 AM
Hi,
try like this.
Data: editor2 TYPE REF TO cl_gui_textedit.
CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
EXPORTING
CONTROL = editor2.
2014 Jun 06 5:30 AM
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |