03-21-2008 2:43 PM
Hi,
I use the cl_gui_textedit in a custom control (cl_gui_custom_container) in a subscreen, in the last tab of a tabstrip. (ok, still following ?).
Everything is OK, but when I leave the screen and come back on the first tab, the text editor overlaps the subscreen. Switching to any other tab gives the same result.
I have enabled my transaction for the web, and the bug does not occur in webgui. I assume it's a frontend bug, but I don't find any relevant note. Except the very old 524967 which advices to download the latest sapgui. :[
Is it a known bug ? How to correct it ?
Thanks in advance.
03-29-2008 3:23 PM
I use the follwoing steps:
wc_viewer->free( ). editor
wc_parent->free( ). container
call method cl_gui_cfw=>flush
exceptions
cntl_system_error = 1
cntl_error = 2.
if sy-subrc NE 0.
MESSAGE .
endif.
free wc_viewer.
free wc_parent.
clear wc_viewer.
clear wc_parent.
leave to screen 0.
03-21-2008 2:53 PM
Look at OSS [Note 203023 - Understanding screen compression and resizing|https://service.sap.com/sap/support/notes/203023]
Regards
03-26-2008 9:33 AM
No, the editor is not overlapping; it appears on a screen where it is not defined ! Moreover, the problem does not occurs in webgui => it's a 6.40 frontend bug.
03-29-2008 12:46 PM
Do you use more then one cl_gui_custom_container on all of your subscreen for the different tabs?
Be careful how you name the container this has to be unique for each container otherwise you can get this effect
03-29-2008 12:59 PM
I use two custom containers, but both on the same tab. And I FREE the created objects when I leave the tabstrip.
03-29-2008 2:41 PM
I wanted to say this reference:
1) Name
Type Custom Control
Name CONTAINER99 this has to be unique within all your screens and subscreens open.
2) You don't need to free the container when you leave, but if you do this, you should flush after the free and also call free object_name
You use a different subscreen for each tab?
03-29-2008 2:49 PM
2) Yes, I have one subscreen per tab, from subscr1 to subscr7.
1) Since the two custom control are on the same subscreen, they have different names.
What do you mean by "call free object_name" ?
03-29-2008 3:23 PM
I use the follwoing steps:
wc_viewer->free( ). editor
wc_parent->free( ). container
call method cl_gui_cfw=>flush
exceptions
cntl_system_error = 1
cntl_error = 2.
if sy-subrc NE 0.
MESSAGE .
endif.
free wc_viewer.
free wc_parent.
clear wc_viewer.
clear wc_parent.
leave to screen 0.
03-31-2008 8:40 AM
Had to add a condition :
if wc_viewer is not initial. wc_viewer->free( ). endif.
if the user did not go to the last tab (where editor is created).
Tested, seems to be solved. THANKS !!!