<?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 Re: SIZE_CONTROL Event for docking container in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100680#M103408</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;check this may be it can help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/d3/2955360b00a115e10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/d3/2955360b00a115e10000009b38f839/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2005 09:42:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-17T09:42:38Z</dc:date>
    <item>
      <title>SIZE_CONTROL Event for docking container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100674#M103402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Everybody&lt;/P&gt;&lt;P&gt;I'm trying to handle size_control event for a docking container. But the event is not trigged. See the code excerpt below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Create left docking container
  CREATE OBJECT ao_docking_container_left
    EXPORTING
      side = cl_gui_docking_container=&amp;gt;dock_at_left
      extension = 300
      dynnr = cl_co=&amp;gt;ac_main_screen
      repid = cl_co=&amp;gt;ac_main_prog.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Register the event
 ls_event-eventid = 12.
  ls_event-appl_event = 'X'.
  APPEND ls_event TO lt_events.

  CALL METHOD ao_docking_container_left-&amp;gt;set_registered_events
    EXPORTING
      events                    = lt_events
    EXCEPTIONS
      cntl_error                = 1
      cntl_system_error         = 2
      illegal_event_combination = 3
      OTHERS                    = 4
          .
* Set handler
SET HANDLER handle_doclist_resize FOR ao_docking_container_left.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set the handle_doclist_resize method as a handler for the SIZE_CONTROL event of the CL_GUI_DOCKING_CONTAINER class (by Class Builder).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2005 07:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100674#M103402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-17T07:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: SIZE_CONTROL Event for docking container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100675#M103403</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;Where is the class definition and implementation for handling that event?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2005 08:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100675#M103403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-17T08:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: SIZE_CONTROL Event for docking container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100676#M103404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All of it is the same global class.The code above is in the class constructor. Handle_doclist_resize is a handler method of the class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2005 08:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100676#M103404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-17T08:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: SIZE_CONTROL Event for docking container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100677#M103405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have transfered my code just into the one programm. But it still doesn't work &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; I guess the SIZE_CONTROL event is not implemented in CL_GUI_DOCKING_CONTAINER.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZMMM_DOCK                                                   *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;                                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
report  zmmm_dock                               .
data:   ao_docking_container_left type ref to cl_gui_docking_container,
        lt_events type cntl_simple_events,
        ls_event type cntl_simple_event.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;       Class CL_EVENT_HANDLER
*&amp;amp;---------------------------------------------------------------------*
*        Text
*----------------------------------------------------------------------*
class cl_event_handler definition.
  public section.
    class-methods:
    handle_doclist_resize for event size_control
    of cl_gui_docking_container.
endclass.               "CL_EVENT_HANDLER
*----------------------------------------------------------------------*

* Create left docking container
create object ao_docking_container_left
  exporting
    side = cl_gui_docking_container=&amp;gt;dock_at_left
    extension = 600
    dynnr = '0100'
    repid = sy-repid.

ls_event-eventid = 12.
ls_event-appl_event = 'X'.
append ls_event to lt_events.

call method ao_docking_container_left-&amp;gt;set_registered_events
  exporting
    events                    = lt_events
  exceptions
    cntl_error                = 1
    cntl_system_error         = 2
    illegal_event_combination = 3
    others                    = 4.

set handler cl_event_handler=&amp;gt;handle_doclist_resize
  for ao_docking_container_left.

call screen 100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;       Class (Implementation)  cl_event_handler
*&amp;amp;---------------------------------------------------------------------*
*        Text
*----------------------------------------------------------------------*
class cl_event_handler implementation.
  method handle_doclist_resize.
*Handles tree resizing
    data: lv_result type sysubrc,
          lv_width type i.
    call method ao_docking_container_left-&amp;gt;get_width
      importing
        width      = lv_width
      exceptions
        cntl_error = 1
        others     = 2.

    leave program.
  endmethod.                    "handle_doclist_resize

endclass.               "cl_event_handler

include zmmm_dock_status_0100o01.

include zmmm_dock_user_command_0100i01.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2005 08:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100677#M103405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-17T08:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: SIZE_CONTROL Event for docking container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100678#M103406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* create the docking container
    CREATE OBJECT docking
                  EXPORTING repid     = repid
                            dynnr     = dynnr
                            side      = docking-&amp;gt;dock_at_left
                            extension = 180.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be written in PBO of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this sample code too &amp;lt;b&amp;gt;RSDEMO_DOCKING_CONTROL&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2005 08:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100678#M103406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-17T08:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: SIZE_CONTROL Event for docking container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100679#M103407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikola,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Docking Container Resize is a Controls Framework event and is handled inside CL_GUI_CFW class (HORIZONTAL_RESIZE method).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I do not think we will be able register for this event and hanlde it as Framewrk events are system events handled by CL_GUI_CFW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2005 09:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100679#M103407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-17T09:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: SIZE_CONTROL Event for docking container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100680#M103408</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;check this may be it can help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/d3/2955360b00a115e10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/d3/2955360b00a115e10000009b38f839/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2005 09:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100680#M103408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-17T09:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: SIZE_CONTROL Event for docking container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100681#M103409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to register the event using method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REG_EVENT_SIZE_CONTROL of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_GUI_DOCKING_CONTAINER class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2005 11:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100681#M103409</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-10-17T11:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: SIZE_CONTROL Event for docking container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100682#M103410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; try to register the event using method&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; REG_EVENT_SIZE_CONTROL of&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; CL_GUI_DOCKING_CONTAINER class.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to use both ways: (1) register the SIZE_CONTROL event particulary by calling REG_EVENT_SIZE_CONTROL method and (2) register it via events table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be, this event is not able to be registered because of its being handled by Control Framework (SIZE_CONTROL event is derived from CL_GUI_CONTROL class)???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2005 12:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/size-control-event-for-docking-container/m-p/1100682#M103410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-17T12:16:37Z</dc:date>
    </item>
  </channel>
</rss>

