You need to add "From" clause to your create statement,
create frame
Into Window FrontWindow()
(fx2 - 5.0,fy1+2.0) (fx2,fy1 + 17.0)
Title legenden_title
From Window MyLegendWinHandle
FillFrame On
--
Sonya Nikolsky
Production Manager
JCH GeoInfo
Durham NC
ml wrote:
> Hello listers,
>
> i have a lot of problems in getting a thematic legend
> automatically appear in a layout window via mapbasic.
>
> Here is what i do :
>
> 1. do some thematic shading
> 2. change the name of main mapper window (eg: Set window Title "XYZ")
> 3. create a layout for this window
> 4. insert frame for the legend into this window
>
> ' I store the title of the legend window in a variable, the application i
> s used with
> ' english Mi-Pro Versions as well as with german
>
> legenden_title = WindowInfo(WIN_LEGEND, WIN_INFO_NAME)
>
> This is the point which doesnt work in all cases....
> create frame
> Into Window FrontWindow()
> (fx2 - 5.0,fy1+2.0) (fx2,fy1 + 17.0)
> Title legenden_title
> FillFrame On
>
> The result is always a blank frame in the layout window with no window for.
>
> I tried every combination of setting the legend title, e.g - never
> succeeded.
>
> Please send me some hints..
>
> regards,
>
> Markus
>
> --
> Markus Lindner CISS TDI GmbH
> Tel. +49 2642 97 80 0 Barbarossastrasse 36
> Fax. +49 2642 97 80 10 53489 Sinzig, Germany
> mailto:[EMAIL PROTECTED] http://www.ciss.de/
>
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]