To Gerald -

Try:

        Run Menu Command 111

instead of

        Run Menu Command M_FILE_PAGE_SETUP

M_FILE_PAGE_SETUP is a integer-constant (=111) defined in the MENU.DEF
include - file. 
The first command works when included i a .wor-file.
 
Regards 

Bo Thomsen
GeoConsult I/S
Denmark




> -----Oprindelig meddelelse-----
> Fra:  Gerald Kornelsen [SMTP:[EMAIL PROTECTED]]
> Sendt:        27. januar 2000 19:18
> Til:  [EMAIL PROTECTED]
> Emne: Re: MI Re: keeping layouts as 'landscape' not 'portrait'
> 
> It is possible to run some limited commands in a workspace.  (I still use
> MI 4.1.2)  For
> example, I have a few workspaces where I have a message pop up at the end
> of loading
> the .wor.  To tell the users what the line colours mean, I have this line
> at the end of the
> workspace:
> 
> Note "Note" + chr$(10) + "Red Lines are Waste Water Sewers"
> 
> I just tried to run a menu command in a .wor, but it didn't work.  I
> tried:
> 
> Run Menu Command M_FILE_PAGE_SETUP
> 
> to invoke the page setup dialog box.  When I ran the workspace, I got a
> message that
> M_FILE_PAGE_SETUP is an invalid sub procedure.  I guess MI doesn't like
> subs
> outside of MapBasic.
> 
> Anyway, has anyone else tried to run commands in a workspace?  Which ones
> have
> worked?
> 
> Gerald Kornelsen
> ----------------------------------------------------------------------
> 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]

Reply via email to