Windows as childs into a window ( MDI? )

BlitzMax Forums/MaxGUI Module/Windows as childs into a window ( MDI? )

ShadowTurtle(Posted 2010) [#1]
Hello,

i need to make a window into a another window. The way is normaly WinApi, yeah, but i do ask here about something like a small code snippet wich works bugfree & compilant to MaxGUI.

As you have (possibly) already read out of my posting: I do need this eventualy only for windows. Crossplatform i do accept too :D

You must see this: Windows != Mac. I can not doing open 8+ windowses parented to the desktop. More windowses/applications will come up and as user i doing lost the overview. The task manager etc. are not build to supporting this cheme. Therefore MDI was build. MDI closes the (past) design hole M$ did.
Ok in win7 you can make the mac style windowings. The taskmanager etc. in win7 is now prepared for this. But i do need my application workable/overview-able in older windows versions.

Something like this i do need:


"Visual Studio" and "Borland C++ Builder" have good MDI Librarys wich are fast in use etc.
but i do need blitzmax this time.


jsp(Posted 2010) [#2]
Depends on what you need, the old MaxGui could use MDI, the window stype to activate it was WINDOW_CHILD.
If you want to stay with the current version you can set the window parent yourself (see code below, windows only).




ShadowTurtle(Posted 2010) [#3]
thanks for the snippet but it seems to do not work correctly on windows 7

is there a another gadget needed to be placed into the main window? Something like a scrollpanel?

at moment i am thinking about making a own window system (the child windows are created via maxgui gadgets). But it costs time and does propbably not work on every windows version.

Is there realy no working way via winapi already? What have i forgotten to do make this snippet working?

Using old maxgui is out of question, the new one is preferred.

You must see this: Windows != Mac. I can not doing open 8+ windowses parented to the desktop. More windowses/applications will come up and as user i doing lost the overview. The task manager etc. are not build to supporting this cheme. Therefore MDI was build. MDI closes the (past) design hole M$ did.
Ok in win7 you can make the mac style windowings. The taskmanager etc. in win7 is now prepared for this. But i do need my application workable/overview-able in older windows versions.

actualy the snippet showed me the following bug:

1. i become the following window


2. moving child windowses does not work. The main window is by now the master of all. The child child windowses are "unclickable".



jsp(Posted 2010) [#4]
While this is working fine under XP I just tested it with Win7 (don't have access all the time) and you are right, you can't click or move the child windows. I tried to set the WS_CHILD or WS_EX_MDICHILD parameter on top, but there is still no joy with win7, while again XP acts on it immediately.
Not sure what's wrong with win7 here, I searched the net but found only some stuff 32 and 64 bit related, sorry.

But re-reading your post, you may can live without MDI and just parent the child windows to the main window, they would act as one application and the child windows would always be on top, isn't that enough?


ShadowTurtle(Posted 2010) [#5]
I have great experience with using windows, tasks etc.
I know how i do sort my desktop & windowses etc.
So it should be enough, yeah. Realy, this should be the way.

On the other side ...

There are peoples out (they are the most) wich have problems to sort some opened explorer windowses. They have a other sort of thinking as a power-user.

Software like Photoshop does use a MDI-alike-Interface. Why not on Mac (as compare to a another os)?
Mac-User have some Photoshop Plugins for directly opening the shooted photo into the program available etc.

Why? No one does realy like many opened windowses. Men does like it sorted. I am a man!

I do mean.. (additionaly) Why can i not realize a MDI-alike-Interface with MaxGUI via WinApi? Cross-Plattform is not required (today)!

Ok.. this is a sort of stupid question, as i am byself a programer.

On the other side ...

I have realy the possibilities doing byself a "parent&child-windowing system" (PCWS).
Some panels an voila i got some minimize & close buttons on the title panel. So i must only doing the maintainer panel moveable and the whole thing sizeable. On top i do set the window maintainer as child of the scrollpanel uber-maintainer erm.. parent..

So probably i do make a new module and share..