Just thought I would share this with the list.
The questions about the graph window in a Info window style made me think about something that I had been trying to investigate before, but I just never found the time for this.
I was curious to see if it was possible to embed any window in a map window.
The short answer is "Yes, that is possible".
What I did was this:
1. Open a map window
2. Thru the MapBasic window run this command:
Set Next Document Parent WindowInfo(FrontWindow(), 12) Style 1
3. Now open any new window, a browser, map, graph etc.
4. Now it looks as if your mapper also holds the new window.
5. Now run this command to change the size of the new window:
Set window WindowID(2) width 8 units "cm" Height 8 units "cm"
6. Now you should be able to see the original map behind the window you embedded in the map.
I'm pretty sure you also can move the embedded window, but I haven't played with that yet.
So in this way it is possible to embed a graph in your map.
You can now see both the graph and the mapper at the same time.
Cool ?
Peter Horsbøll Møller
GIS Developer, MTM
Geographical Information & IT
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
Tel +45 6311 4900
Direct +45 6311 4908
Mob +45 5156 1045
Fax +45 6311 4949
E-mail p...@cowi.dk
http://www.cowi.dk/gis
"Syn for sagen" er temaet for dette års MapInfo konference 2007.
Se programmet for konferencen her: http://www.cowi.dk/mapinfokonference
set map window WindowID(2) center (-96, 39) zoom 3500 units "mi"
set window WindowID(2) position (5,0) units "in"
You can also open and control multiple windows in the first window,
which is a slick way to avoid the problem of a maximized window hiding
the ones behind it. The downside is that the user doesn't have as much
direct control over the child windows, so you might have to do some
extra programming to mange it all.
- Bill Thoen