‎2011 Dec 03 5:42 AM
Hello experts
I need your help i have main screen on the left side there is navigation area ( Docking container ) i added 2 buttons in
in main screen tool-bar which I can switch /on and other button to switch off the navigation area ( Docking container ), I didnt start with logic yet and i want the button to show ' off ' only when navigation area is showing and 'ON' when the navigation area isn't showing :
should I use the following METHOD?
WHEN 'ON'
????
WHEN 'OFF'
CALL METHOD container ->free
Regards
‎2011 Dec 03 6:22 AM
Hi,
you need to call method "set_visible" of cl_gui_docking_container.
Ex:
For visible:
CALL METHOD container->set_visible
EXPORTING
visible = 'X'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
For invisible pass exporting parameter as ' '.
‎2011 Dec 03 6:32 AM
I found the solution and its workin fine :
logic :
STATICS:
sf_visible TYPE seu_bool VALUE cl_gui_control=>visible_true.
*
CHECK NOT L_DOCKING IS INITIAL.
*
IF sf_visible = cl_gui_control=>visible_false.
show list
CALL METHOD L_DOCKING->set_visible
EXPORTING
visible = cl_gui_control=>visible_true.
CALL METHOD cl_gui_container=>resize.
ELSE.
hide list
CALL METHOD L_DOCKING->set_visible
EXPORTING
visible = cl_gui_control=>visible_false.
sf_visible = cl_gui_control=>visible_false.
ENDIF.
‎2011 Dec 03 6:36 AM
Hi,
visible:
CALL METHOD container->set_visible
EXPORTING
visible = 'X' -
> for visible pass 'X'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
Invisible:
CALL METHOD container->set_visible
EXPORTING
visible = ' ' -
> For invisible pass space ' '
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
Thanks,
rajeshvadde