Thanks Tony

That's interesting stuff to note and file away.  I've sorted the problem
by recompiling all mod's.

Cheers

Terry 

-----Original Message-----
From: Photogrammetry GIU
[mailto:[EMAIL PROTECTED] 
Sent: 08 July 2005 13:00
To: Terry McDonnell
Subject: Re: MI-L Error trying to get Window ID

Hi Terry

It is probably not too relevant to your operation, but if you create a
legend and then check in your temp file area, you will find some temp
files starting with LGND which are the temp tab files for your current
legends. Grab them, rename them to make them permanent and load them as
a standard legend. If necessary crash the program so that the lgnd tabs
are not deleted.

Good luck

Tony

>>> "Terry McDonnell" <[EMAIL PROTECTED]> 08/07/2005 12:40:54 >>>
Dear Listers
 
I'm trying to get the Window ID of a newly displayed legend window. 
So
in the module OnDSMenuOpts.MBO, I use the code:
 
Create Cartographic Legend
 From Window FrontWindow()
 Position (1, 1) Width 6 Height 2
 Window Title "On-Demand Service Catchment Areas, Service: " + RTRIM$(
csrThisONDS.ServDesc)
 Scrollbars Off Portrait Default Frame Border Pen (1,2,0)  Frame From
Layer csrHomeZG Title "Home ZG: " + lcHZGDesc Using column object label
default  Frame From Layer csrDestZG Title "Destination ZG: " + lcDZGDesc
Using column object label default

gnLegendID = WINDOWID( 0) 'Get ID of most recently opened window -
legend window

Now gnLegendID is dim'd in a .def file as:
 
Global gnLegendID as Integer

Last night when I ran the routine I got an Overflow error on this line.
Today, when I linked the project I got errors, to wit:
 
"Incompatible definition of Global gnLegendID in
\\{path}\OnDSMenuOpts.MBO" 
 
Now, according to Help, WindowID( window_num ) returns an Integer value,
and to get the ID of the most recently opened document window, custom
legend window, et al, you issue WindowID with window_num of zero, as I
have.

Anyone tell me what's going on here?

'ppreciate it.

Terry McDonnell



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

Message number: 17052



The average family throws out six trees of paper a year - please respect
the environment and be green by example, only print out this E-Mail and
attachments if you have to. Thank you.

This E-mail and any files transmitted with it are private and intended
solely for the use of the individual or entity to whom they are
addressed.
If you are not the intended recipient, the E-mail and any files have
been transmitted to you in error and any copying, distribution or other
use of the information contained in them is strictly prohibited.

Nothing in this E-mail message amounts to a contractual or other legal
commitment on the part of English Nature unless confirmed by a signed
communication.

English Nature will make every effort to keep its network free of
viruses.
However, the recipient of this message will need to scan this message,
and any attachments, for viruses, as English Nature can take no
responsibility for any computer virus that might be transferred by this
e-mail.




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

Reply via email to