Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Disable Toolbar in custom TextEditor Control

Former Member
0 Likes
3,170

Dear Gurus ,

I made a custom Texteditor control in my own screen. The problem is that i can't disable the toolbat above the control .

Please see my code ....

CREATE OBJECT G_EDITOR_3
    EXPORTING
       PARENT = G_EDITOR_CONTAINER_3
       WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
       WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE
       WORDWRAP_POSITION          = 70
    EXCEPTIONS
        OTHERS = 1.
    IF SY-SUBRC NE 0.
      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          TITEL = G_REPID
          TXT2  = SPACE
          TXT1  = TEXT-001.
    ENDIF.

Thanks a lot ....

1 ACCEPTED SOLUTION
Read only

1,421

Hi,

Try this code to disable your custom designed texteditor.

*

CALL METHOD: editor_s->set_toolbar_mode

EXPORTING toolbar_mode = '0'.

*

pls don't forget to place your container name inplace of mine,i.e "editor_s".

do rply if it's workable.

Edited by: izullah on Feb 16, 2010 7:24 AM

2 REPLIES 2
Read only

Former Member
0 Likes
1,421

Hi,

Try the method SET_TOOLBAR_MODE of the editor 0 is off (i think...)

Regards,

Read only

1,422

Hi,

Try this code to disable your custom designed texteditor.

*

CALL METHOD: editor_s->set_toolbar_mode

EXPORTING toolbar_mode = '0'.

*

pls don't forget to place your container name inplace of mine,i.e "editor_s".

do rply if it's workable.

Edited by: izullah on Feb 16, 2010 7:24 AM