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