[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]] ==== FOCUS Property. MDI environment (OpenInsight 32-bit Specific) ==== === At 04 AUG 2003 02:24:37PM matt bavis wrote: === {{tag>"OpenInsight 32-bit Specific"}} I have a problem that is driving me crazy. I hope someone has either seen this before or can point out what I am not understanding. I have a MDIFRAME, named MB_MAIN. In this MDIFRAME I open MDIchildren and I have buttons on my MDIFRAME that send events to the MDIchildren. I have a SAVE_BTN on MB_MAIN that sends a WRITE event to the MDIchild (let's say my child window is called MB_CHILD). During the promoted write event, I do the following: CK=GET_PROPERTY('MB_MAIN','FOCUS') The CK variable is filled with 'MB_CHILD.AGE', which is the control that has focus on MB_CHILD. I would expect the CK variable to get set to 'MB_MAIN.SAVE_BTN', since I click on this button to initiate the whole process. The funny thing is, if I step through it in the debugger, the variables get set as I would expect them to, but if I run through the program without debugs I get the above mentioned results. Any ideas? Thanks in advance, Matt [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=F1469981B6E258FD85256D780065218D|View this thread on the forum...]]