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
 Origin Forum
 Q: Adding a menue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hajo_old

Germany
141 Posts

Posted - 03/14/2003 :  05:45:54 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello, all

is it possible to add a custom menue to the Origin main window that is visible without an worksheet or project ?

e.g. included before the "help" menu

Thanks
Hajo

-- --
Dipl.-Ing. Hans-Joerg Koch
Siemens VDO, Regensburg

SVDO_Origin1

Mike Buess

USA
3037 Posts

Posted - 03/14/2003 :  08:05:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hajo,

Sorry, but no. As it states in the help file you need a wks, plot, matrix or layout.

Mike Buess
Origin WebRing Member
Go to Top of Page

hajo_old

Germany
141 Posts

Posted - 03/17/2003 :  03:05:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Mike

hmmmmm, sounds really bad!!
I don't need a workbook at the beginning of analysing my data!
So, I'll have to find out a workarround!!


###########
I think that would be a new feature!!
###########

Thanks so far
Hajo

-- --
Dipl.-Ing. Hans-Joerg Koch
Siemens VDO, Regensburg

SVDO_Origin1

Edited by - SVDO_Origin1 on 03/17/2003 03:06:44 AM
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 03/17/2003 :  07:20:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hajo,

Here's the workaround that I've been using for years. It starts each new project with a minimized worksheet. Works fine.

def AutoExec {win -t D; win -i};

...Commands that don't require an active window can also be duplicated as toolbar buttons, which can be active at all times.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 03/17/2003 07:52:14 AM
Go to Top of Page

marko

Germany
112 Posts

Posted - 03/21/2003 :  04:51:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

quote:

...Commands that don't require an active window can also be duplicated as toolbar buttons, which can be active at all times.


I guess this is not right, at least not in my case (O6.1Pro), since in the toolbar button settings you need to specify when the button should be active. And even in case you enable all possibilities there you'll end up with a non-active button as soon as the last worksheet got closed.

BTW, where and how to insert your workaround? Simply run that in the script window and it will be set forever?

Marko

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 03/21/2003 :  08:15:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Marko,

The ability to make toolbar buttons active even in a windowless project was introduced in Origin 7.

The autoexec macro should be defined in Macros.cnf, which runs at startup and whenever you change menu levels. You'll probably find an autoexec definition already there but commented out. Actually, you can also start each project with a worksheet by selecting Tools->Options->Open/Close->Start New Project->Origin Worksheet. The advantage of using autoexec is that it also minimizes the wks, which I don't really use.

Mike Buess
Origin WebRing Member
Go to Top of Page

marko

Germany
112 Posts

Posted - 03/25/2003 :  04:29:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

I already expected that this is only valid for the newest V7! :)

Good to know that it's moving...

Though I still hesitate to upgrade my software. I am afraid I'll just spoil my projects, get new problems because of still unstable Origin C and get no benefit eventually from this upgrade. Better wait till 7.3 or so... ;)

Marko

P.S.: Unless you tell me it's really worth the upgrade, but I am really afraid that Origin C is still not a 100% substitute for labtalk, snce I heard not only once that this or that parameter can still only be set via labtalk. So where is the point. I better stick to VC++ DLLs and labtalk then!

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 03/25/2003 :  09:07:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Marko,
quote:
but I am really afraid that Origin C is still not a 100% substitute for labtalk, snce I heard not only once that this or that parameter can still only be set via labtalk.
I don't think Origin C was ever intended as a 100% substitute for labtalk. There will always be simple (or complicated) things that are easier to do in labtalk than try to duplicate with Origin C code. I use Origin C for things that...

> can't be done in labtalk. (One such area is project folder management.)

> can be done faster in Origin C. (Including almost anything involving a loop, complicated manipulation of large datasets and probably other areas I haven't discovered yet.)

I'm not going to try to convince you to upgrade to v7, but I suggest that you don't make the decision based solely on Origin C. (I'm sure there are many v7 users who haven't, and may never, use Origin C.) There have been lots of other changes... including toolbars that are always active.

Mike Buess
Origin WebRing Member
Go to Top of Page

marko

Germany
112 Posts

Posted - 03/26/2003 :  06:43:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

ok, so we have to live with labtalk and Origin C then. Understood.

quote:
There have been lots of other changes... including toolbars that are always active


Well, which other improvements would you list up as important for a frustrated labtalk programmer? Sure, calculations will become MUCH faster, that's clear, but what else, except of folder management??

Marko

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 03/26/2003 :  09:25:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
which other improvements would you list up as important for a frustrated labtalk programmer?
I doubt if all programmers' needs and frustrations are the same, so I'll only discuss some of the Origin 7 features that have been useful to me...

1. The folder management mentioned earlier has given me much more control over my batch processing routines.

2. Origin C file management has done the same for batch importing.

3. A new Info object has solved my (imported) parameter storage needs.

4. A new ROI (region of interest) object picks out an arbritrarily shaped region of a matrix image. I'm working on an integration routine for 2D spectra which uses the ROI right now.

5. Speaking of spectra... the Peak Fitting Module now comes with OriginPro.

6. Finally, there are a number of smaller perks (e.g., control over the Data Display tool and the ability to apply all column formulae with one command) which are also useful from time to time.

Mike Buess
Origin WebRing Member
Go to Top of Page

marko

Germany
112 Posts

Posted - 03/27/2003 :  08:18:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

thanks for your informative answer. Looks like there are really some plusses then. I'll consider upgrading in near future...

Marko

Go to Top of Page

greg

USA
1378 Posts

Posted - 03/27/2003 :  09:12:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The SR4 patch for Origin 7 will add a new menu option to resolve this problem:

menu -v;

will set the menu to no window association. You could then use:

menu ?To;
menu -i 3;
menu -i 4 Run {type -b Hello;};

to add a menu option that would only appear in the Tools menu when there are no child windows. Start with:

menu -wgmpv;

if you want your menu option available to Worksheet, Graph, Matrix and layout Page windows as well. (Maybe we could think of it as Virtual?)



Edited by - greg on 03/27/2003 09:12:53 AM
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