.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

f1 Extended help for a button in the CUIX file

5 REPLIES 5
Reply
Message 1 of 6
GeeHaa
940 Views, 5 Replies

f1 Extended help for a button in the CUIX file

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

5 REPLIES 5
Message 2 of 6
Balaji_Ram
in reply to: GeeHaa

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



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 6
GeeHaa
in reply to: GeeHaa

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

Message 4 of 6
Balaji_Ram
in reply to: GeeHaa

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

 



Balaji
Developer Technical Services
Autodesk Developer Network

Message 5 of 6
GeeHaa
in reply to: GeeHaa

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

Message 6 of 6
Balaji_Ram
in reply to: GeeHaa

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

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost