Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Are there any performance issues with MDIchild windows
Someone has claimed this in regards to using windows opened via START_MDICHILD vs. those opened using START_WINDOW. Does anyone know if that is true or not?
Comments
If someone is certain they are seeing a difference, I suppose it could be due to the MDI handling in general.
What else do I need to do besides running Start_MdiChild to get a window to open within the desired frame? Some windows seem to do this, but changing the Repository 'EXECUTE' call from Start_Window to Start_MDIChild is not opening the frame and putting the window within it.
Having said that, why are you going down this route? Have you confirmed that there is a noticeable difference in performance? The hook technique can also be used to benchmark performance. This is what I recommend you focus on before wasting a lot of time experimenting with a workaround that might not even be necessary (or do anything).
BTW, hooking can also be used to determine if there is a speed bump along the way. You can track to see how far the call stack goes when creating these problematic windows. Of course, this is only necessary if your CREATE event doesn't get called.
In the CREATE event handlers, what are the values of the VISIBLE, PARENT, and MDIFRAME properties?
I take this to mean you made a copy of an existing window for the purpose of it becoming an MDI child. You also created a commuter module for this new window.
Question: In what way are the window events calling this commuter module? Are you using the "Call Commuter Module" feature of the QuickEvents? Are you calling the commuter module directly through a script event handler? Something else?
Is this being called from a menu item or a button on the MDI Frame?
I don't have enough data to answer this, but an answer to my above question about how you are calling the commuter module would help. Is the name of it the same as the form? Are there hardcoded references to the original window?
declare function Dbw_Mywindow_Events
Return Dbw_Mywindow_Events( "CREATE", CtrlEntID, CtrlClassID, CreateParam )
The windows are launched by clicking buttons on another window which is inside the frame. The are no hard-coded references to the old window.
Is this OI9 or Oi10?
For one of the forms in question, in form designer, change the visible property to 1 and see that it does display. If so, then your promoted create or commuter create is not setting it.
Is this returning a 1