Board index » cppbuilder » Simulate MDI with non-MDI windows?
Dennis Jone
![]() CBuilder Developer |
Tue, 14 Dec 2004 09:06:19 GMT
|
Dennis Jone
![]() CBuilder Developer |
Tue, 14 Dec 2004 09:06:19 GMT
Simulate MDI with non-MDI windows?
Hi,
I am so sick and tired of Borland's {*word*99}; there's the menu merge bug, not Does anyone know how to simulate MDI with non-MDI windows? - Dennis |
Remy Lebeau [TeamB
![]() CBuilder Developer |
Tue, 14 Dec 2004 14:48:22 GMT
Re:Simulate MDI with non-MDI windows?Try simply setting each child forms' Parent property manually to the desired main form. You can have forms Parented inside of other forms Gambit Quote"Dennis Jones" <djo...@nospam.com> wrote in message Quote> Does anyone know how to simulate MDI with non-MDI windows? |
Dennis Jone
![]() CBuilder Developer |
Tue, 14 Dec 2004 23:53:00 GMT
Re:Simulate MDI with non-MDI windows?Remy, Yeah, unfortunately, that isn't enough. As I started thinking about this, I I need to figure out why using the static library causes my submenu to not - Dennis "Remy Lebeau [TeamB]" <gambi...@yahoo.com> wrote in message Quote> Try simply setting each child forms' Parent property manually to the |
Remy Lebeau [TeamB
![]() CBuilder Developer |
Wed, 15 Dec 2004 02:29:44 GMT
Re:Simulate MDI with non-MDI windows?Quote"Dennis Jones" <djo...@nospam.com> wrote in message Quote> Yeah, unfortunately, that isn't enough. As I started thinking about child form's BorderStyle set to bsSizeable, then all of that is handled by the OS automatically. The form knows that is has a parent, and will stay within the bounds of that parent. the only thing you would have to do manually, if anything, would be to intercept the WM_WINDOWPOSChanging or WM_GETMINMAXINFO message in the child form so as to keep the child inside of a specific area of the parent form, if desired. Quote> So simulating MDI isn't going to be a viable option for me. approach to work just fine. Gambit |
Dennis Jone
![]() CBuilder Developer |
Wed, 15 Dec 2004 06:00:11 GMT
Re:Simulate MDI with non-MDI windows?Did you get the restore border icon to appear? And how about if the main form has a menu and a title bar? Anyway, I solved the underlying problem...so I don't have to simulate MDI - Dennis "Remy Lebeau [TeamB]" <gambi...@yahoo.com> wrote in message Quote
|
Remy Lebeau [TeamB
![]() CBuilder Developer |
Wed, 15 Dec 2004 07:02:13 GMT
Re:Simulate MDI with non-MDI windows?Quote"Dennis Jones" <djo...@nospam.com> wrote in message Quote> Did you get the restore border icon to appear? just fine. Quote> And how about if the main form has a menu and a title bar? Quote> Anyway, I solved the underlying problem...so I don't have to simulate MDI Gambit |
Dennis Jone
![]() CBuilder Developer |
Wed, 15 Dec 2004 07:58:28 GMT
Re:Simulate MDI with non-MDI windows?"Remy Lebeau [TeamB]" <gambi...@yahoo.com> wrote in message Quote> > Anyway, I solved the underlying problem...so I don't have to simulate opened records" submenu wouldn't display. I found that if a menu item has an action assigned with an OnUpdate() event handler but no OnExecute() event handler, the menu item may not work correctly, or may be disabled (depending on if it is the first or second time you try to open the menu -- the first time, the submenu simply doesn't display...after that, the parent menu item is disabled). This became an issue when I was forced to use static linking in order to - Dennis |
Dennis Jone
![]() CBuilder Developer |
Tue, 14 Dec 2004 23:53:00 GMT
Re:Simulate MDI with non-MDI windows?Remy, Yeah, unfortunately, that isn't enough. As I started thinking about this, I I need to figure out why using the static library causes my submenu to not - Dennis "Remy Lebeau [TeamB]" <gambi...@yahoo.com> wrote in message Quote> Try simply setting each child forms' Parent property manually to the |