How to order the custom tools options page?
hello, have worked on addin in vs2005. , need registering 2 custom tools options pages following code in addin file:
<toolsoptionspage>
<category name="options">
<subcategory name="general">
<assembly>addintest.dll</assembly>
<fullclassname>addintest.generalpage</fullclassname>
</subcategory>
<subcategory name="color">
<assembly>addintest.dll</assembly>
<fullclassname>addintest.colorpage</fullclassname>
</subcategory>
</category>
</toolsoptionspage>
but made me dismayed have no way change order of options pages, want set general page first place. can me?
thanks
<toolsoptionspage>
<category name="options">
<subcategory name="general">
<assembly>addintest.dll</assembly>
<fullclassname>addintest.generalpage</fullclassname>
</subcategory>
<subcategory name="color">
<assembly>addintest.dll</assembly>
<fullclassname>addintest.colorpage</fullclassname>
</subcategory>
</category>
</toolsoptionspage>
but made me dismayed have no way change order of options pages, want set general page first place. can me?
thanks
he's referring tools\options dialog, not toolbox.
the tools\options settings come registry. pages sorted alphabetically because how retrieved registry. suspect general special cased show first. in fact i'm willing place money on because can @ how general page defined of other packages , see has no special indicators on it.
you have control on sorting though because options (like text editor) it. quick scan of registry reveals dword value called sort can used control sorting. undocumented. suspect value represents zero-based display order of page. page without 1 sorted after it, in alphabetical order.
so shouldn't have general page show first. subsequent pages should sorted alphabetically. note options pages associated packages rather addins xml syntax poorly documented. might not able sort value xml file. might have programmatically when addin registers first time.
michael taylor - 11/21/08
http://p3net.mvps.org
the tools\options settings come registry. pages sorted alphabetically because how retrieved registry. suspect general special cased show first. in fact i'm willing place money on because can @ how general page defined of other packages , see has no special indicators on it.
you have control on sorting though because options (like text editor) it. quick scan of registry reveals dword value called sort can used control sorting. undocumented. suspect value represents zero-based display order of page. page without 1 sorted after it, in alphabetical order.
so shouldn't have general page show first. subsequent pages should sorted alphabetically. note options pages associated packages rather addins xml syntax poorly documented. might not able sort value xml file. might have programmatically when addin registers first time.
michael taylor - 11/21/08
http://p3net.mvps.org
Archived Forums V > Visual C# IDE
Comments
Post a Comment