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
 Origin Forum
 custom toolbar buttons

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
malkovich Posted - 03/04/2010 : 06:09:58 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
larry_lan Posted - 03/05/2010 : 03:48:06 AM
Not sure, could you please send us the related files?

Thanks
Larry
malkovich Posted - 03/05/2010 : 03:23:47 AM
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
larry_lan Posted - 03/04/2010 : 10:46:03 PM
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

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