I'm trying to create a little MapBASIC script in the MB window that will fetch
the next record of a mappable file, zoom to the coord of the currently selected
record and then modifies a layout so that the currently selected map window,
text labels (the window title is a text variable that contains the name of the
currently selected polygon)and browsers are updated. I'm having an awful time
with updating objects in a layout window. I can create a whole new layout
window and it will include the current data, but I can't seem to modify the
current one to update the contents. I don't want to spawn a hundred layouts if
I can help it.
I'm working with Create Text and Create Frame statements that follow a Layout
command. What I'd like to do is have the layout window active so that
subsequent create text and create frame functions operate on current (and only)
layout window, not create others.
I've tried operating on the current layout window by getting the window handle
of the layout window and specifying that as the "into Window" parameter of the
Create Text statement to change the text, but that doesn't work. Ditto the
Create Frame. Doesn't work: nothing appears at the right place in the layout
window. I've tried other stuff, too, but no dice. Here's the code from the MB
window I've been using.
Create Text
into window LayoutHandleID (variable for window handle)
layoutmaptitle (string variable)
(3.5,0.2764) (6.3972,0.5813)
Font ("Arial",0,24,0)
Anyone know how to make these changes to the titles and what not can be handled
through a script that doesn't have to create a new layout window to create new
text and frames?
PS: I've got MapBASIC but haven't installed it, but could if that's the
solution.
Thanks,
Tim
Rood
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]