No, you what you ask for:

strActiveTable  = WindowInfo ( FrontWindow() ,  WIN_INFO_TABLE) 
This function actually returns the name of the cosmetic layer in the active map window.

If you need to duplicate the FrontWindow() you should use this syntax:

Run Command WindowInfo(FrontWindow(), WIN_INFO_CLONEWINDOW)

HTH,
Peter Horsb�ll M�ller
GIS Developer
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  [EMAIL PROTECTED]
http://www.cowi.dk

*****CHANGE OF ADDRESS - COWI's offices in Odense are now under the same roof*****
On December 8th. 2003, Geographical Information & IT moved from Rugaardsvej 55, 5000 
Odense C to Odensevej 95, 5260 Odense S. 
Please note our new telephone, direct and telefax numbers.
COWI wish you a merry Christmas and a happy New Year.


> -----Original Message-----
> From: Michel Van Asten [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, January 07, 2004 11:34 AM
> To: [EMAIL PROTECTED]
> Subject: MI-L MapBasic how to duplicate the front window
> 
> 
> Hi,
> 
> I got a stupid problem...
> 
> I create a simple MapBasic program that need to access and 
> duplicate the Front Window... But I access this procedure 
> from a buttonPad.... the table name I get is always Cosmetic2 
> ???? I guess the FrontWindow() function returns me always  
> the ID of ... the ButtonPad...
> 
> How can I solve this problem ?
> 
> Regards Michel Van Asten
> 
> 
> strActiveTable  = WindowInfo ( FrontWindow() ,  
> WIN_INFO_TABLE        ) 
> 
> 
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | 
> www.directionsmag.com | To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> Message number: 9769
> 
> 
> 

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 9793

Reply via email to