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
 Forum for Origin C
 show hide 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

Campo

Germany
Posts

Posted - 06/11/2006 :  07:33:31 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5-6
Operating System: winxp

i search a possibility to show and hide toolbars or only toolbar buttons by using a function.

I think it must be possible with:
view - toolbars - button groups - settings - variable
variable eg: i==1
and then set these variable with a function to 1

But until now i did not found a working solution.

Mike Buess

USA
3037 Posts

Posted - 06/11/2006 :  09:03:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can show amd hide a toolbar with the LabTalk commands system.toolbar.open(toolbarName) and system.toolbar.close(toolbarName). Prefix those commands with LabTalk. to use them in Origin C. It is not possible to show or hide individual buttons. The variable to which you refer enables or disables the button. For example, using wks.sel&2==2 as the variable will enable the button only when 1 or more columns are selected.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 06/11/2006 09:31:22 AM
Go to Top of Page

Campo

Germany
Posts

Posted - 06/19/2006 :  04:49:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thx
Go to Top of Page

kanderlee

Taiwan
Posts

Posted - 11/27/2007 :  02:06:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Mike.

I have made an OPK file with Test.ini, Test.bmp, Test.ogs and Test.c. What method can show the toolbar automatically after dragging and dropping an OPK file?

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 11/27/2007 :  08:04:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Easiest to pack the toolbar from the Customize Toolbar dialog. (View> Toolbars). Highlight the toolbar on the Button Groups tab and click the Export button at the bottom. That will create and pack the necessary script file for you.

Mike Buess
Origin WebRing Member
Go to Top of Page

kanderlee

Taiwan
Posts

Posted - 11/27/2007 :  9:08:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The OPK file which I mentioned before was made by your method, but the toolbar didn't appear automatically when the other people used this opk file. They have to add Button Group by selecting the ini file and add new toolbar's name, and then drag & drop the button to the toolbar......

Could you please tell me how to show the toolbar automatically after dropping the opk file in Origin? Thank you.
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 11/28/2007 :  12:40:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Could you please tell me how to show the toolbar automatically after dropping the opk file in Origin?
That's exactly what happens whenever I create an opk in that manner. Namely, the toolbar shows automatically after dropping on Origin. I don't know why it doesn't work for you.

Please open the opk file with Tools> Pack/Unpack OPK Files. The file list should contain the files you specified and also a setup file called OPKSetup.ogs. If that file is missing you need to recreate the opk from the Button Groups dialog. Caution: do not repack with the Tools> Pack/Unpack OPK Files dialog because that will delete the OPKSetup.ogs from the archive. Perhaps that has already happened which would explain why your toolbar is not created.

Mike Buess
Origin WebRing Member
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