Hello, (again)
With reference to my last e-mail I attach the MB I have written to 
try to disable the print facility when the user is not within the 
Layout or the Browser. Although this disables the print facility 
within the mapper, and then enables it within the layout and 
browser, if you then change back to the mapper the print facility is 
again enabled.
Thank you to Eric Frost for his input with this query, but my MB 
may need tweaking to solve this problem.
David Crowther
GIS Consultant
[EMAIL PROTECTED]
___________________________

Traffic Director for London
0171 222 4545 (ext:143)

include "mapbasic.def"
include "menu.def"
include "icons.def"

Declare Sub Main
Declare sub WinFocusChangedHandler
sub main
        Alter Menu Item 112 disable
end sub

sub WinFocuschangedHandler
        Dim i_win_type As Smallint
        i_win_type=Windowinfo(CommandInfo(CMD_INFO_WIN),WIN_INFO_TYPE)
                IF i_win_type = 2 or 3 then
                        Alter Menu Item id 112 Enable
                ELSEIF i_win_type = 1 then
                        Alter Menu Item id 112 disable
                End IF
end sub




 

Reply via email to