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

Make Buttons Invisible in Text Editor

former_member209217
Active Contributor
0 Likes
1,100

Hi Experts,

I have designed one custom container and using CL_GUI_TEXTEDITOR ,i have able to display one text editor control screen.But i have one requirement where in i have to make the buttons(buttons like cut ,copy, paste,find that are displayed at the top left of text editor) invisible.

I tried changing the styles and setting attributes for the class,but it didn't wrk.

Please suggest me if u had any solution.

Regards,

Lakshman.

2 REPLIES 2
Read only

Former Member
0 Likes
821

HI,

Refer to this demo program SAPSCRIPT_DEMO_NOTE_EDITOR

* without toolbar?
     call method note_editor->set_toolbar_mode
         exporting  toolbar_mode = cl_gui_textedit=>false
         exceptions others       = 1.
    if sy-subrc <> 0.
*     add your handling
    endif.

Read only

former_member209217
Active Contributor
0 Likes
821

Thanks Avinash,

Actually there is method in the class SET_TOOLBAR_MODE which solves my problem.