Is there a way to programmatically set the extended help address for a button in a CUIX file? I tried doing it with windows but it only works for the current workspace.
I need it to work for any machine.
...(Environ("programData")...
or can I set extended help to a web address in the Xaml file?
Thanks
Hi,
Yes, you can provide a url for the HelpSource in the extended help xaml file.
In the sample xaml file that I mentioned in this post
http://forums.autodesk.com/t5/NET/Autodesk-AutoCAD-Ribbon/td-p/4653889
please try using the following line :
<src:RibbonToolTip x:Key="MYEH_CMD_0002" HelpSource = "http://www.autodesk.com">
I have tried it in AutoCAD 2014 and it worked ok.
Regards,
Balaji
Hi
Thanks again for the response. If I use a web address in the xaml file it works. But I think I need to create a CUIX file with the address of the xaml file in the extended help. I would use the c:drive but not everyone here boots up from it. I don't think I can Use the runtime API because it only loads in one workspace. So is there a way to set the address of the Xaml file in extended help in a CUIx file with vb.net?
Thanks Again
Hi,
Yes, you can set the extended help file path using the CUI API.
The ExtendedHelpFile path is provided to the ToolTip associated with the "MenuMacro.macro.ToolTip"
Here is a sample usage :
ToolTip tt1 = new ToolTip(menuMac.macro);
tt1.CommandName = "MYTESTCOMMAND";
tt1.EnableHelp = true;
tt1.ExtendedHelpFile = "C:\\Temp\\MyToolTip.xaml:MYEH_CMD_0002";
Regards,
Balaji
Thanks for the reply I have that part working now.
The only problem is The HelpTopic not working in the Xaml file It doesn't display my chm file Properly. It opens the file but I get an error "Page Cannot Be displayed". So to get around it I was wondering if you can Send a command to execute from the XAML file such as "HH.exe c:\windows\help\api.chm"?
Thanks again
Sorry, this is a known behavior when using the HelpTopic in extended help xaml. Only the HelpSource is recognized when pressing F1 key.
Using the Autoloader to associate F1 help does not have these limitations and should work fine.
You can package your app as a bundle and helptopic can be associated with your commands.
Regards,
Balaji