Gerald
>From my brief look at Proviewer you can't change any of the menu options.
Firstly it will not let you run mapbasic programs and secondly any attempt
to alter menus, shortcuts, buttonpads etc within a workspace file are
instantly removed once Proviewer takes back control.
Proviewer appears to be a full blown version of MapInfo Runtime that has
been altered to only run the proview.mbx program. In fact it has some sort
of check to see if the proview.mbx file is the correct one - yes I tried
writing my own version. The proview.mbx program then appears to check any
menu, button etc changes and reset back to the default.
While on the topic I agree that proviewer is a good tool and I am looking to
distribute it Council wide
I have devloped a series of workspace files that call each other and offer
some increased functionality - limited to the type of statements that can
be typed into the mapbasic window eg set map....layer ..., etc.
This works reasonably well and means I can build in spatial queries eg
!Workspace
!Version 400
!Charset WindowsLatin1
select * from selection into temp noselect
select * from people where object within any(select object from temp) into
Owners noselect
browse * Owners
This simply finds the point features that represent people within the
currently selected object. Simple but reasonably powerful
I also make heavy use of the ask function within the workspace file eg
!Workspace
!Version 400
!Charset WindowsLatin1
dim iNum as integer
!determine if the user wants to print A4 or A3 sheets
iNum1 = ask("Print Landscape or Portrait map?"+Chr$(13)+Chr$(13)+
"Note: Closing this prompt using the 'X' will assume 'Landscape'."
,"Landscape","Portrait")
run application "printing_control\Set_Map_Orient"+iNum1+".wor"
UnDim iNum
Hope this is of some use to potential users out there.
Cheers
Martin
> -----Original Message-----
> From: Gerald Kornelsen [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, 28 May 1999 04:52
> To: [EMAIL PROTECTED]
> Subject: MI ProViewer customizing
>
> Most of us are comfortable with customizing the MI Pro menus using the
> mapinfow.mnu file.
>
> I would like to limit some actions for users of MI ProViewer (non-GIS'ers
> just can NOT be trusted!!!).
>
> There is no obvious text file for the menus; is there a way to modify the
> menus?
>
> (BTW, ProViewer is a jim-dandy thing, sorta MI Pro Lite, & the price is
> right)
>
> Thanks
>
> Gerald
> ----------------------------------------------------------------------
> 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]