Dear Ian, I sent this letter today morning but it is too big. So I will send in parts. I have written this article special for Russian users who have problem in English. The article is in Russia and in PDF format. I'll send it to your e-mail directly if you will need it after this letter. All information here is in HELP but I couldn't do anything without help of Protel's Support Consultant Ben Burgess. There are a few examples. So my question was: > > > > How can I add new toolbar to Design Explorer automatically by VBA? > > I know how to do it manually. > > I have found the process Client:CustomizeResourses but it can only show or > > hide created early toolbars. > > Maybe I do something wrong. Can you send me example of VBA code for > creating > > new toolbar. > > > > It isn't good to create new server by SDK because I use only standard > > functions. > > Answer was: > > Here are answers to the vba code query: > > You dont write VBA code to customize toolbars in Design Explorer. > In fact the Design Explorer has no support for VBA. VBA is only for > Microsoft products. The Design Explorer is based on Protel's > technologies, such as Protel API, Macro scripts and Process Launchers. > > In your case, you need to adjust the Client99SE.INI file, and write two > text files (FileName.INS and FileName.RCS) to add resources in the > Design Explorer automatically. > > A bit of background... > > The Design Explorer when started, looks inside the Client99SE.INI > file to execute certain initialization routines, verify installed existing > servers, and so on. This file is where you can add instructions to > inform the Design Explorer to update the resources of a certain > server automatically for your server. Once this has been done, > you need to restart the Design Explorer to make the changes permanent. > > > Now the question is how can I install new resources for an existing > server automatically? > ============================================ > When you need to install new resources in the Design Explorer > automatically to update the resources of a main server (for example > updating the menus so that the process launchers are linked to > a server), this section shows how to do this installation prodecure. > > 1/ The first step is to add the two lines (the snippet is shown below) to > the end of the Client99SE.INI file. Open this file in a text editor (notepad > for example) > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > [New Servers] > MyServer = D:\Program Files\Design Explorer 99 SE\System\MyServer.INS > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > Copy the above code snippet and paste this at the end of > Client99SE.INI file. > > Once the Design Explorer is up and running, it opens this file and scans > for the [New Servers] section and runs any INS files within this section. > This section is then erased by the Design Explorer automatically once the > Design Explorer is closed. All Protel 99 SE service packs use this > principle. > > 2/ Now you need to have a Update.Ins file (could be any filename you wish) > and a Update.RCS file located in the System folder of the Design Explorer > directory. > > For the Update.ins file, it needs to have the following statements > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ClientInsFile 0.0 > EditorName 'Update' > EditorExePath 'TextEdit.DLL' > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Copy the above code snippet and paste this in a text file called Update.Ins > > > 3/ The contents of this INS file is all you need to update the resources of > a server. Everytime you install a server in the Design Explorer, the Design > Explorer looks for the RCS and the DLL files that have the same filename as > the INS file. > > In this case we are using an existing DLL so we dont have to install a dummy > dll in the Design Explorer's system folder. Then the resources file is run > inserting new process launchers / resources for a server in the Design > Explorer. > > The Update.RCS file has the following contents as an example. > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > UpdateResource > Begin > Kind Menu > Name PCBMenu > Action Add > ReferencePosition After > ReferenceItem '&Refresh' * > Description > Begin > Popup '&New Menu' > Begin > MenuItem 'Menu 1' Client:OpenDocument > MenuItem SEPARATOR > MenuItem 'Menu 2' Client:CloseDocument > End > End > End > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Copy the above code snippet and paste this in a Update.RCS file > > ============================================ > To be continue in part 2 Best regards, Yuri V.Potapoff technical expert Rodnik Software, Inc. 1 Nakhimovsky ave., bldg.1, Moscow, 113556 Russia Phones: +7 (095) 113-2688; +7 (095) 113-7001 Fax: +7 (095) 317-9754 E-mail: [EMAIL PROTECTED] http://www.rodnik.ru * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * To post a message: mailto:[EMAIL PROTECTED] * * To leave this list visit: * http://www.techservinc.com/protelusers/leave.html * - or email - * mailto:[EMAIL PROTECTED]?body=leave%20proteledaforum * * Contact the list manager: * mailto:[EMAIL PROTECTED] * * Browse or Search previous postings: * http://www.mail-archive.com/proteledaforum@techservinc.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *