The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 menu item
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

FTADMIN1

Germany
2 Posts

Posted - 01/19/2004 :  08:39:52 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi I have a Problem with Labtalk in Origin 7.5

I whant add an Menu Item whis a string variable like this
%A = File;
menu 1 (%A);

But it dosen´t work

anybody an idea

thanks

Mike Buess

USA
3037 Posts

Posted - 01/19/2004 :  09:46:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Your command will add an entire menu at the first position of the active menu bar. Substitution is not allowed for menu names.

%A = File;
menu -g; // graph menus
menu 1 (%A);

If a graph is active and you click the refresh button then your menu bar will look like this...

%A File Edit ...

Substitution is allowed for menu item names.

%A = File;
menu -g; // graph menus
menu 1; // first menu (File)
menu (%A) { }; // append a menu item (that does nothing) named File to the File menu

Hope that helps.


Mike Buess
Origin WebRing Member
Go to Top of Page

FTADMIN1

Germany
2 Posts

Posted - 01/21/2004 :  07:28:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

sorry it dosen´t work. :( If I do it how do you write it, the complete File menu is lost.

Do you have a nother idea :)

many thanks

regards

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 01/21/2004 :  07:54:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Which command are you trying... create menu or create menu item? Both work for me as advertised and neither destroys the File menu. Please post your script again.

... Perhaps this is what you are seeing...

menu -gwmpv; // select all menu bars
menu 1 (Test); // add Test menu at 1st position

Click on any window or the Refresh button. The menu bar looks like this...

Test File Edit ...

The Test menu has no menu items and therefore does not expand when you select it with the mouse. Other menus also do not expand if you just pass the mouse cursor over them but clicking on the menu name will force them to expand.

Adding an item to the Test menu will fix this.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 01/21/2004 08:50:45 AM

Edited by - Mike Buess on 01/21/2004 5:49:32 PM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000