AW: MI Files on Most Recently Used-list

2000-01-11 Thread Andreas Mahn


 -Ursprüngliche Nachricht-
 Von:  Anssi Joutsiniemi [SMTP:[EMAIL PROTECTED]]
 Gesendet am:  Montag, 10. Januar 2000 17:43
 An:   [EMAIL PROTECTED]
 Betreff:  Re: MI Files on Most Recently Used-list
 
 
Hello Anssi,

thanks for your input.
  Your server kept returning my mail so here it comes through the list.
Our mail server is indeed causing us headaches. Strangely enough, the
mailbox receiving mails from the list does not seem to be affected.

  1.) My MB application opens a workspace, which causes MapInfo to include
 the
  workspace file on the Most Recently Used (MRU) list in the File menu.
  Additionally, this filename is used as the default workspace filename
 the
  next time the user wants to save a workspace.
  Is there a way to suppress this, as I don't want the user to see the
  filename or overwrite this file? (I basically don't want the user to
 take
  notice of this file.)
 
 You could try saving your workspace into temporary location for example
 using path from TempFileName$ function. Runing workspace from temp
 location and deleting it afterwards. Then trying to run the deleted
 workspace and handling error with OnError routine. I assume the workspace
 name will  be removed from MRU list.
Good idea, but doesn't do the trick. MapInfo only removes files from the MRU
list once the user selects a file which does no longer exist, or which has
been deleted with a menu command (such as Delete Table...). Trying to open a
non existing file from a MapBasic application generates an error, but does
not effect the MRU list. 

 2.) The Pack Table command, used in a MapBasic application writes out a
 number of commands to the MapBasic window. I wonder why it does that, as
 other commands in MB code don't give away that they have been used.
 Again, the question is, is there a way to get around that (apart from
 closing the MapBasic window)?
 
 Have tried does Run Command "Pack Table " have same effect?
 How about Run Menu Command ID... ?
Doesn't work, too, im afraid... 

Thanks anyway,
Cheers,
Andreas
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Files on Most Recently Used-list

2000-01-11 Thread Alex Eshed

Hello Andreas,

You have an entry in your Menu Definition (under File) which 
causes the MRU files to display - ($

The regular MapInfo Menu has the following line in it:

  "($",   '*  MRU list; appears as separator, if filenames follow.

I suppose that if you remove this entry you will no longer be 
bothered with any MRU files.

As for default workspaces - under Options - Preferences - 
Restart you can control whether or not MapInfo saves and/or loads 
default workspaces. I don't think you need this for MapBasic - 
workspaces will not save or load unless you specifically use code 
to do so.

   1.) My MB application opens a workspace, which causes MapInfo to
   include
  the
   workspace file on the Most Recently Used (MRU) list in the File menu.
   Additionally, this filename is used as the default workspace filename
  the
   next time the user wants to save a workspace.
   Is there a way to suppress this, as I don't want the user to see the
   filename or overwrite this file? (I basically don't want the user to
  take
   notice of this file.)

Good luck.


Best regards,
Alex Eshed
Digi-Tek Ltd.
12, Homa St., Rishon LeZion, 75655, Israel
Tel: +972-3-961-5840
Fax: +972-3-961-5877
mailto:[EMAIL PROTECTED]
http://www.dgtek.com
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



MI Files on Most Recently Used-list

2000-01-10 Thread Andreas Mahn

Hi there everybody,

here are two questions for any serious MB-hacker:

1.) My MB application opens a workspace, which causes MapInfo to include the
workspace file on the Most Recently Used (MRU) list in the File menu.
Additionally, this filename is used as the default workspace filename the
next time the user wants to save a workspace.
Is there a way to suppress this, as I don't want the user to see the
filename or overwrite this file? (I basically don't want the user to take
notice of this file.)

2.) The Pack Table command, used in a MapBasic application writes out a
number of commands to the MapBasic window. I wonder why it does that, as
other commands in MB code don't give away that they have been used.
Again, the question is, is there a way to get around that (apart from
closing the MapBasic window)?

Any hints are welcome

Cheers,
Andreas

 Andreas Mahn
 DDS GmbH
[]
  Stumpfstr. 1
  D - 76131 Karlsruhe
  Tel.: +49-(0)-721-9651406
  Fax: +49-(0)-721-9651419
  http://www.dds.ptv.de

[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]



Re: MI Files on Most Recently Used-list

2000-01-10 Thread Anssi Joutsiniemi


- Original Message - 
From: Anssi Joutsiniemi [EMAIL PROTECTED]
To: Andreas Mahn [EMAIL PROTECTED]
Sent: Monday, January 10, 2000 6:14 PM
Subject: Re: MI Files on Most Recently Used-list


Andreas,
Your server kept returning my mail so here it comes through the list.

 1.) My MB application opens a workspace, which causes MapInfo to include the
 workspace file on the Most Recently Used (MRU) list in the File menu.
 Additionally, this filename is used as the default workspace filename the
 next time the user wants to save a workspace.
 Is there a way to suppress this, as I don't want the user to see the
 filename or overwrite this file? (I basically don't want the user to take
 notice of this file.)

You could try saving your workspace into temporary location for example using path 
from TempFileName$ function. Runing workspace from temp location and deleting it 
afterwards. Then trying to run the deleted workspace and handling error with OnError 
routine. I assume the workspace name will  be removed from MRU list.

2.) The Pack Table command, used in a MapBasic application writes out a
number of commands to the MapBasic window. I wonder why it does that, as
other commands in MB code don't give away that they have been used.
Again, the question is, is there a way to get around that (apart from
closing the MapBasic window)?

Have tried does Run Command "Pack Table " have same effect?
How about Run Menu Command ID... ?


Regards,
Anssi




--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]