FOCUS Property. MDI environment (OpenInsight 32-bit Specific)
At 04 AUG 2003 02:24:37PM matt bavis wrote:
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