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
 Visibility of custom menu
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jdf726

78 Posts

Posted - 02/07/2019 :  12:14:07 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2018 pro
Operating System: W7 pro

I just noticed one small thing with respect to this comment about loading a custom menu.

https://my.originlab.com/forum/topic.asp?TOPIC_ID=45470

I have my menu, but it sometimes disappears and has to be forced back by toggling the Format...Menu... option to default and then back.

I wondered if this is because I am programmatically creating projects using origin c code that saves the file as the older 'opj' style project.

Is anything about the 'persistence' of the menu tied to the project that is open at the time?



J.

yuki_wu

896 Posts

Posted - 02/11/2019 :  01:09:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi J,

Not sure if you have specified the Window Type for your custom menu. If so, the custom menu would be only available when the specified window type is active. You could select Tools: Custom Menu Organizer, then go to Add Custom Menu tab and check.

If Always is selected in Custom Menu Organizer dialog, I think we need your custom menu file to do further check.

Regards,
Yuki
OriginLab
Go to Top of Page

jdf726

78 Posts

Posted - 03/01/2019 :  1:07:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Yuki,

Sorry for the delay, but this is not a case of just having the visibility set incorrectly, it actually just disappears when creating and reopening projects.

Format>menu> shows mine should be active (but it is not visible). Toggling this to default and back again makes my menu appear.

I can send you a copy of the OMC file, but this should be fairly uncontroversial.
The export line is Project.Save(projpath) where the path includes explicitly the extension 'opj').

J.
Go to Top of Page

yuki_wu

896 Posts

Posted - 03/04/2019 :  10:38:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi J,

I tried to reproduce as you described. I found this issue only exists when we save the project as an opj file with a graph window active. As a workaround, I think you could:

1. Active a workbook window before you save that project as an opj file
Or
2. Save as an opju file, and you might also found this.

I have reported this issue (ID: ORG-19784) and our developer will look into it. Sorry for the inconvenience.

Regards,
Yuki
OriginLab
Go to Top of Page

jdf726

78 Posts

Posted - 03/06/2019 :  04:58:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for tracking it down!

As you say, it is probably trivial for me to activate a workbook before saving.
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