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
 Toolbar button status

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
kaiousama Posted - 09/16/2004 : 02:23:30 AM
Hi,

i've created a custom toolbar that runs my script's sections. I set some buttons enabled only when the active windows is a worksheet, others only when the enabled window type is a plot.

I have a problem: I need a button of these to be enabled even when no windows are present/active, exactly like Origin's "New worksheet" button does.

Is it possible? How do i have to modify my custom .ini file?

I've attached the .ini file, what i pratically need is that CustomButton1 remains always Enabled.


;User defined toolbar information.
[Common]
BitmapFile=.\sinewave.bmp
ButtonCount=10

[CustomButton1]
FileName=sinewave.ogs
SectionName=open
ArgumentList=
ContextWindow=1
TemplateName=
Worksheet=1
Graph=1
Matrix=1
Excel=1
Layout=1
ToolTip=Import pClamp data
StatusBarMsg=
Index=0
Id=48661

[CustomButton2]
FileName=sinewave.ogs
SectionName=plotavg
ArgumentList=
ContextWindow=1
TemplateName=
Worksheet=1
Graph=0
Matrix=0
Excel=0
Layout=0
ToolTip=Plot average signal
StatusBarMsg=
Index=1
Id=48662

[CustomButton3]
FileName=sinewave.ogs
SectionName=fftsmart
ArgumentList=
ContextWindow=1
TemplateName=
Worksheet=0
Graph=1
Matrix=0
Excel=0
Layout=0
ToolTip=Perform FFT
StatusBarMsg=
Index=2
Id=48663


Origin version : 6.0 professional SR4
Operating System: Windows XP
2   L A T E S T    R E P L I E S    (Newest First)
kaiousama Posted - 09/16/2004 : 1:24:21 PM
Thanks Mike, keeping a worksheet minimized is a good workaround for the problem, since it needs to be done only when origin is started.
Mike Buess Posted - 09/16/2004 : 07:42:44 AM
quote:
I have a problem: I need a button of these to be enabled even when no windows are present/active, exactly like Origin's "New worksheet" button does.
That is possible only in Origin 7.0+.

...My (partial) workaround in pre-7.0 days was to keep a minimized worksheet in the project at all times. You can create one at startup or when clicking the New Document button by adding the following macro definition to Macros.cnf...

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

You might also need to select Start New Project: None on the Open/Close tab of Tools->Options. This is only a partial solution because it doesn't help in an empty project folder.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 09/16/2004 12:51:16 PM

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