Robert,

 

I suggest that you create a unique window ID as a variable at the time
you create the legend and then call it by ID name when you are
developing your layout window. IE

 

Dim LegendWindowID as Integer

 

Then, straight after you have created your legend

 

LegendWindowID = FrontWindow()

 

Then, when you're in layout you can call Window LegendWindowID directly.
For example:

 

      'Legend Frame

            Create Frame 

            From Window LegendWindowID

 

 

I hope this helps,

 

Percy

 

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 5 May 2005 9:13 AM
To: [email protected]
Subject: MI-L Inserting a legend onto a layout.

 

Hi,

 

I am trying to insert a legend for a map onto a layout.

 

I think that if I can get its name or window ID, then I can insert it,
but

that is proving more elusive than it should.

 

I have tried a combination of WindowID(WIN_LEGEND),

WindowInfo(WindowID(WIN_LEGEND), WIN_INFO_NAME),

LegendInfo(LEGEND_INFO_MAP_ID) and a number of others.  I've even
written

a function to go through the windows to check their parent ID if they
are

legend, but it crashes as it treats legend windows differently.

 

Actually I'm sure that I am missing something really embarassingly
simple,

but feel free to embarass me publically.  I am tryiung to get this done

today.

TIA

Robert

 

 

---------------------------------------------------------------------

List hosting provided by Directions Magazine | www.directionsmag.com |

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]

Message number: 16363

 

 

 

_______________________________________________________________________________________________________

The information transmitted is for the use of the intended recipient only and 
may contain confidential and/or legally privileged material. 
Any review, re-transmission, disclosure, dissemination or other use of, or 
taking of any action in reliance upon, this information by persons or entities 
other than the intended recipient is prohibited and may result in severe 
penalties. 
If you have received this e-mail in error please notify the Security Advisor of 
the Department of Communications, Information Technology and the Arts, 
telephone (02) 6271-1880 and delete all copies of this transmission together 
with any attachments.
For all other enquiries please ring (02) 6271-1000. 
_______________________________________________________________________________________________________



Reply via email to