Topic: A USTARTUP.VDM 6.11 question. (1 of 15), Read 74 times
Conf: Startup, File Open, Exit
From: Peter Rejto
Date: Monday, February 09, 2004 08:06 AM

Hello,

I did succeed in loading my {Tools} menu using the instructions in the USTARTUP.VDM file.

However, if I try to load both my {Tools} menu and my
{User} menu, I do get an error message. Then neither of
these two menus get loaded.

Of course, I un-commented Config(U_TOOLS_MENU,4). In other words, my problem is that this configuration string works fine for the U_TOOLS_MENU but not for the U_USER_MENU, which is not defined.

Is this problem peculiar to my installation?


Thanks,

-peter.

 


Topic: Re: A USTARTUP.VDM 6.11 question. (2 of 15), Read 66 times
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Monday, February 09, 2004 02:21 PM

Peter:

>However, if I try to load both my {Tools} menu and my
>{User} menu, I do get an error message. Then neither of
>these two menus get loaded.

What error message do you get?
To know that would help us to help you...


>Of course, I un-commented Config(U_TOOLS_MENU,4). In other words,
>my problem is that this configuration string works fine for the
>U_TOOLS_MENU but not for the U_USER_MENU, which is not defined.

The {User} menu is per definition a user defined menu. So there is no
need for such a config value.


Christian

 


Topic: Re: A USTARTUP.VDM 6.11 question. (3 of 15), Read 67 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Monday, February 09, 2004 04:05 PM

At 02:22 PM 2/9/2004, you wrote:
>>However, if I try to load both my {Tools} menu and my
>>{User} menu, I do get an error message. Then neither of
>>these two menus get loaded.
>
>What error message do you get?
>To know that would help us to help you...
>
>>Of course, I un-commented Config(U_TOOLS_MENU,4). In other words,
>>my problem is that this configuration string works fine for the
>>U_TOOLS_MENU but not for the U_USER_MENU, which is not defined.
>
>The {User} menu is per definition a user defined menu. So there is no
>need for such a config value.

Yes, please always report the exact error message.
Note that your loaded .MNU files must be in the vedit\user-mac directory.

Christian, sorry, but your comment is incorrect. Config(U_TOOLS_MENU) is designed to be a config value which is set in USTARTUP.VDM and then changes how STARTUP.VDM loads the {USER} and {TOOLS} menus.

Ted.

 


Topic: Re: A USTARTUP.VDM 6.11 question. (4 of 15), Read 69 times
Conf: Startup, File Open, Exit
From: Peter Rejto
Date: Monday, February 09, 2004 05:27 PM

On 2/9/2004 4:05:56 PM, Ted Green wrote:
>At 02:22 PM 2/9/2004, you
>wrote:

>Yes, please always report the
>exact error message.
>Note that your loaded .MNU
>files must be in the
>vedit\user-mac directory.
>

Thanks Ted,

I believe that this is my problem! The exact error message was very hard to get. It was a fragment and in retrospect it looked like a part of a pathname.

Thanks to the generous support of this user group, my user-mac directory is really crowded! So, I moved my numerous *.mnu files to a user-mnu directory. Incidentally, is there a chance that you would introduce such a directory, that Vedit would recognize?

Thanks again to both of you for helping me out!


-peter.

 


Topic: Re: A USTARTUP.VDM 6.11 question. (5 of 15), Read 70 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Monday, February 09, 2004 08:55 PM

At 05:27 PM 2/9/2004, you wrote:
>Thanks to the generous support of this user group, my user-mac directory is really crowded! So, I moved my numerous *.mnu files to a user-mnu directory. Incidentally, is there a chance that you would introduce such a directory, that Vedit would recognize?

No, since few users have as many .MNU files, I don't plan on a separate directory for .MNU files. However, I do plan on a VEDIT\LANG directory to hold language-dependent files such as .SYN and .VTM.

Ted.

 


Topic: Re: A USTARTUP.VDM 6.11 question. (7 of 15), Read 67 times
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Tuesday, February 10, 2004 02:19 AM

On 2/9/2004 8:55:47 PM, Ted Green wrote:
>However, I do plan on a VEDIT\LANG directory to
>hold language-dependent files such as .SYN and .VTM.

That would be fine!

Christian

 


Topic: Re: A USTARTUP.VDM 6.11 question. (15 of 15), Read 35 times
Conf: Startup, File Open, Exit
From: Peter Rejto
Date: Tuesday, May 25, 2004 08:02 AM

On 2/9/2004 8:55:47 PM, Ted Green wrote:

>No, since few users have as
>many .MNU files, I don't plan
>on a separate directory for
>.MNU files. However, I do plan
>on a VEDIT\LANG directory to
>hold language-dependent files
>such as .SYN and .VTM.

Thanks Ted,

I am looking forward to using the planned
VEDIT/LANG directory.

-peter.

 


Topic: Re: A USTARTUP.VDM 6.11 question. (6 of 15), Read 65 times
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Tuesday, February 10, 2004 02:17 AM

On 2/9/2004 4:05:56 PM, Ted wrote:
>
>Christian, sorry, but your comment is incorrect.
>Config(U_TOOLS_MENU) is designed to be a config value
>which is set in USTARTUP.VDM and then changes how
>STARTUP.VDM loads the {USER} and {TOOLS} menus.

Hmmm.

I see it as follows (in my 6.11 STARTUP.VDM):

1. Startup.vdm initializes {User} and {Tools} menu strings.

2. then it executes USTARTUP.VDM with possible changes of
Config(U_TOOLS_MENU) and the above strings

3. Startup.vdm then loads the {User} menu

4. Dependent on Config(U_TOOLS_MENU) a {Tools} menu is loaded.


So Config(U_TOOLS_MENU) seems to have no effect on the {User} menu.

Am I wrong with that?


Christian

 


Topic: Re: A USTARTUP.VDM 6.11 question. (8 of 15), Read 62 times
Conf: Startup, File Open, Exit
From: Peter Rejto
Date: Tuesday, February 10, 2004 06:34 AM

On 2/10/2004 2:17:42 AM, Christian Ziemski wrote:
>On 2/9/2004 4:05:56 PM, Ted wrote:
>>

>Hmmm.
>
>I see it as follows (in my 6.11
>STARTUP.VDM):
>
>
>So Config(U_TOOLS_MENU) seems to have no
>effect on the {User} menu.
>
>Am I wrong with that?
>
>
> Christian

Christian,

I just did the experiment and it does work. More specifically, setting this config value to "4" I did succeed in loading my {user} menu.

Do I understand the gist of your question correctly? There is a discrepancy between the description of this config value and the way it actually works.

Thanks for your comment on my error message. I sure did contain important information that I faile to report!
It said :

Bad Filename,

fragmented filename .....


Now after Ted's hint, I do understand it. The instructions aske for "nameonly" and I have enterde the full path.
Well this is the story of my "programming life". Usually, there is a hidden assumption that I miss. In this case it was not so hidden.

Thanks

- peter.

 


Topic: Re: A USTARTUP.VDM 6.11 question. (9 of 15), Read 59 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Tuesday, February 10, 2004 10:40 AM

At 02:17 AM 2/10/2004, you wrote:
>I see it as follows (in my 6.11 STARTUP.VDM):
>...
>So Config(U_TOOLS_MENU) seems to have no effect on the {User} menu.
>Am I wrong with that?

Christian, no you are correct. "no effect" is just ambiguous. Config(U_TOOLS_MENU) determines which {USER} menu is load, which is a "big effect".
:-))

Ted.

 


Topic: Re: A USTARTUP.VDM 6.11 question. (10 of 15), Read 59 times
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Tuesday, February 10, 2004 11:38 AM

>Config(U_TOOLS_MENU) determines which {USER} menu is load, which is a "big
>effect".

I'm still puzzled.
How does it do that for the {USER} menu????
It determines which {TOOLS} menu is loaded in STARTUP.VDM, but the
{USER} menu is independent from that.

Help! Please enlighten me!


Christian

 


Topic: Re: A USTARTUP.VDM 6.11 question. (11 of 15), Read 59 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Tuesday, February 10, 2004 11:54 PM

At 11:39 AM 2/10/2004, you wrote:
>>Config(U_TOOLS_MENU) determines which {USER} menu is load, which is a "big
>>effect".
>
>I'm still puzzled.
>How does it do that for the {USER} menu????
>It determines which {TOOLS} menu is loaded in STARTUP.VDM, but the
>{USER} menu is independent from that.
>Help! Please enlighten me!

Oops, you are absolutely right. As usual.

Config(U_TOOLS_MENU) only selects the {Tools} menu.

Ted.

 


Topic: Re: A USTARTUP.VDM 6.11 question. (12 of 15), Read 50 times
Conf: Startup, File Open, Exit
From: Peter Rejto
Date: Sunday, February 29, 2004 08:02 PM

On 2/9/2004 4:05:56 PM, Ted Green wrote:


>Note that your loaded .MNU
>files must be in the
>vedit\user-mac directory.


I did some more experiments and this is what I came up with.

My {Tools} menu is in the vedit directory, that is to say in my vedit home directory. My {User} menu is in the directory given by my USER_MACRO configuration string.

I tried numerous other possibilities that did not work for me. Is this peculiar to my installation? I would certainly appreciate fellow Vedit users to check it out.

Incidentally, I forgot to un install Vedit 5.2 before installing Vedit 6.11. When I try to un-install Vedit from my registry, I get a message about Version 5. I choose the uinstall Version 5 option, Vedit goes ahead with it. However, the next time I try to un-install Vedit from the registry, I get the same message.

Anyway, my {User} and {Tools} menu-s seem to be working fine with the above installation.

P.S. I learned a lot from the previous discussion.
Thanks,

-peter.

 


Topic: A USTARTUP.VDM 6.11 question. (13 of 15), Read 47 times
Conf: Startup, File Open, Exit
From: Pauli Lindgren
Date: Tuesday, March 02, 2004 04:49 AM

On 2/9/2004 8:06:51 AM, Peter Rejto wrote:
>
>Of course, I un-commented Config(U_TOOLS_MENU,4).

I think it is better not to un-comment that command in the USTARTUP.VDM file. It makes it impossible to change the configuration using config menu. Why not just choose "4" in
"Config" -> "Miscellaneous" -> "(TOOLS) menu".

To load your own User-menu, you only need to put the menu file in your user-mac directory with the name user.mnu. Then you do not need to make any changes to USTARTUP.VDM.

By the way, are you aware that the User and Tools menus are saved with the project if you have enabled the option "Restore full project on open". This way, you can have different User and Tools menus for each project.

--
Pauli

 


Topic: A USTARTUP.VDM 6.11 question. (14 of 15), Read 45 times
Conf: Startup, File Open, Exit
From: Peter Rejto
Date: Wednesday, March 03, 2004 07:52 AM

On 3/2/2004 4:49:04 AM, Pauli Lindgren wrote:
>On 2/9/2004 8:06:51 AM, Peter Rejto
>wrote:
>>
>>Of course, I un-commented Config(U_TOOLS_MENU,4).
>
>I think it is better not to un-comment
>that command in the USTARTUP.VDM file.
>It makes it impossible to change the
>configuration using config menu. Why not
>just choose "4" in
>"Config" -> "Miscellaneous" -> "(TOOLS)
>menu".
>
>To load your own User-menu, you only
>need to put the menu file in your
>user-mac directory with the name
>user.mnu. Then you do not need to make
>any changes to USTARTUP.VDM.
>
>By the way, are you aware that the User
>and Tools menus are saved with the
>project if you have enabled the option
>"Restore full project on open". This
>way, you can have different User and
>Tools menus for each project.

Thanks Pauli,

Please keep in mind that I am not a programmer. What looks easy to you is not easy for me. So, I do prefer to enter
configuration parameters via the USTARTUO.VDM file, inasmuch as I need written records of my changes.
Well, this is not completely possible. I a
also have to use {Config, Misc, Enable USTRATUP file}. But I have a written record of this congfig parameter setting.


Thanks for making it explicit that the {User} and {Tools} menus should be in the vedit/user-mac directory. I did some experiments, a little while ago, which seem to partially contradict this. However, I could not reconstruct these experiments. In fact, I confirmed your claim
just now. So, it was really really helpful.


I am lazy on my "project home work". So, you gave me a very good incentive to work on it.

Thaks again,

-peter.