Didja Know ... there's an really easy way to find out what the Category string is for the Category you want to install your Wizard/Expert components in. You can do this without spending a couple of hours thumping your head against the monitor while trying to figure out what the hieroglyphic like constants [below] in the ToolsAPI.pas actually mean. Hang on a sec ... would you mind passing that ice pack? The IOTARepositoryWizard80 interface requires that you add a GetGalleryCategory function to your project. Part of the process in establishing the Galley Category can involve using the FindCategory function which takes a string as parameter. Figuring out what string to use can be a bit of a bugger. This trick will lessen the pain somewhat.
- Start Delphi. I'm using D2007, you'll have to test this yourself in other IDEs.
- Select ... »File »New »Other to open the Wizards Dialogue.
- Click on any item in the "Item Categories" tree on the left.
- Click the "Cancel" button [optional I believe].
- In Windows, Select ... »Start »Run and type in regedit.
- In the registry editor work your way down to
HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Repository
There you will find and item on the right called "LastFolder" which holds the value of the item you clicked on in step 3.
Using this procedure I've noted the Constant-Category matches for the ones I could.The remainder either were not on the list of constants or D2007 Pro does not have an existing folder for the constant. No matter ... now you know how to figure it out. You can create your own, but I'm not covering that here.
- { Gallery Categories }
- sCategoryGalileoOther
- 'Borland.Galileo.Other' ... is the folder marked "Other Files".
- sCategoryDelphiNew
- 'Borland.Delphi.New' ... is the folder marked "Delphi Projects".
- sCategoryDelphiNewFiles
- 'Borland.Delphi.NewFiles' ... is the folder under "Delphi Projects" marked "Delphi Files".
- sCategoryMarkupNew
- 'Borland.Markup.New' ... is the folder marked "Web Documents".
- sCategoryNewUnitTest
- 'UnitTest.Test' ... is the folder marked "Unit Tests".
Hope that helps you out in some manner, thanks for stopping by,
Dave
0 comments:
Post a Comment