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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 menu item

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
FTADMIN1 Posted - 01/19/2004 : 08:39:52 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 01/21/2004 : 07:54:07 AM
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
FTADMIN1 Posted - 01/21/2004 : 07:28:42 AM
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

Mike Buess Posted - 01/19/2004 : 09:46:26 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000