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
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.
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?
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.
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.
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.