Christian,
As far as I know I could be hard to make MapBasic window parent to other
windows, since MB window actually contains another RichText type window,
which fills the entire client rectangle of MB window. So it is not very much
different from EditText Control on MapInfo dialog.
You could of course try to make this text window parent to other window. You
just need to get the hwnd (window handle) for the "RichText". My
MBwin_plus -application on Mapinfo-L FTP site will show you the technique
to do that. You might also need other Win32API functions for reparenting if
Set Next Document doesn't work. Let us know if you succeed.
The following will make your FrontWindow() parent to MB window. Even though
it is not the same it is way easier to achieve.
Regards,
Anssi
'**********************************************************
Include "mapbasic.def"
Declare Sub Main
Sub Main
Dim win As Integer
win = WindowInfo(FrontWindow(), WIN_INFO_WND)
Set Next Document Parent win Style 1
Open Window WIN_MAPBASIC
End Sub
'**********************************************************
-----Original Message-----
From: Christian Tomsu <[EMAIL PROTECTED]>
To: MapInfo-MailingList <[EMAIL PROTECTED]>
Date: 11. elokuuta 1999 10:25
Subject: MI Embedded Windows in MB
>Hello Tabledancers,
>
>is it possible to set a map or info window in MapBasic as embedded type
>?
>
>The following sequence is from the legends.mb sample:
>
>Set Next Document Parent WindowInfo(win, WIN_INFO_WND) Style 1
>Create Legend From Window Win
>
>i dont had success with follow sequence:
>
>set next document Parent WindowInfo(win, WIN_INFO_WND) Style 1
>set map ???
>set window info ???
>
>What is missing or wrong ?
>
>Regards, Christian
>
>
>----------------------------------------------------------------------
>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]