T O P I C R E V I E W |
Campo |
Posted - 06/11/2006 : 07:33:31 AM 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. |
6 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 11/28/2007 : 12:40:18 AM 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 |
kanderlee |
Posted - 11/27/2007 : 9:08:05 PM 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. |
Mike Buess |
Posted - 11/27/2007 : 08:04:39 AM 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 |
kanderlee |
Posted - 11/27/2007 : 02:06:36 AM 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?
|
Campo |
Posted - 06/19/2006 : 04:49:47 AM thx |
Mike Buess |
Posted - 06/11/2006 : 09:03:30 AM 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 |