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

malkovich

Germany
14 Posts

Posted - 03/04/2010 :  06:09:58 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8.1G and Service Release SR1 (Select Help-->About Origin):
Operating System: Windows XP

I want to create a new custom toolbar to run some OriginC scripts (LabTalk script builds workspace and calls the OriginC function) by clicking on a button. Creating the toolbar and configuring the buttons is working well, but when I close and reopen Origin the toolbar disappeared. I placed all the files (.bmp, .ini, and the .ogs) in the origin user files folder, which in my case is located on a maped networkdrive.
When I configure the already existing custom toolbar Origin remembers the configuration.

I configured one button to be active only when a worksheet or graph is active but the button is active all the time even for an empty project. The rest of the buttons is configured to be active all the time.

Any idea?

Thanks, Hans

larry_lan

China
Posts

Posted - 03/04/2010 :  10:46:03 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hans:

Regarding the mapped network driver issue, we will fix it. Sorry for the inconvenience.

And the second problem that the button is active all the time. Could you please check the button .ini file? The file should look like:

[CustomButton1]
Id=42001
Image=0
FileName=test.ogs
SectionName=AA
ArgumentList=
ContextWindow=1
TemplateName=
Worksheet=1
Graph=0
Matrix=0
Excel=0
Layout=0

ToolTip=
StatusBarMsg=
Variable=

In the red font, value 0 means the button will not active when you select that kind of window.

Thanks
Larry
Go to Top of Page

malkovich

Germany
14 Posts

Posted - 03/05/2010 :  03:23:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Larry,

I checked this already and the .ini file looks like

;User defined toolbar information.
[Common]
GroupName=Benutzerdefiniert
BitmapFile=run_OriginCScripts_toolbar.bmp
ButtonCount=3
[CustomButton1]
Id=41984
Image=0
FileName=RenameFiles.ogs
SectionName=
ArgumentList=
ContextWindow=2
TemplateName=
Worksheet=1
Graph=1
Matrix=1
Excel=1
Layout=1
ToolTip=RenameFiles()
StatusBarMsg=
Variable=
[CustomButton2]
Id=41985
Image=1
FileName=ImportFiles.ogs
SectionName=
ArgumentList=
ContextWindow=2
TemplateName=
Worksheet=1
Graph=1
Matrix=1
Excel=1
Layout=1
ToolTip=ImportFiles()
StatusBarMsg=
Variable=
[CustomButton3]
Id=41986
Image=2
FileName=CompareSubstrates.ogs
SectionName=
ArgumentList=
ContextWindow=1
TemplateName=
Worksheet=1
Graph=1
Matrix=0
Excel=0
Layout=0
ToolTip=CompareSubstrates()
StatusBarMsg=
Variable=

The bitmap run_OriginCScripts_toolbar.bmp is 16x160 pixels but I use only the first three buttons. Is that a problem?

Thanks,
Hans
Go to Top of Page

larry_lan

China
Posts

Posted - 03/05/2010 :  03:48:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Not sure, could you please send us the related files?

Thanks
Larry
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