Use
You don't want the services to be available only when the button is pressed, but rather immediately.
Procedure
data: go_myobject type ref to cl_gos_manager.
…
create object go_myobject.
data: ...,
lo_container type ref to cl_gui_custom_container,
ls_object type borident.
…
call method go_myobject->display_toolbox
exporting is_object = ls_object
io_container = lo_container.
The parameter io_container is optional: If you do not transfer a reference to a container, then the toolbox is started in a separate system like in the standard system.