User Tag List

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 32

Thread: Maximizing child window in MDI app bug

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Maximizing child window in MDI app bug

    Here is the sample. Pressing "A" suppose maximize the child window.
    Attached files Attached files

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Maximizing child window in MDI app bug

    Here is the sample. Pressing "A" suppose maximize the child window.

  3. #3
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Maximizing child window in MDI app bug

    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.

  4. #4
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Maximizing child window in MDI app bug

    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.

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Maximizing child window in MDI app bug

    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.

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Maximizing child window in MDI app bug

    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.

  7. #7
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Maximizing child window in MDI app bug

    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.

  8. #8
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Maximizing child window in MDI app bug

    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.

  9. #9
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Maximizing child window in MDI app bug

    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.
    Attached files Attached files

  10. #10
    No Products Registered

    Join Date
    Jul 2006
    Location
    Oregon, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Maximizing child window in MDI app bug

    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.

Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. MDI child window doesn't react to global value when not in focus
    By ogrgkyle in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th December 2013, 08:36 PM
  2. Option to Keep Aspect Ratio when maximizing window
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 24th August 2010, 07:25 PM
  3. MDI Child Window Properties
    By Mantis in forum Multimedia Fusion 2 - Technical Support
    Replies: 30
    Last Post: 1st May 2007, 09:36 AM
  4. questions about maximizing an application's speed
    By Larry in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th August 2006, 01:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •