[SOLVED] BUG: Formcontainer loses focus
Author: norbert.lauterbach@infraserv.com (Lauterbach)
I have a form with one formcontainer in it. In the execute-Trigger of the mainform I instanciate 4 forms witch can be displayed in the formcontainer : newinstance "F_OEK_TP", $DATA_OEK$ $DATA_OEK$->Exec() newinstance "F_RVA_TP_GEB", $DATA_GEB$ $DATA_GEB$->Exec() newinstance "F_RVA_TP_TB", $DATA_TB$ $DATA_TB$->Exec() newinstance "F_RVA_TP_TLE", $DATA_TLE$ $DATA_TLE$->Exec() ; Display $DATA_OEK$ in the formcontainer FORMCONT.EINGANG_RVA = $DATA_OEK$ Giving the focus to the formcontainer and change some data and store them works fine. This can be done more than one time and the focus will remain in the formcontainer as it should. If you switch the application to Notepad or Excel for example, the formcontainer loses the Focus (this should not happen) and an other form will get Focus which is not displayed in the formcontainer. Switching back to uniface, the formcontainer has still the Cursor in the field I edited last (but the form does not have the Focus). I can change the value of the field, but I can not give the Focus to another field in the formcontainer. The changed value will also not be transfered to the mainform with a store. After giving the Focus to the mainform and then back to the formcontainer all fields in the formcontainer can be edited. ---> The formcontainer should not lose the Focus if the application looses Focus. Is there an "application looses Focus" and "application gets Focus"??? Kind regards Norbert Lauterbach