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
 LabTalk Forum
 Create user buttons via LT or OC
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

srmcarneir

Brazil
33 Posts

Posted - 09/20/2004 :  09:29:21 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version: 7.0552 (B552) - OriginPro 7 SR4
Operating System: Win2k/WinXP

Hi,

Is that possible to configure/customize the user button groups
and also add user buttons to the Origin toolbar,
automatically via LabTalk script or OriginC routines?

Thanks to All in advance,

Ricardo Carneiro

Mike Buess

USA
3037 Posts

Posted - 09/20/2004 :  12:51:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Ricardo,

Creating, opening, closing (etc.) user-defined toolbars is done with LT's system.toolbar object. One useful but undocumented method is

system.toolbar.createcategory("filename.ini");

which creates a button category from an existing toolbar INI file. Settings (scripts, image order, etc.) for user-defined button categories can be modified with the INI object but the changes won't take effect until you restart Origin.

Origin toolbar settings are stored in the registry so it's not easy to add buttons to the system toolbars programmatically. Although Origin 7 can access to the registry through Origin C the toolbar registry section is rather complicated and I wouldn't want to mess with it.

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