<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CL_GUI_TEXTEDIT context menu in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064929#M92973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the SAP Text edit control (CL_GUI_TEXTEDIT) you can call via right mouse click a context menu. &lt;/P&gt;&lt;P&gt;I would like to know how is it possible to suppress the display of (i.e. I would like to hide) the system default values in this context menu?&lt;/P&gt;&lt;P&gt;The system default options are for example &lt;/P&gt;&lt;P&gt;CUT&lt;/P&gt;&lt;P&gt;COPY&lt;/P&gt;&lt;P&gt;INSERT&lt;/P&gt;&lt;P&gt;UNDO&lt;/P&gt;&lt;P&gt;RESTORE&lt;/P&gt;&lt;P&gt;FIND/REPLACE&lt;/P&gt;&lt;P&gt;FIND NEXT&lt;/P&gt;&lt;P&gt;LOAD LOCAL FILE&lt;/P&gt;&lt;P&gt;SAVE LOCAL FILE.&lt;/P&gt;&lt;P&gt;I would like to suppress (hide) them all but HOW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to hide the toolbar, and I'm looking for a similar switch to hide all the default options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to show just my own entries/functions in the context menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards and thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hans-Ludwig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2005 15:07:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-22T15:07:31Z</dc:date>
    <item>
      <title>CL_GUI_TEXTEDIT context menu</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064929#M92973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the SAP Text edit control (CL_GUI_TEXTEDIT) you can call via right mouse click a context menu. &lt;/P&gt;&lt;P&gt;I would like to know how is it possible to suppress the display of (i.e. I would like to hide) the system default values in this context menu?&lt;/P&gt;&lt;P&gt;The system default options are for example &lt;/P&gt;&lt;P&gt;CUT&lt;/P&gt;&lt;P&gt;COPY&lt;/P&gt;&lt;P&gt;INSERT&lt;/P&gt;&lt;P&gt;UNDO&lt;/P&gt;&lt;P&gt;RESTORE&lt;/P&gt;&lt;P&gt;FIND/REPLACE&lt;/P&gt;&lt;P&gt;FIND NEXT&lt;/P&gt;&lt;P&gt;LOAD LOCAL FILE&lt;/P&gt;&lt;P&gt;SAVE LOCAL FILE.&lt;/P&gt;&lt;P&gt;I would like to suppress (hide) them all but HOW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to hide the toolbar, and I'm looking for a similar switch to hide all the default options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to show just my own entries/functions in the context menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards and thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hans-Ludwig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 15:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064929#M92973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T15:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT context menu</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064930#M92974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the event CONTEXT_MENU means : Define the class to handle the event, set the handler, and then baboum the code you'll put in the method that will be called when the event is raised will do the rest!&lt;/P&gt;&lt;P&gt;In your method :&lt;/P&gt;&lt;P&gt;modify the menu according to the needs&lt;/P&gt;&lt;P&gt;parameters of event is the ct_menu some methods are available...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DISABLE_FUNCTIONS&lt;/P&gt;&lt;P&gt;HIDE_FUNCTIONS &lt;/P&gt;&lt;P&gt;ADD_FUNCTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can be called on the parameters of the event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for the reward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 15:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064930#M92974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T15:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT context menu</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064931#M92975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   this is exactly what I do. &lt;/P&gt;&lt;P&gt;   In the event handler method you get a reference on the context menu object (class cl_ctmenu).&lt;/P&gt;&lt;P&gt;   Unfortunetaly at that time it is empty. (The system default functions are not availalbe at that time.)&lt;/P&gt;&lt;P&gt;   How can I find out the function codes related to the system default entries, so I can execute the HIDE_FUNCTIONS/DISABLE_FUNCTIONS methods?&lt;/P&gt;&lt;P&gt;   Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Hans-Ludwig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 15:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064931#M92975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T15:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT context menu</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064932#M92976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried SET_LOCAL_CONTEXTMENU_MODE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to completely disable context menu ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried add_function ? did it worked ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for the code of disabling &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 15:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064932#M92976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T15:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT context menu</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064933#M92977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I did &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET_LOCAL_CONTEXTMENU_MODE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;, since per default it is set to false, so no local context menu is done. &lt;/P&gt;&lt;P&gt;But even then, a context menu with the mentioned 'system entries' comes up!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD_FUNCTION works fine. For my local entries I can also disable the functions, but not for the 'system entries'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 15:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064933#M92977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T15:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT context menu</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064934#M92978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you use then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;event CONTEXT_MENU_SELECTED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the code of the function you want to disable (parameter of event is the code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use the disable ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this may be a clue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 15:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064934#M92978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T15:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT context menu</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064935#M92979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunetaly you do not get the event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like the control itself does adding the functions and also the events directly at the front-end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder from what it depends whether the options are selectable or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even with the debugger in the system coding I can not see where the options are added to the context menu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 15:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064935#M92979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T15:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TEXTEDIT context menu</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064936#M92980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hans,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to go now ! But i'll think about it ! &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll get back to you tomorrow &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this program BC_CONTROLS_TUTORIAL. And see some functions are disable ! I ddin't had time to debug but it may help you ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you feel that I helped you plz don't forget the reward  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 15:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-textedit-context-menu/m-p/1064936#M92980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T15:59:37Z</dc:date>
    </item>
  </channel>
</rss>

