Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3228

cl_gui_gos_container

$
0
0

Hi,

I'm trying to add a button in the toolbar PF-STATUS, as does the class cl_gui_gos_container, but can not find as indicating that the container is not the title bar but rather the PF-STATUS, any idea?

 

the code to create the button that I have so far is:

 

DATA:

      lo_gos     TYPE REF TO cl_gui_gos_container,

      lo_toolbar TYPE REF TO cl_gui_toolbar,

*

      lt_events TYPE cntl_simple_events,

      ls_events LIKE LINE OF lt_events.

 

  CREATE OBJECT lo_gos

     EXPORTING

       width  = 48.

 

   CREATE OBJECT lo_toolbar

     EXPORTING

       parent       = lo_gos

       display_mode = lo_toolbar->m_mode_horizontal.

 

   lo_toolbar->add_button( fcode     = 'PDF'

                           icon      = icon_pdf    "icon_information

                           butn_type = cntb_btype_first ).

   .

 

   ls_events-eventid = lo_toolbar->m_id_function_selected.

   APPEND ls_events TO lt_events.

*

   CALL METHOD lo_toolbar->set_registered_events( events = lt_events ).

*   Registra el evento

   SET HANDLER on_function_selected FOR lo_toolbar.



the result is:

Captura.JPG


Viewing all articles
Browse latest Browse all 3228

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>