Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Screen refresh problems with TextEdit control -- Please advise?

Former Member
0 Kudos
238

Hi,

I have a screen with a tabstrip and each tabstrip has a free text box. I am using a custom control containers and then CL_GUI_TEXTEDIT class for the GUI instance.

I free the textedit and container instances (cl_gui_textedit->free) and free the variables at the PAI of the main screen (not the PAI of tabstrip subscreens) after I save data or exit the screen.

However, when I use the method SET_READONLY_MODE to gray out the text box in the PBO, sometimes it doesn't work for one (or more) of the textboxes in tabstrip screens, even when the method call did not raise an exception and the object does show the correct mode (1 for on) in debug mode. From debugging, I am also certain that the variables are initial when the container and textedit controls when they are created at the PBO of the each tabstrip subscreen.

We are convinced that there's a refresh problem because we tried clearing the text in TEXTEDIT instance then freeing it in the PAI and did NOT load any text in after the object creation in the PBO (note that variable is initial)---it still came out with the OLD (supposedly already cleared) text!

Has anyone encountered this problem and solved it?

Thanks!

1 REPLY 1

Former Member
0 Kudos
89

Hi,

Try calling the method DELETE_TEXT in the PAI so that the text content will be deleted.

Hope this helps.