Here is the sample. Pressing "A" suppose maximize the child window.
Printable View
Here is the sample. Pressing "A" suppose maximize the child window.
Here is the sample. Pressing "A" suppose maximize the child window.
That's just a conflict between your 2 "Upon pressing A" conditions. I suppose the second action (Set maximized) happens when the window is still hidden, and the action works only on visible windows.
To fix it, 2 solutions:
1. Remove the event from the main frame, and in the sub-app show the window with the "make window reappear" action of the window control object, before maximizing it.
2. Or in the main frame set a global value after showing the sub-app and in the sub-app frame replace the "Upon pressing A" condition by "Compare To Global Value" condition, and if the value is set, reset it and maximize the window.
Yves.
That's just a conflict between your 2 "Upon pressing A" conditions. I suppose the second action (Set maximized) happens when the window is still hidden, and the action works only on visible windows.
To fix it, 2 solutions:
1. Remove the event from the main frame, and in the sub-app show the window with the "make window reappear" action of the window control object, before maximizing it.
2. Or in the main frame set a global value after showing the sub-app and in the sub-app frame replace the "Upon pressing A" condition by "Compare To Global Value" condition, and if the value is set, reset it and maximize the window.
Yves.
Good and logically correct recommendations.....unfortunatelly nothing worked. I even added extracode to make sure that if the child window is visible - add 1 to global value and only after that resize it....did not help. Also, if I try to run just the child frame in MDI app - it does not run. The main frame runs instead. What's up with that? Is it by design? I even removed hide/show in the main frame, so now the child window is always visible and then press button - maximize. Still no good.
Good and logically correct recommendations.....unfortunatelly nothing worked. I even added extracode to make sure that if the child window is visible - add 1 to global value and only after that resize it....did not help. Also, if I try to run just the child frame in MDI app - it does not run. The main frame runs instead. What's up with that? Is it by design? I even removed hide/show in the main frame, so now the child window is always visible and then press button - maximize. Still no good.
Both solutions work, I've tried them before posting them. <img src="/center/images/graemlins/wink.gif" alt="" /> Maybe I was not clear enough. For example for the solution 1 in your example:
1. Edit the events of frame 1 and remove the "Upon Pressing A" line.
2. Edit the events of frame 2, add a "Make Window Reappear" action in the Window Control object (in the "Upon pressing A" line), double click the checkmark and move "Show window" before "Set window maximized".
Yves.
Both solutions work, I've tried them before posting them. <img src="/center/images/graemlins/wink.gif" alt="" /> Maybe I was not clear enough. For example for the solution 1 in your example:
1. Edit the events of frame 1 and remove the "Upon Pressing A" line.
2. Edit the events of frame 2, add a "Make Window Reappear" action in the Window Control object (in the "Upon pressing A" line), double click the checkmark and move "Show window" before "Set window maximized".
Yves.
Yves, I hate waisting your time... here is a new example with your solution #1. (when you say "of frame 2" you actually mean "of frame 4"...right?)...my child window is in frame 4. I re-coded in accordance to your recommendation. It does not maximize my child window. I use build 241 MMF2 Developer. BTW, maybe we mean different things by "maximized". I am talking about child window filling entire main frame (between toolbar and status bar) just like it would if you double-click the blue title bar on the child window. Also, if I replace "maximize" with "set size 800*600 - it does set size after pressing "A". So, it knows that the window is there.
Yves, I hate waisting your time... here is a new example with your solution #1. (when you say "of frame 2" you actually mean "of frame 4"...right?)...my child window is in frame 4. I re-coded in accordance to your recommendation. It does not maximize my child window. I use build 241 MMF2 Developer. BTW, maybe we mean different things by "maximized". I am talking about child window filling entire main frame (between toolbar and status bar) just like it would if you double-click the blue title bar on the child window. Also, if I replace "maximize" with "set size 800*600 - it does set size after pressing "A". So, it knows that the window is there.